{"id":18031,"date":"2018-01-16T09:30:46","date_gmt":"2018-01-16T09:30:46","guid":{"rendered":"http:\/\/developer.kore.ai\/v10-3\/?post_type=docs&#038;p=12639"},"modified":"2021-08-14T10:04:43","modified_gmt":"2021-08-14T09:04:43","slug":"enabling-additional-languages-for-the-universal-bot","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/advanced-topics\/universal-bot\/enabling-additional-languages-for-the-universal-bot\/","title":{"rendered":"Enabling Additional Languages for the Universal Bot"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>Like standard bots, you can enable more than one language for universal bots, but the functionality is completely different.<\/p>\n<p>When you enable a new language for a standard bot, you need to upload language packs consisting of the entire bot definitions. Whereas to enable a new language for a universal bot, you just need to set up the corresponding default dialog.<\/p>\n<p>Universal bots do not obtain the enabled languages of the linked bots. You must enable default and additional languages for the universal bot. When user utterances are made in an enabled language, the universal bot routes it to only those linked bot tasks that have the same language enabled. For example, if German is enabled for the universal bot and a user utters in German, the NLP engine looks for all the linked bot tasks that support German and sends the utterance only to those tasks.<\/p>\n<div class=\" alert alert-info\"><b>Note<\/b>: If a user interacts with the universal bot in a non-enabled language, it sends a standard response in the default language requesting the user to interact in one of the supported languages. Also, if none of the linked tasks have a relevant response, the bot triggers the language-specific default dialog.<\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><strong>Before you Begin<\/strong><\/p>\n<p>This article assumes that you understand the fundamentals of multi-language bots in Kore.ai and therefore focuses on the aspects specific to the universal bots. For the fundamentals of multi-language bots in the Bots Builder, refer to <a href=\"\/docs\/bots\/bot-builder\/getting-started-bots\/building-multi-language-bots\/\">Building Multi-Language Bots<\/a>.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"Enable_Language\">Enable Language<\/span><\/h3>\n<p>Follow these steps to enable an additional language for a universal bot:<\/p>\n<ol>\n<li>Open the universal bot for which you want to configure new language.<\/li>\n<li>Select the\u00a0<strong>Build<\/strong> tab from the top menu.<\/li>\n<li>From the left menu select <b>Configurations -&gt; <\/b><b>Languages<\/b>.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20210630111954\/ub_languages.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28241\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20210630111954\/ub_languages.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20210630111954\/ub_languages.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20210630111954\/ub_languages-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20210630111954\/ub_languages-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<li>Click the\u00a0<strong>Add Language<\/strong> button from the top right.<\/li>\n<li>On the Add Language window, click <b>Configure <\/b>next to the language you want to.\n<div class=\"alert alert-info\"><b>Note<\/b>: The language would be enabled only for the Universal Bot, ensure that this language is enabled and published in the linked bots as well.<\/div>\n<\/li>\n<li>Under the <strong>Language Selection Time Frame<\/strong> (scroll down to view this option) select one of these options:\n<ul>\n<li><b>Lifetime<\/b>: The auto-detected language or the language preference selected by the user will be set as the user&#8217;s preferred language.<\/li>\n<li><b>Per Session<\/b>: Detects the user&#8217;s language at the beginning of every session and responds accordingly.\n<div class=\"alert alert-info\"><b>Note<\/b>: If the language cannot be determined with high confidence, the bot requests the users to select their preferred language. The default language is used to communicate with the user during language preference selection.<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>Click <b>Save<\/b>.<\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span class=\"ez-toc-section\" id=\"Customizing_Default_Dialog\">Customizing Default Dialog<\/span><\/h3>\n<p>If the Kore.ai NLP engine cannot recognize the user intent, the universal bot responds to the users with the default dialog. You must create language-specific versions of the default dialog for each enabled language so that such bot responses go in the users&#8217; preferred language. Otherwise, the universal bot responds applies the default bot language regardless of the user\u2019s preferred language.<br \/>\nFollow these steps to open the language-specific default dialog:<\/p>\n<ol>\n<li>Open the universal bot whose language-specific default dialog you want to change.<\/li>\n<li>On the top-right side of the bot window, click the name of the current bot language, and select any of the enabled languages. It switches the bot language as per your selection.<\/li>\n<\/ol>\n<p>Once you switch the language, go to the Default Dialog of the bot and make the necessary changes as explained in the <a href=\"\/docs\/bots\/bot-builder\/getting-started-bots\/defining-universal-bots\/customizing-the-universal-bots-default-dialog-task\/\">Customizing the Default Dialog<\/a> article.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Like standard bots, you can enable more than one language for universal bots, but the functionality is completely different. When you enable a new language for a standard bot, you need to upload language packs consisting of the entire bot definitions. Whereas to enable a new language for a universal bot, you just need to...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-18031","post","type-post","status-publish","format-standard","hentry","category-universal-bot"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/18031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/comments?post=18031"}],"version-history":[{"count":7,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/18031\/revisions"}],"predecessor-version":[{"id":31038,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/18031\/revisions\/31038"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/media?parent=18031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/categories?post=18031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/tags?post=18031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}