{"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-03-30T12:39:48","modified_gmt":"2021-03-30T11:39:48","slug":"dialog-tasks","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-1\/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 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>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>, some of the tasks you will want your Bot to do for users is to:<\/p>\n<ul>\n<li><em>retrieve and monitor account balances<\/em>,<\/li>\n<li><em>provide alerts for expenditures or low balances<\/em>,<\/li>\n<li><em>transfer funds<\/em>,<\/li>\n<li><em>pay bills<\/em>,<\/li>\n<li>a combination of these or more.<\/li>\n<\/ul>\n<p>Dialog tasks also handle <strong>multiple user intents<\/strong> within a single conversation. For example, &#8220;<em>Pay Bills&#8221; <\/em>is a typical question in Banking Bot that is sometimes followed up with &#8220;<em>Transfer Funds<\/em> &#8221; or <em>&#8220;Check Balance&#8221;.<\/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>, can branch out into subtasks, <em>Check Balance<\/em>, and then return to the primary task. The branch flow is determined at runtime by user input or selection.<\/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=\"Why_Dialog_Task\">Why Dialog Task<\/span><\/h3>\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 via Webhook;<\/li>\n<\/ul>\n<p>The following is a typical Dialog Task for Funds Transfer:<\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/Dialog-Builder-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19418\" src=\"\/wp-content\/uploads\/sites\/12\/Dialog-Builder-1.png\" alt=\"\" width=\"820\" height=\"461\" \/><\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Dialog_Task_Builder\">Dialog Task Builder<\/span><\/h3>\n<p>The Dialog Task Builder is the user interface to build Dialog Tasks. Dialog Tasks consists of a set of connected nodes and the branch paths the bot can take based on a user conversation. <a href=\"\/v7-1\/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>.<\/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=\"Creating_a_Dialog_Task\">Creating a Dialog Task<\/span><\/h3>\n<p>To create a dialog task, you must already have created a Bot to add a dialog task to.<\/p>\n<p><strong>To add a dialog<\/strong> <strong>task<\/strong><\/p>\n<ol>\n<li><strong>Open the Bot<\/strong> in which you want to create the Dialog Task.<\/li>\n<li>Hover over the side navigation panel and click <strong>Bot Tasks<\/strong>.<\/li>\n<li>Click or Hover over the Dialog Tasks, and then click the <strong>plus icon<\/strong>.<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/Navigation-to-dialog-task.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13465 size-medium\" src=\"\/wp-content\/uploads\/sites\/12\/Navigation-to-dialog-task-279x300.png\" alt=\"\" width=\"279\" height=\"300\" \/><\/a><\/li>\n<li>Enter a name for the dialog task, this serves as the Intent name for the Task you are building.<\/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>Create &amp; Proceed<\/strong>.<\/li>\n<li>The Dialog Builder opens with the root intent component and <strong>Component Properties<\/strong> panel.<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/User-Intent-Node-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-19419\" src=\"\/wp-content\/uploads\/sites\/12\/User-Intent-Node-1.png\" alt=\"\" width=\"400\" height=\"241\" \/><\/a><\/li>\n<li>Now you are ready to add Nodes and establish Transitions between these Nodes for your workflow. <a href=\"\/v7-1\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/nodes-transitions\/\">See here for Nodes &amp; Transitions<\/a>.<\/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=\"Cloning_a_Dialog_Task\">Cloning a Dialog Task<\/span><\/h3>\n<p>(Introduced in ver7.1)<\/p>\n<p>There might be times where you need to create two similar Dialog Tasks, with minor differences. You can accomplish the same using the <strong>Clone<\/strong> option available for the given Dialog from the Dialog Tasks page.<\/p>\n<p><strong>To clone a dialog<\/strong> <strong>task<\/strong><\/p>\n<ol>\n<li><strong>Open the Bot<\/strong> in which you want to clone the Dialog Task.<\/li>\n<li>Hover over the Task you want to clone and click on the <strong>Settings (gear icon)<\/strong>.<\/li>\n<li>Select the\u00a0<strong>clone<\/strong> option.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/Bot-Clone.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22228\" src=\"\/wp-content\/uploads\/sites\/12\/Bot-Clone.png\" alt=\"\" width=\"1366\" height=\"768\" \/><\/a><\/li>\n<li>The <strong>Clone a Dialog<\/strong> window opens.<\/li>\n<li>Enter a name for the dialog task, this serves as the Intent name for the Task you are building.<\/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<li>A new dialog task with the name is created.<\/li>\n<\/ol>\n<p>Note the following points regarding the cloned dialog task:<\/p>\n<ul>\n<li>It will have the same component, instance, NL, IVR and connection properties as the original Dialog;<\/li>\n<li>The Dialog Settings, Interruption Settings and Amend Behavior will also be copied from the original Dialog;<\/li>\n<li>If multiple languages are enabled in the original Dialog, then the details for all languages will be copied<\/li>\n<li>Intent level NLP training data <span style=\"text-decoration: underline\">will not<\/span> be copied i.e. the following will not be 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\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":"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, some of the tasks you will want your Bot to do for users is to: retrieve and monitor account balances, provide alerts for...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-17936","post","type-post","status-publish","format-standard","hentry","category-dialog-task"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/comments?post=17936"}],"version-history":[{"count":7,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17936\/revisions"}],"predecessor-version":[{"id":22909,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17936\/revisions\/22909"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/media?parent=17936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/categories?post=17936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/tags?post=17936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}