GETTING STARTED
Kore.ai XO Platform
Virtual Assistants Overview
Natural Language Processing (NLP)
Concepts and Terminology
Help & Learning Resources
Quick Start Guide
Accessing the Platform
Navigating the Kore.ai XO Platform
Building a Virtual Assistant
Using Workspaces
Release Notes
Current Version
Previous Versions
Deprecations
Request a Feature
CONCEPTS
Design
Storyboard
Overview
FAQs
Conversation Designer
Overview
Dialog Tasks
Mock Scenes
Dialog Tasks
Overview
Navigate Dialog Tasks
Build Dialog Tasks
Nodes & Connections
Overview
Node Types
Intent Node
Dialog Node
Entity Node
Entity Rules
Form Node
Confirmation Node
Message Nodes
Logic Node
Bot Action Node
Service Node
Webhook Node
Script Node
Process Node
Agent Transfer
Node Connections Setup
Sub-Intent Scoping
User Prompts
Voice Call Properties
Dialog Task Management
Supported Entity Types
Supported Company Names
Supported Colors
Knowledge Graph
Introduction
Knowledge Extraction
Build Knowledge Graph
Create Node Structure
Build the Graph
Add FAQs
Add FAQs from an Existing Source
Run a Task
Traits, Synonyms, and Stop Words
Manage Variable Namespaces
Update Knowledge Graph
Introduction
Move Question and Answers Between Nodes
Edit and Delete Terms
Edit Questions and Responses
Knowledge Graph Analysis
Knowledge Graph Import and Export
Prepare Data for Import
From a CSV File
From a JSON File
Importing Knowledge Graph
Exporting Knowledge Graph
Auto-Generate Knowledge Graph
Alert Tasks
Small Talk
Digital Skills
Overview
Digital Forms
Digital Views
Introduction
Widgets
Panels
Session and Context Variables
Context Object
Train
NLP Optimization
ML Engine
Overview
Model Validation
FM Engine
KG Engine
Traits Engine
Ranking and Resolver
Training Validations
NLP Configurations
NLP Guidelines
Intelligence
Introduction
Event Handlers
Default Standard Responses
Contextual Memory
Contextual Intents
Interruption Management
Multi-intent Detection
Amending Entities
Default Conversations
Conversation Driven Dialog Builder
Sentinment Management
Tone Analysis
Test & Debug
Overview
Talk to Bot
Utterance Testing
Batch Testing
Conversation Testing
Health and Monitoring
Deploy
Channels
Publishing
Versioning
Analyze
Introduction
Overview Dashboard
Conversations Dashboard
Users Dashboard
Performance Dashboard
Custom Dashboards
Introduction
Custom Meta Tags
Create Custom Dashboard
NLP Insights
Conversations History
Conversation Flows
Analytics Dashboard Filters
Usage Metrics
Containment Metrics
Smart Bots
Universal Bots
Introduction
Universal Bot Definition
Universal Bot Creation
Training a Universal Bot
Universal Bot Customizations
Enabling Languages
Store
Manage Assistant
Plan & Usage
Overview
Usage Plans
Support Plans
Invoices
Authorization
Multilingual Virtual Assistants
Get Started
Supported Components & Features
Manage Languages
Manage Translation Services
Multiingual Virtual Assistant Behavior
Masking PII Details
Variables
Collections
IVR Settings
General Settings
Assistant Management
Manage Namespace
Data as Service
Data Table
Table Views
App Definitions
Sharing Data Tables or Views
HOW TOs
Build a Travel Planning Assistant
Travel Assistant Overview
Create a Travel Virtual Assistant
Design Conversation Skills
Create an ‘Update Booking’ Task
Create a Change Flight Task
Build a Knowledge Graph
Schedule a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Train the Assistant
Use Traits
Use Patterns
Manage Context Switching
Deploy the Assistant
Configure Agent Transfer
Use Bot Functions
Use Content Variables
Use Global Variables
Use Web SDK
Build a Banking Assistant
Design Conversation Skills
Create a Sample Banking Assistant
Create a Transfer Funds Task
Create a Update Balance Task
Create a Knowledge Graph
Set Up a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Add Data to Data Tables
Update Data in Data Tables
Add Data from Digital Forms
Train the Assistant
Composite Entities
Use Traits
Use Patterns for Intents & Entities
Manage Context Switching
Deploy the Assistant
Configure an Agent Transfer
Use Assistant Functions
Use Content Variables
Use Global Variables
Intent Scoping using Group Node
Analyze the Assistant
Create a Custom Dashboard
Use Custom Meta Tags in Filters
APIs & SDKs
API Reference
API Introduction
API List
API Collection
koreUtil Libraries
SDK Reference
SDK Introduction
SDK Security
SDK Registration
Web Socket Connect and RTM
Using the BotKit SDK
BotKit SDK Tutorial - Blue Prism
Widget SDK Tutorial
Web SDK Tutorial
ADMINISTRATION
Introduction to Admin Console
Administration Dashboard
User Management
Add Users
Manage Groups
Manage Roles
Assistant Management
Enrollment
Invite Users
Send Bulk Invites
Import User Data
Synchronize Users from AD
Security & Control
Using Single-Sign On
Security Settings
Cloud Connector
Analytics
Billing
  1. Home
  2. Docs
  3. Virtual Assistants
  4. Builder
  5. Knowledge Graph
  6. Knowledge Graph

Knowledge Graph

The XO Platform’s  Knowledge Graph (KG) helps you turn your static FAQ text into an intelligent, personalized conversational experience. It goes beyond the usual practice of capturing FAQs in the form of flat question-answer pairs. Instead, the Knowledge Graph enables you to create a hierarchical structure of key domain terms and associate them with context-specific questions and their alternatives, synonyms, and Machine learning-enabled classes. This structure, when trained by the Platform, generates a Knowledge Graph that enables an intelligent FAQ experience.

See here for more on KG Terminology.

To generate a Knowledge Graph, you need to add FAQs to an existing or new VA. If you have not created a VA, refer to Building a Virtual Assistant..

To open the Knowledge Graph builder, follow the below steps:

  1. Log in to the XO Platform and open the VA to which you want to add the Knowledge Graph.
  2. Select the Build tab from the top menu.
  3. On the left menu, select Conversation Skills and click Knowledge Graph.
  4. You will notice that there is already a Knowledge Graph with the name of your assistant.


Create the Knowledge Graph Node Structure

By default, the name of the VA becomes the root node of the hierarchy and you can edit this. Create the rest of the nodes below the root node.

To create nodes, follow the below steps:

    1. Open the Knowledge Graph.
    2. On the top left of the Knowledge Graph window, hover over the root node.
    3. Click the + icon. A text box appears below to Add Node. For better performance, there is a restriction of 50k FAQs spread across 20k maximum allowed number of nodes.
    4. Type the name of the node in the text box and press Enter. A warning would be displayed in case you enter a duplicate node name, i.e. if a child node with the same name already exists under the parent node.
      Note: This node becomes a child for the root node and can be referred to as a First-level node.
    5. Repeat steps 1 to 3 to create other First-level nodes.
    6. After you create First-level nodes, create child nodes as follows:
      1. Hover over any First-level node, and click the plus icon to create its child node.
      2. You can create a child node for any level node by hovering over it and clicking the + icon.
    7. Follow the same process to create multiple node levels. 

The demo below shows you how to create nodes.

You can delete nodes by clicking the bin icon on the right.


Build the Knowledge Graph

The next step is to add Knowledge Graph Intents which can be either:

  • FAQ – to answer user queries
  • Task – to execute a dialog task.

Add FAQs

Using this option, you can add relevant question-answer sets to the nodes in the hierarchy. Note that there is a limit  of FAQs to 50k over 20k nodes to avoid performance issues. As you enter these questions, pay attention to terms that you can further add to your FAQ hierarchy.

To enter the question and answer for a selected node, follow the below steps:

  1. On the left pane of the Knowledge Graph window, click the node to which you want to add questions.
  2. Click Add Intent on the top-right.
  3. On the Intent window, under the Intent section, select FAQ.
  4. Optionally, enter a Display Name. This name will be used for presenting the FAQ to the end-users.
  5. In the Add Question field, enter the question that describes the user’s query.
  6. Optionally, if there are alternatives to the same question, add them in the Add Alternate FAQ field. Repeat the step for all the alternative questions you want to add.
  7. You can use patterns to define the FAQs. This can be done by preceding the pattern with || (two vertical bars) in the alternate question field. The Platform marks these as patterns and evaluates them accordingly (see here for more on patterns).
  8. For each question, you can add terms that will serve as tags in better identifying the question by the Knowledge Graph Engine.
  9. You can set the Intent Status as enabled or disabled for the FAQ intents. The Knowledge Graph will not use the FAQs intents that are in the enabled state. These intents will not participate in the intent recognition process during testing and end-user interaction.
  10. You can also set Term Status as enabled or disabled. The Knowledge Graph will only use the terms that are in the enabled state. The terms marked as disabled and all their FAQ intents do not participate in the intent recognition process during testing and end-user interaction.
  11. You can also add a Reference Id. This field can be used to add a reference to any external content used as a source for this FAQ.

Manage Bot Responses

For the Response, you can compose a simple or complex channel-specific reply.

You can use the editor like any other prompt editor in the Platform i.e. messages for dialog nodes, etc, refer here for more.

You can add channel-specific responses to questions in your Knowledge Graph. By varying the responses, you can make the language and formatting leverage the strengths of the selected channels. To add a channel-specific response, select the channel from the channels list before typing the response.

Note: We recommend you add one response for All Channels so that it can be used in the absence of a channel-specific response for a channel.

 

Sometimes the responses to the FAQ are quite lengthy or may include nice-to-have information along with the primary response. To improve the readability of such responses, you can split information into multiple responses that go as separate messages one after another by clicking Add Extended Response on the top-right of the Bot Response window.

Optionally, there is an option Add Alternate Response if your question can have more than one answer. Repeat the step for all the alternative responses you want to add. At runtime, the platform will pick one response at random.

Run a Task

You can link a dialog task to a Knowledge Graph Intent. It helps you to leverage the capabilities of the Knowledge Graph and dialog tasks to handle FAQs that involve complex conversations.

  1. On the Intent window, under the Intent section, select Task.
  2. Optionally, enter a Display Name. This name will be used for presenting the FAQ to the end-users in case of ambiguity.
  3. Select a task from the drop-down list. You can Add Utterance that triggers this task.
  4. If multiple utterances mean the same, Add Alternate Utterance.
  5. You can also add a Reference Id. This field can be used to add a reference to any external content used as a source for this FAQ.
  6. Click Save.


Add FAQs from an Existing Source

Chances are the Knowledge Graph you are trying to build is large and complex. If you have all the FAQs in one place you can use the Import or Extract process.

  • You can use the Knowledge Graph Generator to generate Knowledge Graph from a FAQ list and import the same to your VA. See here for the steps.
  • You can use the Import option to import a Knowledge Graph exported from another VA. See here for more.
  • You can use an existing list of Q&As from Knowledge Extraction to populate the Questions and Responses. See here for more.

Manage Traits, Synonyms, and Stop Words

You can improve the performance of your Knowledge Graph by adding tags, synonyms, traits, and more. Refer here to know more.

Manage Variable Namespaces

Manage Variable Namespaces section (introduced in v8.0) allows you to associate the Variable Namespaces to use with this Knowledge Graph. This option is visible only when the Variable Namespace is enabled for the VA. For more information, refer to Managing Namespace.


Update a Knowledge Graph

Once created, there will be times when you want to make changes to the Knowledge Graph for better organization and presentation.

Note: Once you make any changes to the Knowledge Graph, make sure to click Train on the top-right to send the updates to the Knowledge Graph engine. If you do not train the VA, the changes are not reflected in its responses.

 

By default, questions added to a child node are visible for all its parent nodes in the path, up to the root node. If you do not want the questions from child nodes to be seen beyond a certain parent node, click the following icon on the Questions pane of the selected parent.

The questions from all its child nodes are visible to the selected parent node and not to all its parent nodes.

Move Question and Answers Between Nodes

You can move one or more question-answer sets between nodes in your Knowledge Graph, as follows.

  1. On the Knowledge Graph, click the name of the node from which you want to move the question-answer sets. The FAQs appear on the right pane.
  2. Identify the set of questions that you want to move to, and select the checkboxes next to them.
  3. Drag the questions and drop them on the relevant node. The node is highlighted and the questions appear on the right pane of the node.

The demo below shows you how this works.

Edit and Delete Terms

  1. On the nodes hierarchy from the left pane, hover over the term/node you want to edit.
  2. Click the Settings (gear) icon. The settings window opens.
  3. You can change the name of the term, set the term types, set the term status, add traits, add or remove synonyms, and manage context from here (see here for more).
  4. To delete a term:
  5. On the nodes hierarchy, hover over the term you want to delete.
  6. Click the bin icon.
  7. On the confirmation dialog box, you can find the following options:
    1. Delete the FAQs along with the term – Choosing this option deletes the term and FAQs under it.
    2. Delete the term and move FAQs to root term
      Choosing this option deletes the term and moves the FAQs under it to the root term.
      Note: If the term has child nodes, all those nodes will be deleted.
  8. If your VA is already published, you must train it  for the deletions to be effective.
    1. If you have deleted the first level term you can selectively train to remove the deleted terms from the published copy.
    2. If you have deleted, say, the nth level child term, then you need to select the entire parent term for training.

Edit Questions and Responses

  1. From the nodes hierarchy, select the relevant term.
  2. Questions associated with the term appear on the right pane.
  3. Hover over the question to edit and click the edit icon.
  4. Make changes to the question or response and click Save.
  5. You can delete the question using the bin icon.
  6. Selecting multiple questions enables you to delete them in bulk.
Menu