{"id":18030,"date":"2018-01-16T09:30:17","date_gmt":"2018-01-16T09:30:17","guid":{"rendered":"http:\/\/developer.kore.ai\/v10-1\/?post_type=docs&#038;p=12628"},"modified":"2021-08-14T10:03:49","modified_gmt":"2021-08-14T09:03:49","slug":"customizing-the-universal-bots-default-dialog-task","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/advanced-topics\/universal-bot\/customizing-the-universal-bots-default-dialog-task\/","title":{"rendered":"Customizing the Universal Bot&#8217;s Default Dialog Task"},"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>While a Universal Bot acts as a container for Standard Bots and has limited functionality. Listed here are the aspects that can be customized:<\/p>\n<ul>\n<li>Training, <a href=\"\/docs\/bots\/advanced-topics\/universal-bot\/training-a-universal-bot\/\">refer here<\/a><\/li>\n<li>Enabling Languages, <a href=\"\/docs\/bots\/advanced-topics\/universal-bot\/enabling-additional-languages-for-the-universal-bot\/\">refer here<\/a><\/li>\n<li>Default Dialog customization, <a href=\"#Default_Dialog_Task\">refer here<\/a><\/li>\n<li>Event Handling, <a href=\"#Event_Handlers\">refer here<\/a><\/li>\n<li>Variable Management, <a href=\"#Variable_Management\">refer here<\/a><\/li>\n<li>Sentiment Management, <a href=\"#Sentiment_Management\">refer here<\/a><\/li>\n<li>Digital Views, <a href=\"#Digital_Views\">refer here<\/a><\/li>\n<\/ul>\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<h2><span class=\"ez-toc-section\" id=\"Default_Dialog_Task\">Default Dialog Task<\/span><\/h2>\n<p><strong>Before you Begin<\/strong><\/p>\n<p>This article assumes that you understand the fundamentals of creating dialog tasks using the Kore.ai Bots Platform and therefore focuses on the aspects specific to the universal bots. To refer to the fundamentals of dialog tasks, read <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/dialog-tasks\/\">Dialog Tasks<\/a>.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>Universal bots come with a built-in dialog task that triggers automatically for unidentified intents. You can customize this dialog task, or import another, but cannot replace it with other standard responses. You can add more nodes to the default dialog task to build a custom experience<\/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<h4>Default Dialog Nodes<\/h4>\n<p>Nodes that can be added to universal bot are limited compared to the standard bots. Below is the list of nodes that can be added to the default dialog task in the universal bot:<\/p>\n<ul>\n<li>Send a message<\/li>\n<li>Ask a question<\/li>\n<li>Ask for an entity<\/li>\n<li>Make a service call<\/li>\n<li>Run a JavaScript<\/li>\n<li>Initiate Agent Transfer<\/li>\n<li>Enable WebHook connections<\/li>\n<\/ul>\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<h4>Customize the Default Dialog<\/h4>\n<p>Follow these steps to customize the default dialog message:<\/p>\n<ol>\n<li>Open the universal bot for which you want to configure the default dialog.<\/li>\n<li>Select the\u00a0<strong>Build<\/strong> tab from the top menu.<\/li>\n<li>Select <b>Intelligence -&gt; <\/b><b>Default Dialog<\/b>.<\/li>\n<li>Listed will be the default dialog &#8211; <strong>Intent Not Identified<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123543\/ub_defaultDialog.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28244\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123543\/ub_defaultDialog.png\" alt=\"\" width=\"1363\" height=\"469\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123543\/ub_defaultDialog.png 1363w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123543\/ub_defaultDialog-300x103.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123543\/ub_defaultDialog-1024x352.png 1024w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><\/a><\/li>\n<li>Click to open the dialog. You will see an Intent and Message node already configured.<\/li>\n<li>You can customize the default dialog like any other dialog task adding the above-mentioned nodes.<\/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<h4>Customizing the Default Dialog for an Enabled Language<\/h4>\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. <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/bot-types\/universal-bot\/enabling-additional-languages-for-the-universal-bot\/\">Learn more<\/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<h2><span class=\"ez-toc-section\" id=\"Event_Handlers\">Event Handlers<\/span><\/h2>\n<p><strong>Before you Begin<\/strong><\/p>\n<p>This article assumes that you understand the fundamentals of Event Handler functionality using the Kore.ai Bots Platform and therefore focuses on the aspects specific to the universal bots. To refer to the fundamentals of Event Handling, read <a href=\"\/docs\/bots\/advanced-topics\/event-based-bot-actions\/\" target=\"_blank\" rel=\"noopener noreferrer\">Event Based Bot Actions<\/a>.<\/p>\n<p>The \u2018Events\u2019 in the Universal Bot support triggering of the Dialog Tasks from the linked bots. For events that support the execution of tasks, you can choose the linked bot and a task from the linked bot.<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123629\/ub_event.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28247\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123629\/ub_event.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123629\/ub_event.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123629\/ub_event-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123629\/ub_event-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<p>The linked task will be executed at the trigger of the event. If the linked bot task is not available at the run time or in the language that the end-user is having the conversation in, then the end-user would be presented with the relevant Standard Response \u2018Dialog task required for conversation is not available\u2019<\/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<h2><span class=\"ez-toc-section\" id=\"Variable_Management\">Variable Management<\/span><\/h2>\n<p>While building Universal bots you might want to propagate few values to the linked bots, like:<\/p>\n<ul>\n<li>the environment details, when building multi-lingual bots, while migrating the universal bot from one environment to another.<\/li>\n<li>the tenant values for scoping the bot intents.<\/li>\n<\/ul>\n<p><strong>Before you Begin<\/strong><\/p>\n<p>This article assumes that you understand the fundamentals of creating variables using the Kore.ai Bots Platform and therefore focuses on the aspects specific to the universal bots. To refer to the fundamentals of variable management, read <a href=\"\/docs\/bots\/bot-admin\/bots-management\/using-bot-variables\/\">Using Bot Variables<\/a>.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\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=\"Variable_Declaration\">Variable Declaration<\/span><\/h3>\n<p>As with Standard bots, you can<\/p>\n<ul>\n<li>Define Global and Content variables.<\/li>\n<li>Enable the propagation of the variable value to a selected linked bot.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123737\/ub_variables-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28250\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123737\/ub_variables-1.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123737\/ub_variables-1.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123737\/ub_variables-1-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123737\/ub_variables-1-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<li>You can access these variables in the script using <code>{{env.&lt;variable-name}}<\/code> and <code>{{content.&lt;variable-name&gt;&gt;}}<\/code><\/li>\n<li>In case the variable name is defined in both linked and universal bot, Universal bot variable value would take precedence.<\/li>\n<\/ul>\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<h2><span class=\"ez-toc-section\" id=\"Sentiment_Management\">Sentiment Management<\/span><\/h2>\n<p><strong>Before you Begin<\/strong><\/p>\n<p>This article assumes that you understand the fundamentals of Sentiment functionality using the Kore.ai Bots Platform and therefore focuses on the aspects specific to the universal bots. To refer to the fundamentals of Sentiment Management, <a href=\"\/docs\/bots\/advanced-topics\/sentiment-management\/\" target=\"_blank\" rel=\"noopener noreferrer\">refer here<\/a>.<\/p>\n<p>The Sentiment Based Events in the Universal Bot support triggering of the Dialog Tasks from the linked bots. For events that support the execution of tasks, you can choose the linked bot and a task from the linked bot.<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123827\/ub_sentiment.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28253\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123827\/ub_sentiment.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123827\/ub_sentiment.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123827\/ub_sentiment-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210630123827\/ub_sentiment-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<p>The linked task will be executed at the trigger of the event. If the linked bot task is not available at the run time or in the language that the end-user is having the conversation in, then the end-user would be presented with the relevant Standard Response \u2018Dialog task required for conversation is not available\u2019.<\/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<h2><span class=\"ez-toc-section\" id=\"Digital_Views\">Digital Views<\/span><\/h2>\n<p><strong>Before you Begin<\/strong><\/p>\n<p>This article assumes that you understand the fundamentals of Digital Views functionality using the Kore.ai Bots Platform and therefore focuses on the aspects specific to the universal bots. To refer to the fundamentals of Digital Views, <a href=\"\/docs\/bots\/bot-builder-tool\/digital-views\/\" target=\"_blank\" rel=\"noopener noreferrer\">refer here<\/a>.<\/p>\n<p>The Digital Views in the Universal Bot allows you to view the desired information (via widgets) from various linked bots in a single UB panel so that you can get the relevant details without conversing with the bot.<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210713070705\/ub_panel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28536\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210713070705\/ub_panel.png\" alt=\"\" width=\"1363\" height=\"517\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210713070705\/ub_panel.png 1363w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210713070705\/ub_panel-300x114.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210713070705\/ub_panel-1024x388.png 1024w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><\/a><\/p>\n<p>You can create a panel in the Universal Bot and add Widgets from the linked bots. You cannot edit the widgets. You can perform only the following actions on the panel<\/p>\n<ul>\n<li>Edit the panel name, display name, and icon<\/li>\n<li>Add Widgets from linked bots<\/li>\n<li>Remove a widget from the panel<\/li>\n<li>Test a Panel<\/li>\n<li>Delete a Panel<\/li>\n<\/ul>\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":"While a Universal Bot acts as a container for Standard Bots and has limited functionality. Listed here are the aspects that can be customized: Training, refer here Enabling Languages, refer here Default Dialog customization, refer here Event Handling, refer here Variable Management, refer here Sentiment Management, refer here Digital Views, refer here Default Dialog Task...","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-18030","post","type-post","status-publish","format-standard","hentry","category-universal-bot"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18030","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=18030"}],"version-history":[{"count":8,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18030\/revisions"}],"predecessor-version":[{"id":30872,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18030\/revisions\/30872"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=18030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=18030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=18030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}