{"id":17936,"date":"2016-11-30T19:25:05","date_gmt":"2016-11-30T19:25:05","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=9013"},"modified":"2021-08-03T12:00:50","modified_gmt":"2021-08-03T11:00:50","slug":"dialog-tasks","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/docs\/bots\/bot-builder-tool\/dialog-task\/dialog-tasks\/","title":{"rendered":"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 via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>Kore.ai <strong>Dialog Tasks<\/strong> represent a full conversational flow between a user and a bot with a network of nodes that are connected using conditions.<\/p>\n<p>For example, if you create a <em>banking bot<\/em>, the tasks you want your bot to do for users is to:<\/p>\n<ul>\n<li>Retrieve and monitor account balances.<\/li>\n<li>Provide alerts for expenditures or low balances.<\/li>\n<li>Transfer funds<\/li>\n<li>Pay bills<\/li>\n<li>A combination of these or more.<\/li>\n<\/ul>\n<p>Dialog tasks also handle multiple user intents within a single conversation. For example, <em>Pay Bills <\/em>is a typical question in a Banking Bot, followed up with <em>Transfer Funds<\/em> or <em>Check Balance.<\/em> You can create a dialog task to encompass a full conversation with multiple outcomes as a single task.<\/p>\n<p>A dialog task begins with a root intent, <em>Pay Bill;<\/em>\u00a0can branch out into subtasks, <em>Check Balance;<\/em> then return to the primary task. The branch flow is determined at the runtime by the user input or selection.<\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Why_Dialog_Task\"><\/span>Why Dialog Task?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As a developer, you can define Kore.ai Dialog Tasks to:<\/p>\n<ul>\n<li>Create a conversational flow between the user and the bot.<\/li>\n<li>Build dialogs with branching paths based on user inputs and responses.<\/li>\n<li>Invoke a child flow within the context of the current flow.<\/li>\n<li>Define and reuse dialog nodes connected by defined conditions.<\/li>\n<li>Add custom JavaScript to the conversation flow.<\/li>\n<li>Add event handlers and get or update the conversation context through Webhook.<\/li>\n<\/ul>\n<p>It is recommended to end a dialog task with a message node. In the absence of a message node, the dialog task can not find closure and reverts to <em>Small Talk\/Intent not Found<\/em> standard messages.<\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Create_Dialog_Task\"><\/span>Create Dialog Task<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a dialog task, you must have already created a bot to add a dialog task to.<\/p>\n<p>To add a dialog task, follow the below steps:<\/p>\n<ol>\n<li>Open the bot in which you want to create the dialog task.<\/li>\n<li>Select the\u00a0<strong>Build<\/strong> tab from the top menu.<\/li>\n<li>From the left menu and click <strong>Conversational Skills -&gt; Dialog Tasks<\/strong>.<\/li>\n<li>On the Dialog Tasks page, click the <strong>Create Dialog<\/strong> button.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210708101719\/dialogTask_create.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28417\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210708101719\/dialogTask_create.png\" alt=\"\" width=\"1363\" height=\"365\" \/><\/a><\/li>\n<li>Enter a name for the dialog task in the <strong>Intent Name<\/strong> field. Optionally, you can add a <strong>description<\/strong>.<\/li>\n<li>You can add user utterances that should trigger this intent using in the\u00a0<strong>Intent Training.<\/strong> You can add them later from the user intent node that is generated within this task.<\/li>\n<li>Set <strong>options<\/strong>\n<ol>\n<li>for the task to be an independent or <strong>sub-intent dialog<\/strong><\/li>\n<li>to <strong>hide from help<\/strong> requests by the user<\/li>\n<li>to specify the context tags as\u00a0<strong>intent preconditions\u00a0<\/strong>&#8211; this will ensure that the intent would be detected only when the context tag is present<\/li>\n<li>select <strong>Create using New Conversation Driven Dialog Builder<\/strong> which was introduced in ver9.0 of the platform. This is the default setting and recommended.<br \/>\nIf you do not select this option, you will be prompted to <strong>Upgrade<\/strong> whenever you open the dialog task<\/li>\n<\/ol>\n<\/li>\n<li>Click<strong>\u00a0Proceed<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210708101747\/dialogTask_details.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28420\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210708101747\/dialogTask_details.png\" alt=\"\" width=\"799\" height=\"761\" \/><\/a><\/li>\n<li>The Dialog Builder displays with the root intent component and User Intent window with the <strong>Component Properties <\/strong>tab selected by default.<\/li>\n<li>If you have selected to upgrade to the new builder you can see the following:\n<ul>\n<li>The <strong>Conversation Builder<\/strong> is presented by default. To know more about conversation builder, <a href=\"\/docs\/bots\/bot-builder-tool\/bot-creation\/conversation-builder\/\" target=\"_blank\" rel=\"noopener noreferrer\">refer here<\/a>.<\/li>\n<li>Close the conversation builder to access the Nodes panel.<\/li>\n<li>The new dialog builder, to work on it <a href=\"\/docs\/bots\/chatbot-overview\/using-the-dialog-builder-tool\/\" target=\"_blank\" rel=\"noopener noreferrer\">refer here<\/a>.<\/li>\n<\/ul>\n<\/li>\n<li>You can choose to continue with the legacy builder, <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/dialog-task-legacy-builder\/\" target=\"_blank\" rel=\"noopener noreferrer\">refer here<\/a> for more.<\/li>\n<\/ol>\n<p>Now, you are ready to add nodes and establish transitions between these nodes for your workflow. <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/nodes-transitions\/\">Click here to know about Nodes &amp; Transitions<\/a>.<\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Cloning\"><\/span>Cloning<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>There are scenarios where you need to create two similar dialog tasks with minor differences. You can achieve the same with the <strong>Clone<\/strong> option available for the given dialog from the Dialog Tasks page.<\/p>\n<p>To clone a dialog task, follow the below steps:<\/p>\n<ol>\n<li>Open the bot in which you want to clone the dialog task.<\/li>\n<li>Select the\u00a0<strong>Build<\/strong> tab from the top menu.<\/li>\n<li>From the left menu, click <strong>Conversation Skills -&gt; Dialog Tasks<\/strong>.<\/li>\n<li>On the Dialog Tasks page, hover over the dialog you want to clone and click the <strong>Clone<\/strong> icon.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210708105109\/dialogTask_clone.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28429\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210708105109\/dialogTask_clone.png\" alt=\"\" width=\"1363\" height=\"371\" \/><\/a><\/li>\n<li>On the <strong>Clone a Dialog<\/strong> window, enter a name for the dialog task in the <strong>Intent Name<\/strong> field.<\/li>\n<li>Optionally, you can add a description and set options for the task to be an independent or sub-intent task.<\/li>\n<li>Click <strong>Clone<\/strong>.<\/li>\n<\/ol>\n<p>The following are the properties of a cloned dialog task:<\/p>\n<ul>\n<li>It contains the same component, instance, NL, IVR, and connection properties as the original dialog.<\/li>\n<li>The Dialog Settings, Interruption Settings, and Amend behavior are also copied from the original dialog.<\/li>\n<li>If multiple languages are enabled in the original dialog, then the details for all languages are copied.<\/li>\n<li>The below-listed intent level NLP training data is not copied:\n<ul>\n<li>ML Utterances<\/li>\n<li>Intent Patterns &amp; Rules<\/li>\n<li>Intent Synonyms<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Dialog_Builder\"><\/span>Dialog Builder<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Dialog Task Builder is the user interface to build Dialog Tasks. Dialog Tasks consists of a set of connected nodes and branch paths the bot can take based on a user conversation. <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/using-the-dialog-builder-tool\/\">Click here to know about how to use the Dialog Builder Tool<\/a>. For legacy builder, <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/dialog-task-legacy-builder\/\">refer here<\/a>.<\/p>\n<\/div><\/div><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>[vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3LXBvc3QtZWxtJTIwcG9zdF9uYXZpZ2F0aW9uJTIwbGF5b3V0X3NpbXBsZSUyMGludl9mYWxzZSUyMiUzRSUwQSUwOSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfZmlyc3QlMjB0b19wcmV2JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGYm90LWJ1aWxkZXItdG9vbCUyRmJvdC1jcmVhdGlvbiUyRmNyZWF0aW5nLW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"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><\/section>\n","protected":false},"excerpt":{"rendered":"Kore.ai Dialog Tasks represent a full conversational flow between a user and a bot with a network of nodes that are connected using conditions. For example, if you create a banking bot, the tasks you want your bot to do for users is to: Retrieve and monitor account balances. Provide alerts for expenditures or low...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/17936"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=17936"}],"version-history":[{"count":38,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/17936\/revisions"}],"predecessor-version":[{"id":28984,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/17936\/revisions\/28984"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=17936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=17936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=17936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}