{"id":22369,"date":"2019-08-27T08:20:08","date_gmt":"2019-08-27T07:20:08","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-2\/?p=22369"},"modified":"2022-03-30T15:18:16","modified_gmt":"2022-03-30T14:18:16","slug":"how-to-use-traits","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-2\/docs\/bots\/how-tos\/how-to-use-traits\/","title":{"rendered":"Using Traits"},"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>In this How-To, we will explore a scenario in a Banking Bot, where traits can be used to steer the conversation flow in a more natural and predictable direction. For details on what Trait is and how it is implemented in the Kore.ai Bots platform, <a href=\"\/docs\/bots\/nlp\/traits\/\" target=\"_blank\" rel=\"noopener noreferrer\">refer here<\/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<h2><span class=\"ez-toc-section\" id=\"Problem_Statement\">Problem Statement<\/span><\/h2>\n<p>Consider the cases where the user is trying to report an issue or ask a question pertaining to <em>&#8220;Transfer Funds&#8221;.<\/em> The Bot will trigger the <em>&#8220;Transfer Amount&#8221;<\/em> intent as opposed to <em>&#8220;Issue Resolution&#8221;<\/em> or <em>&#8220;FAQ regarding Funds Transfer&#8221;<\/em><\/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><div class=\"g-cols wpb_row  type_default valign_top vc_inner \"><div class=\"vc_col-sm-6 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><strong>Without Traits Knowledge<\/strong>:<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071215\/ht_traits_01-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29001\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071215\/ht_traits_01-1.png\" alt=\"\" width=\"493\" height=\"249\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071215\/ht_traits_01-1.png 493w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071215\/ht_traits_01-1-300x152.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><div class=\"vc_col-sm-6 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><strong>Using Traits<\/strong>:<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071124\/ht_traits_02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28998\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071124\/ht_traits_02.png\" alt=\"\" width=\"501\" height=\"249\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071124\/ht_traits_02.png 501w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071124\/ht_traits_02-300x149.png 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/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=\"g-cols wpb_row  type_default valign_top vc_inner \"><div class=\"vc_col-sm-6 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><strong>Without Traits Knowledge<\/strong>:<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071303\/ht_traits_03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29004\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071303\/ht_traits_03.png\" alt=\"\" width=\"503\" height=\"247\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071303\/ht_traits_03.png 503w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071303\/ht_traits_03-300x147.png 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><div class=\"vc_col-sm-6 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><strong>Using Traits<\/strong>:<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811131117\/ht_traits_04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29073\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811131117\/ht_traits_04.png\" alt=\"\" width=\"503\" height=\"463\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811131117\/ht_traits_04.png 503w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811131117\/ht_traits_04-300x276.png 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>In this document, we will show how Traits can be used to identify such situations and take appropriate action.<\/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<h2><span class=\"ez-toc-section\" id=\"Pre-requisites\">Pre-requisites<\/span><\/h2>\n<ul>\n<li>Bot building knowledge<\/li>\n<li>A <a href=\"\/docs\/bots\/how-tos\/creating-a-banking-bot\/\" target=\"_blank\" rel=\"noopener noreferrer\">Banking Bot<\/a> with the dialogs as mentioned below:\n<ul>\n<li><a href=\"\/docs\/bots\/how-tos\/banking-bot-transfer-funds\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Transfer Funds<\/strong><\/a>\u00a0&#8211; Dialog task prompting the user for Payer and Payee account numbers and the amount to be transferred and transferring the specified amount from the payer account to the payee account.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071359\/ht_traits_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29007\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071359\/ht_traits_1.png\" alt=\"\" width=\"365\" height=\"649\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071359\/ht_traits_1.png 365w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071359\/ht_traits_1-169x300.png 169w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><\/a><\/li>\n<li><strong>Issue Resolution\u00a0<\/strong>&#8211; Dialog task to assist in any issues faced by the user. It would display a regret message and transfer to a Live Agent.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071756\/ht_traits_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29010\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071756\/ht_traits_2.png\" alt=\"\" width=\"233\" height=\"533\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071756\/ht_traits_2.png 233w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071756\/ht_traits_2-131x300.png 131w\" sizes=\"auto, (max-width: 233px) 100vw, 233px\" \/><\/a><\/li>\n<li><strong>Knowledge Collection<\/strong> &#8211; A node &#8220;transfer funds&#8221; with an FAQ\u00a0 <em>&#8220;How do I transfer funds&#8221;<\/em><br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071930\/ht_traits_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29013\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071930\/ht_traits_3.png\" alt=\"\" width=\"1365\" height=\"325\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071930\/ht_traits_3.png 1365w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071930\/ht_traits_3-300x71.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811071930\/ht_traits_3-1024x244.png 1024w\" sizes=\"auto, (max-width: 1365px) 100vw, 1365px\" \/><\/a><\/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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Implementation\">Implementation<\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Intent_Detection_using_Traits\">Intent Detection using Traits<\/span><\/h3>\n<p>We will be using Trait to steer the conversation to &#8220;Issue Resolution&#8221; when the word &#8220;issue&#8221; is present in the User Utterance.<\/p>\n<p><strong>Steps<\/strong>:<\/p>\n<ol>\n<li>Select\u00a0<strong>Build<\/strong> tab from the top menu<\/li>\n<li>From\u00a0<strong>Natural Language -&gt; Training<\/strong> select the <strong>Traits\u00a0<\/strong>tab.<\/li>\n<li>Click\u00a0<strong>Add New Trait.<\/strong> We will be using a trait to identify the existence of the word &#8216;issue&#8217; in the user utterance.\n<ol>\n<li>Add a\u00a0<strong>Trait Type<\/strong> as\u00a0<em>Problem Statement,\u00a0<\/em>and <strong>Traits<\/strong> as <em>issue<\/em>. A given Trait Type can have multiple Traits grouped together logically.<\/li>\n<li>Optionally you can add utterances for Issues as <em>&#8216;problem&#8217;, &#8216;unable to&#8217;<\/em>, and <em>&#8216;not working&#8217;.\u00a0<\/em>These are the alternate words that users might use to indicate an issue.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811073857\/ht_traits_4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29016\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811073857\/ht_traits_4.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811073857\/ht_traits_4.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811073857\/ht_traits_4-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811073857\/ht_traits_4-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<li><strong>Save &amp; Add Rule\u00a0<\/strong><\/li>\n<\/ol>\n<\/li>\n<li>We will be defining the intent that needs to be triggered in the presence of this Issue trait.\n<ol>\n<li><strong>Select Intent<\/strong> &#8211; <em>Issue Resolution<\/em> to be triggered in presence of the trait.<\/li>\n<li>Add the\u00a0<strong>Trait Rules<\/strong> &#8211; <em>issue <\/em>as the trait that should trigger the above selected intent.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074122\/ht_traits_5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29019\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074122\/ht_traits_5.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074122\/ht_traits_5.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074122\/ht_traits_5-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074122\/ht_traits_5-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<li><strong>Save<\/strong> the Trait Mapping<\/li>\n<\/ol>\n<\/li>\n<li><strong>Train<\/strong> the Traits.<\/li>\n<li>Open the Issue Resolution Intent to see the Trait\u00a0<strong>Rules<\/strong> under the\u00a0<strong>NLP<\/strong> properties panel updated with the\u00a0<em>issue<\/em> trait.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074503\/ht_traits_6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29022\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074503\/ht_traits_6.png\" alt=\"\" width=\"797\" height=\"705\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074503\/ht_traits_6.png 797w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074503\/ht_traits_6-300x265.png 300w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/a><\/li>\n<li>Run the Bot and see the changed flow.<\/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=\"Knowledge_Intent_using_Traits\">Knowledge Intent using Traits<\/span><\/h3>\n<p>Here we will see how to drive the query from the user to the appropriate FAQ instead of the dialog task.<\/p>\n<p><strong>Steps<\/strong><\/p>\n<ol>\n<li>From\u00a0<strong>Natural Language -&gt; Training<\/strong> open\u00a0<strong>Traits<\/strong> dialog.<\/li>\n<li>Click\u00a0<strong>Add New Trait.<\/strong> We will be using a trait to identify the existence of questions in the user utterance.\n<ol>\n<li>Add a\u00a0<strong>Trait Type<\/strong> as\u00a0<em>Enquiry, <\/em>and <strong>Traits<\/strong> as <em>ask<\/em>. A given Trait Type can have multiple Traits grouped together logically.<\/li>\n<li>Optionally you can add utterances for Issues as <em>&#8216;wondering&#8217;,\u00a0 <\/em>and <em>&#8216;want to know&#8217;<\/em><em>.\u00a0<\/em>These are the alternate words that user might use to indicate an enquiry.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074742\/ht_traits_7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29025\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074742\/ht_traits_7.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074742\/ht_traits_7.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074742\/ht_traits_7-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074742\/ht_traits_7-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<li><strong>Save &amp; Exit<\/strong>\u00a0the Trait.<\/li>\n<li><strong>Train<\/strong> the Traits.<\/li>\n<\/ol>\n<\/li>\n<li>Associate the Trait to the FAQ\n<ol>\n<li>Open the <strong>Knowledge Collection<\/strong> and hover over the node with the question pertaining to Transfer Funds.<\/li>\n<li>Click the Settings or gear icon<\/li>\n<li>Under <strong>Traits<\/strong> type and select <em>ask<\/em> trait.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074953\/ht_traits_8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29028\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074953\/ht_traits_8.png\" alt=\"\" width=\"1361\" height=\"411\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074953\/ht_traits_8.png 1361w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074953\/ht_traits_8-300x91.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811074953\/ht_traits_8-1024x309.png 1024w\" sizes=\"auto, (max-width: 1361px) 100vw, 1361px\" \/><\/a><\/li>\n<li><strong>Train<\/strong> the Knowledge Collection.<\/li>\n<\/ol>\n<\/li>\n<li>Run the Bot. You will see that the Bot is still going to the <em>&#8220;Transfer Funds&#8221;\u00a0<\/em>intent.<\/li>\n<li>To understand the reason behind this:\n<ol>\n<li>Open\u00a0<strong>Testing -&gt; Utterance Testing.<\/strong><\/li>\n<li>Type the utterance, you will see that the\u00a0<strong>Trait<\/strong> has been identified.<\/li>\n<li>Select the <strong>Ranking and Resolver<\/strong>. You will see that both the intent and FAQ were identified but the intent got a higher score.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811075223\/ht_traits_9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29031\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811075223\/ht_traits_9.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811075223\/ht_traits_9.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811075223\/ht_traits_9-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811075223\/ht_traits_9-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>To ensure that the intent is not selected, we will add a\u00a0<strong>Negative Pattern<\/strong> to the <em>&#8220;Transfer Funds&#8221;<\/em> intent.\n<ol>\n<li>Select <strong>Natural Language -&gt; <\/strong><strong>Advanced Settings<\/strong>.<\/li>\n<li><em>Enable<\/em><strong> Negative Patterns<\/strong>. This will enable the addition of <em>Negative Patterns\u00a0<\/em>for intents.<\/li>\n<li>Under\u00a0<strong>Natural Language -&gt; Training<\/strong> select the intent to which negative patterns need to be added, in this case, <em>Transfer Funds<\/em>.<\/li>\n<li>Select\u00a0<strong>Negative<\/strong> <strong>Patterns<\/strong> tab.<\/li>\n<li>Add <em>&#8220;know&#8221;<\/em> as the negative pattern. This will ensure that the &#8216;Transfer Funds&#8217; intent is not identified when &#8216;<em>know<\/em>&#8216; is present in the user utterance.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130434\/ht_traits_10-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29064\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130434\/ht_traits_10-1.png\" alt=\"\" width=\"1363\" height=\"397\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130434\/ht_traits_10-1.png 1363w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130434\/ht_traits_10-1-300x87.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130434\/ht_traits_10-1-1024x298.png 1024w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><\/a><\/li>\n<li>Check the Utterance Training and see that the Transfer Funds intent is rejected because of the negative pattern.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130526\/ht_traits_11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29067\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130526\/ht_traits_11.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130526\/ht_traits_11.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130526\/ht_traits_11-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210811130526\/ht_traits_11-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Run the Bot and see the change.<\/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><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"In this How-To, we will explore a scenario in a Banking Bot, where traits can be used to steer the conversation flow in a more natural and predictable direction. For details on what Trait is and how it is implemented in the Kore.ai Bots platform, refer here. Problem Statement Consider the cases where the user...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-22369","post","type-post","status-publish","format-standard","hentry","category-how-tos"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/22369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/comments?post=22369"}],"version-history":[{"count":11,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/22369\/revisions"}],"predecessor-version":[{"id":39322,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/22369\/revisions\/39322"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/media?parent=22369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/categories?post=22369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/tags?post=22369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}