{"id":19983,"date":"2019-05-03T10:33:24","date_gmt":"2019-05-03T10:33:24","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-3\/?p=19983"},"modified":"2023-09-29T16:25:14","modified_gmt":"2023-09-29T15:25:14","slug":"working-with-the-user-intent-node","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-user-intent-node\/","title":{"rendered":"User Intent Node"},"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\"><div class=\"ult-spacer spacer-6ae8c6777adee\" data-id=\"6ae8c6777adee\" data-height=\"10\" data-height-mobile=\"10\" data-height-tab=\"10\" data-height-tab-portrait=\"\" data-height-mobile-landscape=\"\" style=\"clear:both;display:block;\"><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><span style=\"font-weight: 400;\">As a bot developer, you typically create a task to resolve one primary user intent. Yet, user conversations can branch into related intents (follow-up or sub-intents) as a part of the primary intent.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let us take a look into this sample conversation for a flight booking assistant:<\/span><\/p>\n<p>VA: <em><span style=\"color: #999999;\">Hi, how may I help you today? <\/span><\/em><br \/>\nUser: <em><span style=\"color: #999999;\">Hey, what flight options have I got from LA to NYC? <\/span><\/em><br \/>\nVA: <span style=\"color: #999999;\"><em>Sure, let me know the travel date. <\/em><\/span><br \/>\nUser: <span style=\"color: #999999;\"><em>Wait a minute, will it rain in NYC this Sunday?<\/em><\/span><\/p>\n<p><span style=\"font-weight: 400;\">The primary intent of this conversation is to book a flight ticket. But the user wants to know the weather forecast before completing the booking, which is a valid use case.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">User Intent Nodes help you add a root intent, a follow-up or sub-intents to your dialog tasks. The flow for a follow-up intent is built within the same dialog task using transitions, and cannot be linked to external tasks. When the execution of a follow-up intent is completed, the conversation flow continues within the same dialog tasks based on the transitions you add.<\/span><\/p>\n<table style=\"background-color: #fffbea; width: 100%;\" width=\"100%\">\n<tbody>\n<tr>\n<td width=\"100%\"><strong><em>Note<\/em><\/strong><em><span style=\"font-weight: 400;\">: To start a new Dialog Task from an existing one, you can use the Dialog Task nodes.<\/span><\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">Setting up a user intent node in a dialog task involves the following steps:<\/span><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Add_the_Node\"><span style=\"font-weight: 400;\">Add the Node<\/span><\/span><\/h1>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Open the dialog task to which you want to add the user intent node.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Add a user intent node in the designated place. For steps on adding nodes, <\/span><a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/chatbot-overview\/using-the-dialog-builder-tool\/#Add_Nodes\"><span style=\"font-weight: 400;\">please read more here<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The user intent window is displayed with the <\/span><strong>Component Properties<\/strong><span style=\"font-weight: 400;\"> tab selected by default.<\/span><\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142812\/add-intent-node.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-45262\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142812\/add-intent-node-1024x456.png\" alt=\"\" width=\"640\" height=\"285\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142812\/add-intent-node-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142812\/add-intent-node-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142812\/add-intent-node.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Configure_the_Node\"><span style=\"font-weight: 400;\">Configure the Node<\/span><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"Component_Properties\"><span style=\"font-weight: 400;\">Component Properties<\/span><\/span><\/h2>\n<table style=\"background-color: #fffbea; width: 100%;\" width=\"100%\">\n<tbody>\n<tr>\n<td width=\"100%\"><strong><em>Note<\/em><\/strong><em><span style=\"font-weight: 400;\">: The configurations you set up or edit in the Component Properties tab reflects in all the dialog tasks that use this node. These settings are the same for Intent and Sub-intent nodes.<\/span><\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">On the <\/span><strong>Component Properties <\/strong><span style=\"font-weight: 400;\">tab, under the <\/span><strong>General Settings<\/strong><span style=\"font-weight: 400;\">, you can modify<\/span>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The <\/span><strong>Name<\/strong><span style=\"font-weight: 400;\">,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The <\/span><strong>Display Name<\/strong><span style=\"font-weight: 400;\">,<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">The <\/span><strong>Description<\/strong><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142921\/intent-node-component-properties.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45265\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142921\/intent-node-component-properties.png\" alt=\"\" width=\"461\" height=\"498\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142921\/intent-node-component-properties.png 461w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922142921\/intent-node-component-properties-278x300.png 278w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Instance_Properties\"><span style=\"font-weight: 400;\">Instance Properties<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Under the Instance Properties tab, you can configure the instance specific fields for the selected intent node. These settings are applicable only if you are connecting an existing intent node and only for the selected node instance, and will not affect other dialog tasks that may invoke the node you are working with.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can add tags to build custom profiles of your VA&#8217;s conversations. You can define a key and a value for each of the following:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Message &#8211; Define custom tags to be added to the current message in the conversation.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">User &#8211; Define custom tags to be added to the user&#8217;s profile information.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Session &#8211; Define custom tags to be added to the current conversation session.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Here is an example of a dialog task that is connected as a subintent in a more complex one.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922143002\/intent-node-instance-properties.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45268\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922143002\/intent-node-instance-properties.png\" alt=\"\" width=\"359\" height=\"554\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"NLP_Properties\"><span style=\"font-weight: 400;\">NLP Properties<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The NLP Properties are related to the underlying intent associated with a dialog. You can add these properties here or in the NLP \u2013 Training section. They are used to train the machine learning model to help improve intent identification for the dialog task. These properties are not used to execute this node in the flow.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To improve intent identification for the dialog task, add or define the following properties:\u00a0<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Machine Learning<\/b><span style=\"font-weight: 400;\"> settings to provide user utterances to improve the detection of this intent.<\/span><a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/nlp\/user-utterances\/\"> <span style=\"font-weight: 400;\">Learn more<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Patterns and Rules<\/b><span style=\"font-weight: 400;\"> to capture this intent if the user\u2019s utterance contains these specific patterns or matches the rule.<\/span><a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/nlp\/fundamental-meaning\/#Navigate_to_the_Bot_Synonyms\"> <span style=\"font-weight: 400;\">Learn more<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Bot Synonyms<\/b><span style=\"font-weight: 400;\"> or related phrases for the user intent.<\/span><a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/nlp\/fundamental-meaning\/#Adding_Bot_Synonyms\"> <span style=\"font-weight: 400;\">Learn more<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Manage Context<\/b><span style=\"font-weight: 400;\"> tags as preconditions to identify the intent and define the output context to be set when this task is initiated.<\/span><a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/bot-intelligence\/context-management\/\"> <span style=\"font-weight: 400;\">Learn more<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922143048\/intent-node-nlp-properties.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45271\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922143048\/intent-node-nlp-properties.gif\" alt=\"\" width=\"318\" height=\"574\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Connections_Properties\"><span style=\"font-weight: 400;\">Connections Properties<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Click the <\/span><strong>Connections <\/strong><span style=\"font-weight: 400;\">tab and set the transition properties to determine the node in the dialog task to execute next.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Primary Intent nodes only allow you to select the next node to trigger.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If the Intent node you are working with does not represent the primary intent within the dialog task (if it follows another node), you can write conditional statements based on the values of any Entity or Context Objects in the dialog task, or you can use intents for transitions. For details on how to work with connection conditions, please see <\/span><a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/bot-builder-tool\/dialog-task\/nodes-conditions\/\"><span style=\"font-weight: 400;\">Adding IF-Else Conditions to Node Connections.<\/span><\/a><\/p>\n<table style=\"background-color: #fffbea; width: 100%;\" width=\"100%\">\n<tbody>\n<tr>\n<td width=\"100%\"><strong><em>Note<\/em><\/strong><em><span style=\"font-weight: 400;\">: These conditions are applicable only for this instance and will not affect this node when being used in any other dialog.<\/span><\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922143151\/intent-node-connection-properties.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-45274\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20220922143151\/intent-node-connection-properties.png\" alt=\"\" width=\"360\" height=\"605\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"ult-spacer spacer-6ae8c6777b3ec\" data-id=\"6ae8c6777b3ec\" data-height=\"12\" data-height-mobile=\"12\" data-height-tab=\"12\" data-height-tab-portrait=\"\" data-height-mobile-landscape=\"\" style=\"clear:both;display:block;\"><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"As a bot developer, you typically create a task to resolve one primary user intent. Yet, user conversations can branch into related intents (follow-up or sub-intents) as a part of the primary intent. Let us take a look into this sample conversation for a flight booking assistant: VA: Hi, how may I help you today?...","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-19983","post","type-post","status-publish","format-standard","hentry","category-dialog-task"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/19983","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=19983"}],"version-history":[{"count":32,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/19983\/revisions"}],"predecessor-version":[{"id":59693,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/19983\/revisions\/59693"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/media?parent=19983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/categories?post=19983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/tags?post=19983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}