{"id":19983,"date":"2019-05-03T10:33:24","date_gmt":"2019-05-03T10:33:24","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-3\/?p=19983"},"modified":"2022-09-22T14:39:46","modified_gmt":"2022-09-22T13:39:46","slug":"working-with-the-user-intent-node","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-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\">\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 \/>User: <em><span style=\"color: #999999\">Hey, what flight options have I got from LA to NYC? <\/span><\/em><br \/>VA: <span style=\"color: #999999\"><em>Sure, let me know the travel date. <\/em><\/span><br \/>User: <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%\">\n<p><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><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">Setting up a user intent node in a dialog task involves the following steps:<\/span><\/p>\n<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\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\/v9-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\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142812\/add-intent-node.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142812\/add-intent-node-1024x456.png\" alt=\"\" width=\"640\" height=\"285\" class=\"alignnone size-large wp-image-45262\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142812\/add-intent-node-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142812\/add-intent-node-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142812\/add-intent-node.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\n<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h1><span class=\"ez-toc-section\" id=\"Configure_the_Node\"><span style=\"font-weight: 400\">Configure the Node<\/span><\/span><\/h1>\n<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\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%\">\n<p><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><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\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><\/li>\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<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142921\/intent-node-component-properties.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142921\/intent-node-component-properties.png\" alt=\"\" width=\"461\" height=\"498\" class=\"alignnone size-full wp-image-45265\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142921\/intent-node-component-properties.png 461w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922142921\/intent-node-component-properties-278x300.png 278w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/a><br \/>\n<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\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.&nbsp;<\/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\/v9-3\/wp-content\/uploads\/sites\/29\/20220922143002\/intent-node-instance-properties.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922143002\/intent-node-instance-properties.png\" alt=\"\" width=\"359\" height=\"554\" class=\"alignnone size-full wp-image-45268\" \/><\/a><br \/>\n<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"NLP_Properties\"><span style=\"font-weight: 400\">NLP Properties<\/span><\/span><\/h2>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From the <\/span><strong>NLP Properties <\/strong><span style=\"font-weight: 400\">tab, you can configure the following:<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/nlp\/user-utterances\/\"><span style=\"font-weight: 400\">Machine Learning<\/span><\/a><span style=\"font-weight: 400\"> settings to provide user utterances to improve the detection for this intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/nlp\/fundamental-meaning\/#Navigate_to_the_Bot_Synonyms\"><span style=\"font-weight: 400\">Patterns &amp; Rules<\/span><\/a><span style=\"font-weight: 400\"> to capture this intent if the user&rsquo;s utterance contains these specific patterns.<\/span><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/developer.kore.ai\/v9-3\/docs\/bots\/nlp\/fundamental-meaning\/#Adding_Bot_Synonyms\"><span style=\"font-weight: 400\">Bot Synonyms<\/span><\/a><span style=\"font-weight: 400\"> or related phrases for this user intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/developer.kore.ai\/v9-3\/bot-intelligence-bots\/context-management\/\"><span style=\"font-weight: 400\">Manage Context<\/span><\/a><span style=\"font-weight: 400\"> to control the flow of the conversation:&nbsp;<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Set Intent Preconditions: <\/span><span style=\"font-weight: 400\">The intent will be detected only if any of the context tags specified as pre-conditions are available in the context at the time of intent detection.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Configure Context Output: <\/span><span style=\"font-weight: 400\">Define the tags to be set in the context when this intent is initiated. Intent name is automatically set as output context by the system.<\/span><\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922143048\/intent-node-nlp-properties.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922143048\/intent-node-nlp-properties.gif\" alt=\"\" width=\"318\" height=\"574\" class=\"alignnone size-full wp-image-45271\" \/><\/a><br \/>\n<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\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.&nbsp;<\/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\/v9-3\/docs\/bots\/bot-builder-tool\/dialog-task\/nodes-conditions\/\"><span style=\"font-weight: 400\">Adding IF-Else Conditions to Node Connections.&nbsp;<\/span><\/a><\/p>\n<table style=\"background-color: #fffbea;width: 100%\" width=\"100%\">\n<tbody>\n<tr>\n<td width=\"100%\">\n<p><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><\/p>\n<\/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\/v9-3\/wp-content\/uploads\/sites\/29\/20220922143151\/intent-node-connection-properties.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-3\/wp-content\/uploads\/sites\/29\/20220922143151\/intent-node-connection-properties.png\" alt=\"\" width=\"360\" height=\"605\" class=\"alignnone size-full wp-image-45274\" \/><\/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>[vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3LXBvc3QtZWxtJTIwcG9zdF9uYXZpZ2F0aW9uJTIwbGF5b3V0X3NpbXBsZSUyMGludl9mYWxzZSUyMiUzRSUwQSUwOSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfZmlyc3QlMjB0b19wcmV2JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGYm90LWJ1aWxkZXItdG9vbCUyRmRpYWxvZy10YXNrJTJGZGlhbG9nLXRhc2tzJTJGJTIyJTNFJTNDJTJGcCUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tYXJyb3clMjIlM0UlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLW1ldGElMjIlM0VQcmV2aW91cyUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tdGl0bGUlMjIlM0UlM0NzcGFuJTNFRGlhbG9nJTIwVGFzayUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQ2JyJTIwJTJGJTNFJTBBJTNDYSUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0lMjBvcmRlcl9zZWNvbmQlMjB0b19uZXh0JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGYm90LWJ1aWxkZXItdG9vbCUyRmRpYWxvZy10YXNrJTJGd29ya2luZy13aXRoLXRoZS1kaWFsb2ctbm9kZSUyRiUyMiUzRSUzQyUyRnAlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLWFycm93JTIyJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1tZXRhJTIyJTNFTmV4dCUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tdGl0bGUlMjIlM0UlM0NzcGFuJTNFRGlhbG9nJTIwTm9kZSUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ==[\/vc_raw_html]<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":"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\/v9-3\/wp-json\/wp\/v2\/posts\/19983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/comments?post=19983"}],"version-history":[{"count":27,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/19983\/revisions"}],"predecessor-version":[{"id":45278,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/posts\/19983\/revisions\/45278"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/media?parent=19983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/categories?post=19983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-3\/wp-json\/wp\/v2\/tags?post=19983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}