{"id":45363,"date":"2022-09-23T11:11:13","date_gmt":"2022-09-23T10:11:13","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=45363"},"modified":"2022-09-23T11:12:55","modified_gmt":"2022-09-23T10:12:55","slug":"creating-a-knowledge-graph-from-csv-or-json","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/uncategorised\/creating-a-knowledge-graph-from-csv-or-json\/","title":{"rendered":"Creating a Knowledge Graph from CSV or JSON"},"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\">Instead of creating the Knowledge Graph from the Platform UI, you can work in your preferred editor like Spreadsheet or as a JSON file. The Platform gives you the option to create a Knowledge Graph in a spreadsheet or JSON and then&nbsp; import it into the VA. Please refer to <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/knowledge-task\/importing-the-bot-ontology-from-csv-or-json\/\"><span style=\"font-weight: 400\">Importing and Exporting a Knowledge Graph <\/span><\/a><span style=\"font-weight: 400\">for details.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400\">Here is an overview of how you can create a Knowledge Graph using an editor:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Download the <\/span><strong>sample CSV or a JSON file<\/strong><span style=\"font-weight: 400\">. You can download these sample files from a blank Knowledge Graph too.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Edit the file by adding rows corresponding to the questions, responses, synonyms, etc.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Import the file to your VA.<\/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<h1><span class=\"ez-toc-section\" id=\"From_a_CSV_File\"><span style=\"font-weight: 400\">From a CSV File<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">You can create the Knowledge Graph using a sample spreadsheet that you can download from the VA. If you anticipate frequent changes to the Knowledge Graph, we recommend that you create it in a spreadsheet as it is easier to perform bulk updates compared to the application UI.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Follow the instructions below to build your Knowledge Graph in a spreadsheet.<\/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<h2><span class=\"ez-toc-section\" id=\"Download_the_Sample_CSV_file\"><span style=\"font-weight: 400\">Download the Sample CSV file<\/span><\/span><\/h2>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the VA to work with and go to <\/span><strong>Build<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the left pane, click <\/span><strong>Conversation Skills <\/strong><span style=\"font-weight: 400\">&gt; <\/span><strong>Knowledge Graph<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can find the <\/span><strong>Import<\/strong><span style=\"font-weight: 400\"> option on the respective Knowledge Graph.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You are prompted to <\/span><strong>back up<\/strong><span style=\"font-weight: 400\"> the Knowledge Graph before proceeding. Choose the CSV or JSON format for the backup.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">After backup, click <\/span><strong>Proceed<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the corresponding dialog box, click <\/span><strong>Sample CSV<\/strong><span style=\"font-weight: 400\">. The CSV file is downloaded to your local computer.<\/span><span style=\"font-weight: 400\"><br \/><\/span><\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105736\/download-sample.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105736\/download-sample-300x217.png\" alt=\"\" width=\"300\" height=\"217\" class=\"alignnone size-medium wp-image-45365\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105736\/download-sample-300x217.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105736\/download-sample.png 672w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\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=\"Build_the_Knowledge_Graph_in_a_CSV\"><span style=\"font-weight: 400\">Build the Knowledge Graph in a CSV<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">The format for the CSV file includes details regarding alternate answers, extended responses, and advanced responses.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The following types of entries are supported:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Faq<\/strong><span style=\"font-weight: 400\"> &ndash; The leaf level nodes with questions and answers.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Node<\/strong><span style=\"font-weight: 400\"> &ndash; For node\/tags, traits, preconditions, and output context.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Synonyms<\/strong><\/li>\n<li style=\"font-weight: 400\"><strong>KG Params<\/strong><\/li>\n<li style=\"font-weight: 400\"><strong>Traits<\/strong><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Each of the above categories needs to be preceded by the appropriate header. The header helps identify the new vs old versions of the JSON file by the platform.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Moving forward, this article discusses detailed information for each section and the content expected for each.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"FAQ\"><strong>FAQ<\/strong><\/span><\/h3>\n<p><span style=\"font-weight: 400\">This contains the actual questions and answers along with the alternate questions, answers, and extended answers.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105824\/faq-sample.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105824\/faq-sample.png\" alt=\"\" width=\"1331\" height=\"167\" class=\"alignnone size-full wp-image-45368\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105824\/faq-sample.png 1331w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105824\/faq-sample-300x38.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923105824\/faq-sample-1024x128.png 1024w\" sizes=\"auto, (max-width: 1331px) 100vw, 1331px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">Following are the column details that can be used:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Faq <\/strong><span style=\"font-weight: 400\">&ndash; Mandatory entry in the header, must be left blank in the following rows.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Que ID<\/strong><span style=\"font-weight: 400\"> &ndash; The Question ID is auto-generated by the Platform. This field uniquely identifies the FAQs and it should not be added or edited manually. Leave this field blank if you are adding a new FAQ. Do not alter the value of this field if you are updating an existing FAQ. Do not manually add any data in this field.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Path <\/strong><span style=\"font-weight: 400\">&ndash; To which the FAQ belongs<\/span><\/li>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Mandatory node names must be prefixed with ** and organizer nodes with !!<\/span><\/li>\n<\/ul>\n<li style=\"font-weight: 400\"><strong>Primary Question<\/strong><span style=\"font-weight: 400\"> &ndash; The actual question users might ask: When left blank, the entry in the <\/span><em><span style=\"font-weight: 400\">Answer<\/span><\/em><span style=\"font-weight: 400\"> column is considered as the alternative answer to the previous primary question.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Alternate Question<\/strong><span style=\"font-weight: 400\"> &ndash; Optional: Alternate question to the primary question if there are multiple alternate questions, they must be given in multiple rows.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Tags <\/strong><span style=\"font-weight: 400\">&ndash; For each question or alternate question.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Answer <\/strong><span style=\"font-weight: 400\">&ndash; Answer to the question serves as an alternate answer when the primary question field is left blank. The Answer format can be:<\/span><\/li>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Plain text<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Script with SYS_SCRIPT prefix i.e. <\/span><code><span style=\"font-weight: 400\">SYS_SCRIPT &lt;answer in javascript format&gt;<\/span><\/code><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Channel-specific formatted response when prefixed with SYS_CHANNEL_&lt;channel-name&gt;, the answer can be simple or in script format:<\/span><\/li>\n<ul>\n<li style=\"font-weight: 400\"><code><span style=\"font-weight: 400\">SYS_CHANNEL_&lt;channel-name&gt; SYS_TEXT &lt;answer&gt;<\/span><\/code><\/li>\n<li style=\"font-weight: 400\"><code><span style=\"font-weight: 400\">SYS_CHANNEL_&lt;channel-name&gt; SYS_SCRIPT &lt;answer in javascript format&gt;<\/span><\/code><\/li>\n<\/ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Trigger a dialog then prefix with <code>SYS_INTENT i.e. <\/code><\/span><code><span style=\"font-weight: 400\">SYS_INTENT &lt;dialog ref id&gt;<\/span><\/code><\/li>\n<\/ul>\n<li style=\"font-weight: 400\"><strong>Extended Answer-1<\/strong><span style=\"font-weight: 400\">: Optional to be used in case the response is lengthy.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Extended Answer-2<\/strong><span style=\"font-weight: 400\">: Optional to be used in case the response is lengthy.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>ReferenceId <\/strong><span style=\"font-weight: 400\">&ndash; reference to any external content used as a source for this FAQ<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Display Name<\/strong><span style=\"font-weight: 400\"> &ndash; The name that would be used for presenting the FAQ to the end-users in case of ambiguity.<\/span><\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Nodes\"><strong>Nodes<\/strong><\/span><\/h3>\n<p><span style=\"font-weight: 400\">This section includes settings for both nodes and tags.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110253\/nodes-1-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110253\/nodes-1-1.png\" alt=\"\" width=\"1565\" height=\"234\" class=\"alignnone size-full wp-image-45371\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110253\/nodes-1-1.png 1565w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110253\/nodes-1-1-300x45.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110253\/nodes-1-1-1024x153.png 1024w\" sizes=\"auto, (max-width: 1565px) 100vw, 1565px\" \/><\/a><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Node <\/strong><span style=\"font-weight: 400\">&ndash; Mandatory entry in the header must be blank in the following rows.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Que ID<\/strong><span style=\"font-weight: 400\"> &ndash; The Question ID is auto-generated by the Platform. This field uniquely identifies the FAQs and it should not be added or edited manually. Leave this field blank if you are adding a new FAQ. Do not alter the value of this field if you are updating an existing FAQ. Do not manually add any data in this field.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Nodepath <\/strong><span style=\"font-weight: 400\">&ndash; Path for reaching the node\/tag.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Tag <\/strong><span style=\"font-weight: 400\">&ndash; Mandatory for tag settings, leave blank for node.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Precondition <\/strong><span style=\"font-weight: 400\">&ndash; For qualifying this node\/tag.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>outputcontext <\/strong><span style=\"font-weight: 400\">&ndash; Context to be populated by this node\/tag.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Traits <\/strong><span style=\"font-weight: 400\">&ndash; for this node\/tag.<\/span><\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Synonyms\"><strong>Synonyms<\/strong><\/span><\/h3>\n<p><span style=\"font-weight: 400\">Use this section to enter the synonyms as key-value pairs.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110353\/synonyms.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110353\/synonyms.png\" alt=\"\" width=\"555\" height=\"52\" class=\"alignnone size-full wp-image-45374\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110353\/synonyms.png 555w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110353\/synonyms-300x28.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/a><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Synonyms <\/strong><span style=\"font-weight: 400\">&ndash; Mandatory entry in the header, must be blank in the following rows.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Phrase <\/strong><span style=\"font-weight: 400\">&ndash; for which the synonym needs to be entered.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Synonyms <\/strong><span style=\"font-weight: 400\">&ndash; Comma-separated values.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Use of synonyms in KG term identification can be enabled using the following:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>confidenceConfigs <\/strong><span style=\"font-weight: 400\">&ndash; Mandatory entry in the header, must be blank in the following rows.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>parameter <\/strong><span style=\"font-weight: 400\">&ndash; <\/span><em><span style=\"font-weight: 400\">useBotSynonyms<\/span><\/em><span style=\"font-weight: 400\"> in this case.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>value <\/strong><span style=\"font-weight: 400\">&ndash; true or false.<\/span><\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"KG_Params\"><strong>KG Params<\/strong><\/span><\/h3>\n<ul>\n<li style=\"font-weight: 400\"><strong>KG Params <\/strong><span style=\"font-weight: 400\">&ndash; mandatory entry in the header, must be blank in the following rows.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>lang <\/strong><span style=\"font-weight: 400\">&ndash; VA language code. For example, &ldquo;en&rdquo; for English.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>stopwords <\/strong><span style=\"font-weight: 400\">&ndash; Comma-separated values.<\/span><\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110434\/params.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110434\/params.png\" alt=\"\" width=\"553\" height=\"31\" class=\"alignnone size-full wp-image-45377\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110434\/params.png 553w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110434\/params-300x17.png 300w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Traits\"><strong>Traits<\/strong><\/span><\/h3>\n<p><span style=\"font-weight: 400\">Trait related information can be specified as follows:<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110507\/traits-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110507\/traits-1.png\" alt=\"\" width=\"1227\" height=\"207\" class=\"alignnone size-full wp-image-45380\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110507\/traits-1.png 1227w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110507\/traits-1-300x51.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110507\/traits-1-1024x173.png 1024w\" sizes=\"auto, (max-width: 1227px) 100vw, 1227px\" \/><\/a><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>Traits <\/strong><span style=\"font-weight: 400\">&ndash; Mandatory entry in the header, must be blank in the following rows.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>lang <\/strong><span style=\"font-weight: 400\">&ndash; VA language code. For example, &ldquo;en&rdquo; for English.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>GroupName <\/strong><span style=\"font-weight: 400\">&ndash; Trait group name.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>matchStrategy <\/strong><span style=\"font-weight: 400\">&ndash; Pattern or probability (for ML-based).<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>scoreThreshold <\/strong><span style=\"font-weight: 400\">&ndash; Threshold value (between 0 and 1) when the matchStrategy above is set to ML-based.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>TraitName <\/strong><span style=\"font-weight: 400\">&ndash; The name of the trait.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Training data<\/strong><span style=\"font-weight: 400\"> &ndash; Utterances for the trait.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">For Taxonomy Based KG, the following fields can be included if there are one or more faqs linked to another faq in the KG. :<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>faqLinkedTo <\/strong><span style=\"font-weight: 400\">&ndash; The faqLinkedto field identifies the source FAQ to which another FAQ is linked to. The faqLinkedTo field must contain a single, valid &lsquo;Que ID&rsquo; of the source FAQ. &lsquo;Que Id&rsquo; should be a valid identity generated by the platform. Do not give a reference to an FAQ that is already linked to another FAQ.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>faqLinkedBy <\/strong><span style=\"font-weight: 400\">&ndash; The faqLinkedBy field contains the list of &lsquo;Que Ids&rsquo; of the FAQs that are linked to a particular FAQ. &lsquo;Que Id&rsquo; should be a valid identity generated by the platform..<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>isSoftDeleted <\/strong><span style=\"font-weight: 400\">&ndash; The isSoftDeleted field is used to identify the FAQs that are deleted but it has one or more FAQs linked to it.<\/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=\"From_a_JSON_file\"><span style=\"font-weight: 400\">From a JSON file<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">The XO Platform allows you to create the Knowledge Graph in JSON and upload it. You can download a sample JSON from the VA to understand its structure.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Follow the instructions below to build your Knowledge Graph using JSON:<\/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<h2><span class=\"ez-toc-section\" id=\"Downloading_the_JSON_sample\"><span style=\"font-weight: 400\">Downloading the JSON sample<\/span><\/span><\/h2>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the left pane, click <\/span><strong>Conversational Skills &ndash;<\/strong><span style=\"font-weight: 400\">&gt; <\/span><strong>Knowledge Graph<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You can find the <\/span><strong>Import<\/strong><span style=\"font-weight: 400\"> option on the respective Knowledge Graph.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">You are prompted to <\/span><strong>back up<\/strong><span style=\"font-weight: 400\"> the Knowledge Graph before proceeding. Choose the CSV or JSON format for the backup.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">After backup, click <\/span><strong>Proceed<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the corresponding dialog box, click <\/span><strong>Sample JSON<\/strong><span style=\"font-weight: 400\">. The JSON file is downloaded to your local computer. <\/span><span style=\"font-weight: 400\"><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=\"JSON_Reference\"><span style=\"font-weight: 400\">JSON Reference<\/span><\/span><\/h2>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110705\/jsonref.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110705\/jsonref-1024x858.jpg\" alt=\"\" width=\"640\" height=\"536\" class=\"alignnone size-large wp-image-45383\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110705\/jsonref-1024x858.jpg 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110705\/jsonref-300x251.jpg 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220923110705\/jsonref.jpg 1031w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<table>\n<tbody>\n<tr>\n<th>\n<p><strong>Property Name<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>Type<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>Description<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">FAQ<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Array<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Consists of the following:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Question<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Answer<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Leaf and parent terms up to the First-level node in the path<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Alternative question<\/span><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Question<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">String<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Primary question; included in the FAQ array.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Answer<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">String<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">VA response; included in the FAQ array.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Terms<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Array<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Includes the leaf node to which the question is added, and its parents up to the First-level node.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">refId<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">String<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Optional reference to any external content used as a source for this FAQ<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Alternate Questions<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Array<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Consists of alternative questions and terms. Include terms from leaf to the First-level node.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Synonyms<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Object<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Consists of arrays of terms and their synonyms.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Unmappedpath<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Array<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Consists of arrays of nodes that do not have any questions, and all their parents up to the First-level node.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400\">Traits<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Object<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400\">Consists of trait names as keys and an array of utterances as values.<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400\">For a Taxonomy Based KG, the following fields can be included if there are one or more faqs linked to another faq in the KG. :<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>faqLinkedTo <\/strong><span style=\"font-weight: 400\">&ndash; To identify source faq.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>faqLinkedBy <\/strong><span style=\"font-weight: 400\">&ndash; To identify linked faqs.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>isSoftDeleted <\/strong><span style=\"font-weight: 400\">&ndash; To identify faq is deleted but it has some linked faqs.<\/span><\/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>[vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3LXBvc3QtZWxtJTIwcG9zdF9uYXZpZ2F0aW9uJTIwbGF5b3V0X3NpbXBsZSUyMGludl9mYWxzZSUyMiUzRSUwQSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfZmlyc3QlMjB0b19wcmV2JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGYm90LWJ1aWxkZXItdG9vbCUyRmtub3dsZWRnZS10YXNrJTJGZ2VuZXJhdGlvbi1vZi1vbnRvbG9neSUyRiUyMiUzRSUzQyUyRnAlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLWFycm93JTIyJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1tZXRhJTIyJTNFUHJldmlvdXMlMjBQb3N0JTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS10aXRsZSUyMiUzRSUzQ3NwYW4lM0VLRyUyMC0lMjBHZW5lcmF0aW9uJTNDJTJGc3BhbiUzRSUzQyUyRmRpdiUzRSUwQSUzQ3AlM0UlM0MlMkZhJTNFJTNDYnIlMjAlMkYlM0UlMEElM0NhJTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbSUyMG9yZGVyX3NlY29uZCUyMHRvX25leHQlMjIlMjBocmVmJTNEJTIyJTJGZG9jcyUyRmJvdHMlMkZib3QtYnVpbGRlci10b29sJTJGa25vd2xlZGdlLXRhc2slMkZrbm93bGVkZ2Utb250b2xvZ3ktYW5hbHlzaXMlMkYlMjIlM0UlM0MlMkZwJTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1hcnJvdyUyMiUzRSUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tbWV0YSUyMiUzRU5leHQlMjBQb3N0JTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS10aXRsZSUyMiUzRSUzQ3NwYW4lM0VLRyUyMC0lMjBBbmFseXNpcyUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ==[\/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":"Instead of creating the Knowledge Graph from the Platform UI, you can work in your preferred editor like Spreadsheet or as a JSON file. The Platform gives you the option to create a Knowledge Graph in a spreadsheet or JSON and then&nbsp; import it into the VA. Please refer to Importing and Exporting a Knowledge...","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45363","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/45363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=45363"}],"version-history":[{"count":4,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/45363\/revisions"}],"predecessor-version":[{"id":45389,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/45363\/revisions\/45389"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=45363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=45363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=45363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}