{"id":48021,"date":"2022-10-04T17:10:53","date_gmt":"2022-10-04T16:10:53","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-3\/?p=48021"},"modified":"2022-10-04T19:10:52","modified_gmt":"2022-10-04T18:10:52","slug":"travel-va-using-traits","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/how-tos\/travel-planing-assistant\/travel-va-using-traits\/","title":{"rendered":"Travel VA: Using Traits"},"content":{"rendered":"<p><span style=\"font-weight: 400\">In this How-To, we will explore a scenario in a Travel Planning Assistant, where traits can be used to steer the conversation flow in a more natural and predictable direction. For details on what Traits are and how they are implemented in the Kore.ai XO Platform, please <\/span><a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/nlp\/traits\/\"><span style=\"font-weight: 400\">refer here<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\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>\n<h1><span class=\"ez-toc-section\" id=\"Problem_Statement\"><span style=\"font-weight: 400\">Problem Statement<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">Consider the cases where the user is trying to report an issue or ask a question pertaining to <\/span><em><span style=\"font-weight: 400\">\u201cMake a Booking\u201d.<\/span><\/em><span style=\"font-weight: 400\"> The VA might trigger the <\/span><em><span style=\"font-weight: 400\">\u201cMake a Booking\u201d<\/span><\/em><span style=\"font-weight: 400\"> intent as opposed to <\/span><em><span style=\"font-weight: 400\">\u201cIssue Resolution\u201d<\/span><\/em><span style=\"font-weight: 400\">. The problem that may arise in this scenario is that the user is presented with a response that is not relevant to their utterance.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In this document, we will show how Traits can be used to identify such situations and take appropriate action.<\/span><\/p>\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>\n<h1><span class=\"ez-toc-section\" id=\"Prerequisites\"><span style=\"font-weight: 400\">Prerequisites<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">To go through these configurations, you need to know at least the basics of <a href=\"https:\/\/developer.kore.ai\/v10-3\/docs\/bots\/how-tos\/travel-planing-assistant\/create-a-travel-virtual-assistant\/\" target=\"_blank\" rel=\"noopener noreferrer\">building a Virtual Assistant<\/a><\/span><span style=\"font-weight: 400\">. This is because your assistant needs to have been already built when you begin working on your forms.<\/span><\/p>\n<p><span style=\"font-weight: 400\">In addition, your VA requires the following configurations:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Book a Flight Dialog Task<\/strong><span style=\"font-weight: 400\"> &#8211; This task allows the user to make a flight booking via the assistant.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140110\/bookflight-task.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47858\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140110\/bookflight-task.png\" alt=\"\" width=\"328\" height=\"702\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140110\/bookflight-task.png 421w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140110\/bookflight-task-140x300.png 140w\" sizes=\"auto, (max-width: 328px) 100vw, 328px\" \/><\/a> <\/span><span style=\"font-weight: 400\"><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Issue Resolution Dialog Task <\/strong><span style=\"font-weight: 400\">&#8211; This task <\/span><span style=\"font-weight: 400\">assists in any issues faced by the user. It displays a regret message and transfers the conversation to a Live Agent.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140115\/issue-task.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47861\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140115\/issue-task.png\" alt=\"\" width=\"324\" height=\"545\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140115\/issue-task.png 418w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140115\/issue-task-178x300.png 178w\" sizes=\"auto, (max-width: 324px) 100vw, 324px\" \/><\/a><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Knowledge Graph Booking FAQ <\/strong><span style=\"font-weight: 400\">&#8211; A Booking node with an FAQ for How do I make a Booking?<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140124\/kg-booking-faq.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47864\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140124\/kg-booking-faq-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\/20221004140124\/kg-booking-faq-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140124\/kg-booking-faq-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140124\/kg-booking-faq.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<\/ul>\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>\n<h1><span class=\"ez-toc-section\" id=\"Implementation\"><span style=\"font-weight: 400\">Implementation<\/span><\/span><\/h1>\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>\n<h2><span class=\"ez-toc-section\" id=\"Intent_Detection_using_Traits\"><span style=\"font-weight: 400\">Intent Detection using Traits<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">We will be using Trait to steer the conversation to \u201cIssue Resolution\u201d when the word \u201cissue\u201d is present in the User Utterance.<\/span><\/p>\n<p><strong>Steps<\/strong><span style=\"font-weight: 400\">:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select <\/span><strong>Build<\/strong><span style=\"font-weight: 400\"> tab from the top menu<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From <\/span><strong>Natural Language -&gt; Training<\/strong><span style=\"font-weight: 400\"> select the <\/span><strong>Traits <\/strong><span style=\"font-weight: 400\">tab.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Add New Trait.<\/strong><span style=\"font-weight: 400\"> We will be using a trait to identify the existence of the word \u2018issue\u2019 in the user utterance.<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Add a <\/span><strong>Trait Type<\/strong><span style=\"font-weight: 400\"> as <\/span><em><span style=\"font-weight: 400\">Problem Statement, <\/span><\/em><span style=\"font-weight: 400\">and <\/span><strong>Traits<\/strong><span style=\"font-weight: 400\"> as <\/span><em><span style=\"font-weight: 400\">issue<\/span><\/em><span style=\"font-weight: 400\">. A given Trait Type can have multiple Traits grouped together logically.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Optionally you can add utterances for Issues as <\/span><em><span style=\"font-weight: 400\">\u2018problem\u2019, \u2018unable to\u2019<\/span><\/em><span style=\"font-weight: 400\">, and <\/span><em><span style=\"font-weight: 400\">\u2018not working\u2019. <\/span><\/em><span style=\"font-weight: 400\">These are the alternate words that users might use to indicate an issue.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140057\/add-issue-trait.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47852\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140057\/add-issue-trait-1024x535.png\" alt=\"\" width=\"640\" height=\"334\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140057\/add-issue-trait-1024x535.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140057\/add-issue-trait-300x157.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140057\/add-issue-trait.png 1613w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Save &amp; Add Rule\u00a0<\/strong><\/li>\n<\/ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We will be defining the intent that needs to be triggered in the presence of this Issue trait.<\/span><\/li>\n<ol>\n<li style=\"font-weight: 400\"><strong>Select Intent<\/strong><span style=\"font-weight: 400\"> \u2013 <\/span><em><span style=\"font-weight: 400\">Issue Resolution<\/span><\/em><span style=\"font-weight: 400\"> to be triggered in the presence of this trait.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Add the <\/span><strong>Trait Rules<\/strong><span style=\"font-weight: 400\"> \u2013 <\/span><em><span style=\"font-weight: 400\">issue <\/span><\/em><span style=\"font-weight: 400\">as the trait that should trigger the above selected intent.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140104\/add-issue-trait-rule.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47855\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140104\/add-issue-trait-rule-1024x541.png\" alt=\"\" width=\"640\" height=\"338\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140104\/add-issue-trait-rule-1024x541.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140104\/add-issue-trait-rule-300x158.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140104\/add-issue-trait-rule.png 1607w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Save<\/strong><span style=\"font-weight: 400\"> the Trait Mapping<\/span><\/li>\n<\/ol>\n<li style=\"font-weight: 400\"><strong>Train<\/strong><span style=\"font-weight: 400\"> the Traits.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Open the Issue Resolution Intent to see the Trait <\/span><strong>Rules<\/strong><span style=\"font-weight: 400\"> under the <\/span><strong>NLP<\/strong><span style=\"font-weight: 400\"> properties panel updated with the <\/span><em><span style=\"font-weight: 400\">issue<\/span><\/em><span style=\"font-weight: 400\"> trait.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140151\/task-intent-nlp-traitrule.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47880\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140151\/task-intent-nlp-traitrule-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\/20221004140151\/task-intent-nlp-traitrule-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140151\/task-intent-nlp-traitrule-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140151\/task-intent-nlp-traitrule.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Talk to the Bot<\/strong><span style=\"font-weight: 400\"> and see the conversation flow. As you can see in the illustration below, rather than detect the <\/span><em><span style=\"font-weight: 400\">Make a Booking<\/span><\/em><span style=\"font-weight: 400\"> intent, the VA uses the Issue Resolution task to transfer the conversation to an agent. This is despite the fact that the user utterance contains the full <\/span><em><span style=\"font-weight: 400\">Make a Booking<\/span><\/em><span style=\"font-weight: 400\"> sentence. The VA picks up on the presence of an utterance which we have set up under the <\/span><em><span style=\"font-weight: 400\">Issue <\/span><\/em><span style=\"font-weight: 400\">trait &#8211; the word <\/span><em><span style=\"font-weight: 400\">problem<\/span><\/em><span style=\"font-weight: 400\"> &#8211; and thus triggers the intent that we selected as the rule, rather than the other one.\u00a0<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140145\/talktobot-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47877\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140145\/talktobot-1-1.png\" alt=\"\" width=\"414\" height=\"165\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140145\/talktobot-1-1.png 625w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140145\/talktobot-1-1-300x120.png 300w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/a><br \/><\/span><\/li>\n<\/ol>\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>\n<h2><span class=\"ez-toc-section\" id=\"Knowledge_Intent_using_Traits\"><span style=\"font-weight: 400\">Knowledge Intent using Traits<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">Here we will see how to drive the query from the user to the appropriate FAQ instead of the dialog task.<\/span><\/p>\n<p><strong>Steps<\/strong><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From <\/span><strong>Natural Language &gt; Training<\/strong><span style=\"font-weight: 400\"> open the <\/span><strong>Traits<\/strong><span style=\"font-weight: 400\"> dialog.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Add New Trait.<\/strong><span style=\"font-weight: 400\"> We will be using a trait to identify the existence of questions in the user utterance.<\/span>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Add a <\/span><strong>Trait Type<\/strong><span style=\"font-weight: 400\"> as <\/span><em><span style=\"font-weight: 400\">Inquiry, <\/span><\/em><span style=\"font-weight: 400\">and <\/span><strong>Traits<\/strong><span style=\"font-weight: 400\"> as <\/span><em><span style=\"font-weight: 400\">ask<\/span><\/em><span style=\"font-weight: 400\">. A given Trait Type can have multiple Traits grouped together logically.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Optionally you can add utterances for Issues as <\/span><em><span style=\"font-weight: 400\">\u2018wondering\u2019,\u00a0 <\/span><\/em><span style=\"font-weight: 400\">and <\/span><em><span style=\"font-weight: 400\">\u2018want to know\u2019. <\/span><\/em><span style=\"font-weight: 400\">These are the alternate words that the user might use to indicate an inquiry.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140044\/add-inquiry-trait.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47849\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140044\/add-inquiry-trait-1024x539.png\" alt=\"\" width=\"640\" height=\"337\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140044\/add-inquiry-trait-1024x539.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140044\/add-inquiry-trait-300x158.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140044\/add-inquiry-trait.png 1610w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Save &amp; Exit<\/strong><span style=\"font-weight: 400\"> the Trait.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Train<\/strong><span style=\"font-weight: 400\"> the Trait.<\/span><\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Associate the Trait to the FAQ<\/span>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Open the <\/span><strong>Knowledge Graph <\/strong><span style=\"font-weight: 400\">and hover over the node with the question pertaining to <\/span><em><span style=\"font-weight: 400\">Booking<\/span><\/em><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click the <\/span><strong>Settings <\/strong><span style=\"font-weight: 400\">or gear icon.<br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Under <\/span><strong>Traits<\/strong><span style=\"font-weight: 400\"> type and select the <\/span><em><span style=\"font-weight: 400\">ask<\/span><\/em><span style=\"font-weight: 400\"> trait.<br \/><\/span><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140130\/kg-node-trait-ask.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47867\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140130\/kg-node-trait-ask-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\/20221004140130\/kg-node-trait-ask-1024x456.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140130\/kg-node-trait-ask-300x134.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140130\/kg-node-trait-ask.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Train<\/strong><span style=\"font-weight: 400\"> the Knowledge Graph.<\/span><\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400\"><strong>Talk to the bot<\/strong><span style=\"font-weight: 400\"> and say <\/span><em><span style=\"font-weight: 400\">I want to make a booking<\/span><\/em><span style=\"font-weight: 400\">. You will see that the assistant is still detecting the <\/span><em><span style=\"font-weight: 400\">Make a Booking <\/span><\/em><span style=\"font-weight: 400\">intent.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To understand the reason behind this:<\/span>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Open <\/span><strong>Testing &gt; Utterance Testing.<\/strong><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Type the utterance, you will see that the <\/span><strong>Trait<\/strong><span style=\"font-weight: 400\"> has been identified.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>Ranking and Resolver<\/strong><span style=\"font-weight: 400\">. You will see that both the intent and FAQ were identified but the intent got a higher score.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140141\/rr.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47873\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140141\/rr-1024x575.png\" alt=\"\" width=\"640\" height=\"359\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140141\/rr-1024x575.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140141\/rr-300x168.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140141\/rr.png 1368w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><span style=\"font-weight: 400\"><br \/><\/span><\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">To ensure that the intent is not selected, we will add a <\/span><strong>Negative Pattern<\/strong><span style=\"font-weight: 400\"> to the <\/span><em><span style=\"font-weight: 400\">Book Flight<\/span><\/em><span style=\"font-weight: 400\"> intent.<\/span>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Go to <\/span><strong>Build &gt; Conversation Skills &gt; Dialog Tasks<\/strong><span style=\"font-weight: 400\"> and select the <\/span><em><span style=\"font-weight: 400\">Book Flight<\/span><\/em><span style=\"font-weight: 400\"> task.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>primary intent node<\/strong><span style=\"font-weight: 400\"> and go to its <\/span><strong>NLP Properties<\/strong><span style=\"font-weight: 400\">.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Under <\/span><strong>Patterns <\/strong><span style=\"font-weight: 400\">click <\/span><strong>Add Pattern<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>Negative Patterns <\/strong><span style=\"font-weight: 400\">tab. Add the words <\/span><em><span style=\"font-weight: 400\">know<\/span><\/em><span style=\"font-weight: 400\">, <\/span><em><span style=\"font-weight: 400\">ask,<\/span><\/em><span style=\"font-weight: 400\"> any any other question identifiers.This will ensure that the \u2018Book Flight\u2019 intent is not identified when either of the negative patterns is present in the user utterance.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140134\/negative-patterns-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-47870\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140134\/negative-patterns-1-1024x284.png\" alt=\"\" width=\"640\" height=\"178\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140134\/negative-patterns-1-1024x284.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140134\/negative-patterns-1-300x83.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-3\/wp-content\/uploads\/sites\/43\/20221004140134\/negative-patterns-1.png 1610w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>Check the Utterance Training and ensure that the Book Flight intent is rejected because of the negative pattern. Finally, <strong>Talk to the Bot <\/strong>and test the changes.<\/p>\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>\n","protected":false},"excerpt":{"rendered":"<p>In this How-To, we will explore a scenario in a Travel Planning Assistant, where traits can be used to steer the conversation flow in a more natural and predictable direction. For details on what Traits are and how they are implemented in the Kore.ai XO Platform, please refer here. Problem Statement Consider the cases where&#8230;<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[197],"tags":[],"class_list":["post-48021","post","type-post","status-publish","format-standard","hentry","category-travel-planing-assistant"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/48021","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\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/comments?post=48021"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/48021\/revisions"}],"predecessor-version":[{"id":48081,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/posts\/48021\/revisions\/48081"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/media?parent=48021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/categories?post=48021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-3\/wp-json\/wp\/v2\/tags?post=48021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}