{"id":18124,"date":"2019-02-12T09:36:25","date_gmt":"2019-02-12T09:36:25","guid":{"rendered":"\/docs\/bots\/bot-builder\/knowledge-graph\/"},"modified":"2021-03-25T09:16:10","modified_gmt":"2021-03-25T09:16:10","slug":"knowledge-graph","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-0\/docs\/bots\/nlp\/knowledge-graph\/","title":{"rendered":"Knowledge Graph Training"},"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><a href=\"\/docs\/bots\/nlp\/optimizing-bots\/\" target=\"_blank\" rel=\"noopener noreferrer\">Training your Bot<\/a> is not restricted to Machine Learning and Fundamental Meaning engines. You need to train the Knowledge Graph engine, too.<\/p>\n<p>Knowledge Graph engine responds to users\u2019 intents by identifying the appropriate questions from the Knowledge Collection.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Knowledge_Graph\">Knowledge Graph<\/span><\/h3>\n<p>From the Knowledge Collection, follow these steps to build and train the corresponding Knowledge Graph:<\/p>\n<ol>\n<li>Identify terms by grouping the unique words in each FAQ question. Build an ontology based on all such unique words.<\/li>\n<li>Associate traits with terms to enable filtering FAQs from multiple identified results.<\/li>\n<li>Define synonyms for each term\/node in the ontology. Ensure that all the different ways to call the term are defined.<\/li>\n<li>Depending on the importance of each term in a path, mark them as either mandatory or regular.<\/li>\n<li>Define alternative questions for each FAQ to ensure better coverage.<\/li>\n<li>Manage Context for accurate response.<\/li>\n<li>Stop Words can be used to filter unwanted utterances.<\/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<p>Training and testing your Knowledge Collection is crucial to building a Knowledge Graph.<\/p>\n<p>Before training, you can improve performance by using tags, synonyms, and traits.<\/p>\n<h4>Tags<\/h4>\n<p>When you type a question in the <b>User Says<\/b> field, the Knowledge Graph suggests some tags that you can add to the graph based on the text. To include a suggested term to the path, select the tag from the drop-down list that appears when the cursor is in the Add Term field. You can also add custom tags by typing them in the add term field and hitting the enter key.<\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/KC-terms.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21562\" src=\"\/wp-content\/uploads\/sites\/11\/KC-terms.png\" alt=\"\" width=\"820\" height=\"213\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/11\/20221201094747\/KC-terms.png 820w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/11\/20221201094747\/KC-terms-300x78.png 300w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/a><\/p>\n<p>Once you add a tag, it will be visible below the question like a tag everywhere the question appears. Tags work exactly like terms but are not displayed in the Bot Ontology to avoid clutter. You can add synonyms and traits to tags as you do to terms.<\/p>\n<h4>Synonyms<\/h4>\n<p>You can add multiple synonyms for each term in your Knowledge Graph, making the path discoverable for varied user utterances. You can add synonyms for a term from the Settings window.<\/p>\n<p>When you add a synonym for a term in the Knowledge Graph, you can add them as local (Path Level) or global (Knowledge Graph) synonyms.<\/p>\n<p><strong>Local synonyms<\/strong> apply to the term only in that particular path, whereas <strong>global synonyms<\/strong> apply to the term even if it appears on any other path in the ontology.<\/p>\n<p><strong>To add synonyms for a term<\/strong>:<\/p>\n<ol>\n<li>On the top left side of your Bot Ontology, <strong>hover over the node\/term<\/strong> for which you want to add synonyms.<\/li>\n<li>Click the <strong>gear icon<\/strong> to open the Settings window.<\/li>\n<li>To add <strong>synonyms<\/strong>,\u00a0 do the following:\n<ul>\n<li>To add local synonyms, type them in the box under <strong>Path Level Synonyms<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/Synonyms-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-13988\" src=\"\/wp-content\/uploads\/sites\/11\/Synonyms-1.png\" alt=\"\" width=\"839\" height=\"262\" \/><\/a><\/li>\n<li>To add Global synonyms, click\u00a0<strong>Edit or Add New<\/strong> under <strong>Knowledge Graph Synonyms<\/strong> and enter them. These Graph Synonyms can also be accessed from the <strong>Manage Synonyms<\/strong> option under the more options icon on the top right corner of the Bot Ontology page.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/KC-options.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21431\" src=\"\/wp-content\/uploads\/sites\/11\/KC-options.png\" alt=\"\" width=\"250\" height=\"204\" \/><\/a><br \/>\n<b>Note<\/b>: Press Enter after typing each synonym in the Synonyms box. If you type multiple synonyms without pressing enter after each synonym, all the synonyms are considered as a single entity, even if they are separated by spaces.<\/li>\n<\/ul>\n<\/li>\n<li>To add synonyms for a child node, enter them in the Synonyms box next to the <strong>Child Terms<\/strong> listed at the bottom of the settings window.<\/li>\n<\/ol>\n<p><strong>To add synonyms for a tag<\/strong>:<\/p>\n<ol>\n<li>On the top left side of your Bot Ontology, <strong>click the term\/node<\/strong> to which you have added the question.<\/li>\n<li>From the list of questions on the Questions panel, <strong>hover over the question<\/strong>.<\/li>\n<li>Click the <strong>edit icon<\/strong> and in the Edit Q&amp;A window, <strong>double-click the tag<\/strong>. (You can edit custom tags alone not the default ones)<\/li>\n<li>On the Tag Settings window that opens, type each synonym and <span style=\"text-decoration: underline\">press Enter<\/span> to add it.<\/li>\n<\/ol>\n<div class=\"alert alert-info\"><b>Note<\/b>: <span style=\"text-decoration: underline\">Press Enter<\/span> after typing each synonym in the Synonyms box. If you type multiple synonyms, and without pressing enter, all the synonyms are considered as a single entity, even if they are separated by spaces.<\/div>\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=\"Traits\">Traits<\/span><\/h3>\n<p><strong>NOTE<\/strong>: Traits replace Classes from before ver 6.4.<\/p>\n<p>You can create traits with common user utterances and then add them to the relevant terms &#8211; nodes and tags, in your Knowledge Collection. To know more about Traits, <a href=\"\/docs\/bots\/nlp\/traits\/\">click here<\/a>.<\/p>\n<p><strong>To create a trait<\/strong>:<\/p>\n<p>Traits are common across the Bot Builder if you have created Traits from Natural Language section they are available for use here.<\/p>\n<ol>\n<li>On the top right side of your Bot Ontology window, click the <strong>more options icon<\/strong> and then select<b>\u00a0Manage Traits<\/b>.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/KC-options.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21431\" src=\"\/wp-content\/uploads\/sites\/11\/KC-options.png\" alt=\"\" width=\"250\" height=\"204\" \/><\/a><\/li>\n<li>In the Manage Traits pop-up window, click <b>New Trait<\/b>.<\/li>\n<li>In the <b>Trait Type<\/b> and <b>Trait Name<\/b> field, enter a relevant name for the trait, for example, <i>Issues<\/i>.<\/li>\n<li>In the <b>Utterances <\/b>box, enter all the utterances that you want to include in the trait. Examples of the <i>Issues<\/i> trait: <i>it is not working<\/i>, <i>not working<\/i>, <i>is not working<\/i>, and <i>I cannot see.<\/i><br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/KC-trait-creation.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21564\" src=\"\/wp-content\/uploads\/sites\/11\/KC-trait-creation.png\" alt=\"\" width=\"820\" height=\"699\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/11\/20221201094746\/KC-trait-creation.png 820w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/11\/20221201094746\/KC-trait-creation-300x256.png 300w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/a><\/li>\n<li>Click <b>Save<\/b>.<\/li>\n<\/ol>\n<p>After you create a trait, you can assign it to multiple nodes and tags in the Bot Ontology.<\/p>\n<p><strong>To add a trait to a node\/term<\/strong>:<\/p>\n<ol>\n<li>On the top left side of your Bot Ontology, <strong>hover over the terms<\/strong> to which you want to add the trait.<\/li>\n<li>Click the <strong>gear icon<\/strong> to open the Settings window.<\/li>\n<li>In the <b>Trait <\/b>drop-down list, select the name of a trait and then click <b>Save<\/b>.<\/li>\n<\/ol>\n<div class=\"alert alert-info\"><b>Note<\/b>: Adding a trait to a node doesn\u2019t add it to other nodes with the same name. You should add traits to each relevant node separately.<\/div>\n<div><\/div>\n<div class=\"alert alert-info\"><strong>To add a trait to a tag<\/strong>:<\/div>\n<ol>\n<li>On the top left side of your Bot Ontology, <strong>click the term<\/strong> to which you have added the question.<\/li>\n<li>From the list of questions on the Questions panel, <strong>hover over the question<\/strong>.<\/li>\n<li>Click the <strong>edit icon<\/strong> and in the Edit Q&amp;A window, <strong>double-click the term<\/strong>. (You can edit custom terms alone not the default ones)<\/li>\n<li>From the Tag Settings window, in the <b>Traits<\/b> drop-down list, select the name of a trait and then click <b>Save<\/b>.<\/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=\"Context\">Context<\/span><\/h3>\n<p>You can <strong>Manage Context<\/strong> for the terms and tags by setting:<\/p>\n<ul>\n<li><strong>the Intent Precondition<\/strong> &#8211; the context that should be present as a qualifier for this node or tag<\/li>\n<li><strong>Context Output<\/strong> &#8211; the context that should be populated to signify the execution of this task<\/li>\n<\/ul>\n<p><a href=\"\/docs\/bots\/bot-intelligence\/context-management\/\">See here for more<\/a> on Context Management.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\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=\"Manage_Usage\">Manage Usage<\/span><\/h3>\n<p>Designate the terms and tags in your ontology as Default, or Mandatory, or Organizer depending on their importance in qualifying matching paths:<\/p>\n<ul>\n<li><b>Default<\/b>: Default terms do not have any particular considerations in shortlisting qualified paths.<\/li>\n<li><b>Mandatory<\/b>: When you mark a term as Mandatory, all paths associated with the term are shortlisted for ranking only if the user\u2019s utterance includes the mandatory term or its synonyms.<\/li>\n<li><strong>Organizer<\/strong>: Term can be marked as being a part of the Knowledge Graph only for organizing questions (this option is available only for terms not tags).<\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\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=\"Stop_Words\">Stop Words<\/span><\/h3>\n<p>Stop words present in the user utterance are discarded for scoring even if the stop word is used to define a node (or node synonyms).<\/p>\n<p>Knowledge Graph has language specific predefined set of stop words. This list can be customized to suit your requirements.<\/p>\n<p><strong>To edit stop words list:<\/strong><\/p>\n<ol>\n<li>From the Bot Ontology page, click on the <strong>more options icon<\/strong> and select <strong>Manage Stop Words<\/strong><br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/KC-options.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21431\" src=\"\/wp-content\/uploads\/sites\/11\/KC-options.png\" alt=\"\" width=\"250\" height=\"204\" \/><\/a><\/li>\n<li>From the Manage Stop Words window, delete or add stop words.<\/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 id=\"train-the-knowledge-graph\"><span class=\"ez-toc-section\" id=\"Train_Test\">Train &amp; Test<\/span><\/h3>\n<p>After you complete creating\/editing the Bot Ontology, click the <b>Train <\/b>button on the top right-hand side of your Bot Ontology window. When you do so, all the paths, synonyms, and question-answer sets are sent to the Graph DB engine.<\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/Train.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12131 \" src=\"\/wp-content\/uploads\/sites\/11\/Train.jpg\" alt=\"\" width=\"611\" height=\"133\" \/><\/a><\/p>\n<div class=\"alert alert-info\"><b>Note<\/b>: After every change that you make to the ontology such as adding synonyms to a term or editing the name of a term, you must click the <b>Train <\/b>button for the changes to reflect in the bot responses.<\/div>\n<h4>Test the Knowledge Graph<\/h4>\n<p>When you complete creating the Bot Ontology and training it, we recommend you to interact with the bot and ask questions connected to the Knowledge Collection. Test the bot responses by using a variety of utterances so that you can identify missing terms, questions, alternative questions, synonyms, and traits.<\/p>\n<div class=\"alert alert-info\"><b>Note:<\/b> The Knowledge Graph remains in the <strong>Configured<\/strong> status until it&#8217;s published.<\/div>\n<h4>FAQ Detection Steps<\/h4>\n<p>The following FAQ Detection steps give you an overview of the process in which the KG engine shortlists the questions from a Knowledge Collection:<\/p>\n<ol>\n<li><b>Extract Nodes<\/b>: The KG engine processes the user utterance to extract the term (ontology nodes) present in the collection. It also takes into consideration the synonyms, traits, and tags associated with the terms.<\/li>\n<li><b>Query Graph<\/b>: The KG engine fetches all the paths that consist of the extracted nodes.<\/li>\n<li><b>Shortlist Paths<\/b>: All the paths consisting of 50% or more matching terms with the user utterance are shortlisted for further processing. For example, the engine shortlists a path with four nodes such as Personal Banking \u2192 Joint Account \u2192 Add \u2192 Account Holder if at least two of these terms occur in the user utterance.<br \/>\n<b>Note<\/b>: Path coverage computation doesn\u2019t consider the root node.<\/li>\n<li><b>Filter with Traits<\/b>: If you define any traits in the Knowledge Graph, paths shortlisted in the above step are further filtered based on the confidence score of a classification algorithm in user utterance.<\/li>\n<li><b>Send to Ranker<\/b>: The KG engine then sends the shortlisted paths to the Ranker Program.<\/li>\n<li><b>Score based on Cosine Similarity<\/b>: Ranker makes use of user-defined synonyms, lemma forms of word, n-grams, stop words, to compute the cosine similarity between user utterance and the shortlisted questions. Paths are ranked in non-increasing order of cosine similarity score.<\/li>\n<li><b>Qualify Matches<\/b>: The ranker then qualifies the paths as follows:\n<ul>\n<li>Paths with score &gt;= upper_threshold are qualified as an answer (definitive match).<\/li>\n<li>Paths with lower_threshold &lt; score &lt; upper_threshold are marked as suggestion (probable match).<\/li>\n<li>Paths with score &lt; lower_threshold are ignored.<\/li>\n<\/ul>\n<\/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 id=\"config\"><span class=\"ez-toc-section\" id=\"Threshold_Configurations\">Threshold &amp; Configurations<\/span><\/h3>\n<p>To train and improve the performance, Threshold and Configurations can be specified for all three NLP engines \u2013 FM, KG, and ML. You can access these settings from <strong>Natural Language &gt; Training &gt; Thresholds &amp; Configurations.<\/strong><\/p>\n<p><strong>NOTE<\/strong>: If your Bot is multilingual, you can set the Thresholds differently for different languages. If not set, the Default Settings will be used for all languages. This feature is available from ver 7.0 onwards.<\/p>\n<p>The settings for KG engine is discussed in detail in the following sections.<\/p>\n<h4>Navigating to\u00a0Threshold and Configurations<\/h4>\n<ol>\n<li>Open the bot for which you want to configure KG settings.<\/li>\n<li>Hover over the side navigation panel and then click\u00a0<b>Natural Language -&gt; Training<\/b>.<\/li>\n<li>Click the <b>Thresholds &amp; Configurations <\/b>tab.<\/li>\n<li>Below is a detailed discussion about the <strong>Knowledge Collection<\/strong> section on this page.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/thresholds-KG-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21677\" src=\"\/wp-content\/uploads\/sites\/11\/thresholds-KG-1.png\" alt=\"\" width=\"820\" height=\"461\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/11\/20221201094745\/thresholds-KG-1.png 820w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/11\/20221201094745\/thresholds-KG-1-300x169.png 300w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/a><\/li>\n<\/ol>\n<p><strong>Auto Correction <\/strong>will spell correct the words in the user input to the closest matching word from the Bot\u2019s KG domain dictionary. KG domain dictionary comprises of the words extracted from KG\u2019s questions, alternate questions, nodes, and synonyms.<\/p>\n<p><strong>Path Coverage<\/strong> can be used to define the minimum percentage of terms in the user\u2019s utterance to be present in a path to qualify it for further scoring.<\/p>\n<p><strong>Minimum and Definitive Level for Knowledge Tasks\u00a0<\/strong>allows you to set the confidence levels for a Knowledge Task. You can view and adjust the confidence level percentages for the task in one of three ranges as:<\/p>\n<ul>\n<li><strong>Definitive range<\/strong> &#8211; Matches in this range (<strong>green area<\/strong>) are picked and any other probable matches are discarded<\/li>\n<li><strong>Probable range<\/strong> &#8211; Matches in this range (<strong>dark gray area<\/strong>) are considered for rescoring and ranking<\/li>\n<li><strong>Low confidence range<\/strong> &#8211; If no other intents have matched, low confidence matches (<strong>orange area<\/strong>) are presented to end user for intent confirmation<\/li>\n<li><strong>Not matching a task<\/strong> &#8211; The <strong>light gray area<\/strong> represents the knowledge task NLP interpreter confidence levels as too low to match the task intent.<\/li>\n<\/ul>\n<p><strong>KG Suggestions Count:\u00a0<\/strong>Define the maximum number of KG \/ FAQ suggestions to be presented when a definite KG \/ FAQ match is not available.<\/p>\n<p><strong>Proximity of Suggested Matches:\u00a0<\/strong>Define the maximum difference to be allowed between top scoring and immediate next suggested questions to consider them as equally important. This applies to the matches in the Probable range.<\/p>\n<p><strong>Manage Long Responses<\/strong> when the response size exceeds channel specific limitations. You can choose to truncate the response or display the full response with a <strong>read more<\/strong> link. &#8216;Read More&#8217; link will be included at the end of the message. On selecting this link, the full response will be opened as an answer in the browser. The URL to open the long response in a web browser is set by default by the platform. But you can provide a custom URL, too.<\/p>\n<p><strong>Search in Answer<\/strong> for the qualifying FAQs (<a href=\"#search-in-answer\">see below for more<\/a>)<\/p>\n<p><strong>Qualify Contextual Paths<\/strong> in the Knowledge Collection using the context tags available in the context.<\/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<h4 id=\"search-in-answer\">Search in Answer<\/h4>\n<p>This feature will enable identifying FAQs by searching the user input against the answer section, instead of only matching with questions. This will be a fallback mechanism only i.e. search in the answer section will be done only if no FAQs are identified from questions.<\/p>\n<p>When the &#8216;<strong>Search in Answer<\/strong>&#8216; flag is enabled, the KG engine will consider the answer text for identifying the intents also.<\/p>\n<p><span style=\"text-decoration: underline\">NOTE<\/span>: Currently, this feature is supported only for the English language.<\/p>\n<p>Once this option is enabled, you can specify whether to <strong>Inform the end user that the answer is a probable answer<\/strong>. If selected a Standard Message to the effect will be displayed, which can be customized using the Manage Response link. <a href=\"\/docs\/bots\/bot-intelligence\/default-dialog\/#Managing_Standard_Responses\">Know more<\/a>.<\/p>\n<p>There are three ways in which you can render the response:<\/p>\n<ol>\n<li><strong>Show complete response<\/strong>: Full response will be sent as the answer to the user.<\/li>\n<li><strong>Show only the relevant paragraph<\/strong>: Only the relevant paragraph from which the question was identified will be sent as the response.<\/li>\n<li><strong>Show only the relevant paragraph with &#8216;Read More&#8217; link<\/strong>: Only the relevant paragraph from which the question was identified will be sent as the response.<br \/>\nAn additional &#8216;Read More&#8217; link will be included at the end of the message. On selecting this link, the full response will be opened as an answer in the browser. The URL to open the long response in a web browser is set by default by the platform. But you can provide a <strong>custom URL<\/strong> (see below for details).<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/KG-searchinanswer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21252\" src=\"\/wp-content\/uploads\/sites\/11\/KG-searchinanswer.png\" alt=\"\" width=\"820\" height=\"461\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/11\/20221201094800\/KG-searchinanswer.png 820w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/11\/20221201094800\/KG-searchinanswer-300x169.png 300w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/a><\/p>\n<p><strong>Custom URL Configuration:<\/strong><\/p>\n<p>By default, the URL to open the long response in the web browser is set by the platform. You have an option to provide a custom URL for rendering the FAQ answers.<\/p>\n<p>The platform will call the provided URL with details of the relevant message template (template id) and other necessary information.<\/p>\n<p>The following API gives the full information of the FAQ:<\/p>\n<p><strong>URL<\/strong>:<br \/>\n<code>https:\/\/{{host-name}}\/api\/1.1\/public\/users\/{{userId}}\/faqs\/resolvedResponse\/{{respId}}<\/code><\/p>\n<p><strong>Method<\/strong>: <code>get<\/code><\/p>\n<p><strong>Headers<\/strong>: <code>{auth : JWT}<\/code><\/p>\n<p><strong>Sample Response<\/strong>:<br \/>\n<code>{<br \/>\n\"response\": \"You can contact our Branch officials wherein you have submitted your documents. If the documents are in order, the account will be opened within 2 working days.\",<br \/>\n\"primaryQuestion\": \"How to check the status of my account opening?\"<br \/>\n}<\/code><\/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><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Training your Bot is not restricted to Machine Learning and Fundamental Meaning engines. You need to train the Knowledge Graph engine, too. Knowledge Graph engine responds to users\u2019 intents by identifying the appropriate questions from the Knowledge Collection. Knowledge Graph From the Knowledge Collection, follow these steps to build and train the corresponding Knowledge Graph:...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-18124","post","type-post","status-publish","format-standard","hentry","category-nlp"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/18124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/comments?post=18124"}],"version-history":[{"count":31,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/18124\/revisions"}],"predecessor-version":[{"id":22775,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/18124\/revisions\/22775"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/media?parent=18124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/categories?post=18124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/tags?post=18124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}