Chatbot Overview
Conversational Bots
Intents & Entities
Intelligent Bots
Kore.ai's Approach
Kore.ai Conversational Platform
Bot Concepts and Terminology
Natural Language Processing (NLP)
Bot Types
Bot Tasks
Starting with Kore.ai Platform
How to Access Bot Builder
Working with Kore.ai Bot Builder
Building your first Bot
Getting Started with Building Bots
Using the Dialog Builder Tool
Creating a Simple Bot
Release Notes
Latest Updates
Older Releases
Deprecations
Bot Builder
Creating a Bot
Design
Develop
Storyboard
Dialog Task
User Intent Node
Dialog Node
Entity Node
Supported Entity Types
Composite Entities
Supported Time Zones
Supported Colors
Supported Company Names
Form Node
Logic Node
Message Nodes
Confirmation Nodes
Service Node
Custom Authentication
2-way SSL for Service nodes
Script Node
Agent Transfer Node
WebHook Node
Grouping Nodes
Connections & Transitions
Managing Dialogs
Prompt Editor
Alert Tasks
Alert Tasks
Ignore Words and Field Memory
Digital Forms
Digital Views
Knowledge Graph
Terminology
Building
Generation
Importing and Exporting
Analysis
Knowledge Extraction
Small Talk
Action & Information Task
Action Tasks
Information Tasks
Establishing Flows
Natural Language
Overview
Machine Learning
ML Model
Fundamental Meaning
NLP Settings and Guidelines
Knowledge Graph Training
Traits
Ranking and Resolver
NLP Detection
Advanced NLP Configurations
Bot Intelligence
Overview
Context Management
Session and Context Variables
Context Object
Dialog Management
Sub-Intents
Amend Entity
Multi-Intent Detection
Sentiment Management
Tone Analysis
Sentiment Management
Default Conversations
Default Standard Responses
Channel Enablement
Test & Debug
Talk to Bot
Utterance Testing
Batch Testing
Record Conversations
Publishing your Bot
Analyzing your Bot
Overview
Dashboard
Custom Dashboard
Conversation Flows
Bot Metrics
Advanced Topics
Bot Authorization
Language Management
Collaborative Development
IVR Integration
Data Table
Universal Bots
Defining
Creating
Training
Customizing
Enabling Languages
Smart Bots
Defining
Sample Bots
Github
Asana
Travel Planning
Flight Search
Event Based Bot Actions
koreUtil Libraries
Bot Settings
Bot Functions
General Settings
PII Settings
Customizing Error Messages
Bot Management
Bot Versioning
Using Bot Variables
API Guide
API Overview
API List
API Collection
SDKs
SDK Overview
SDK Security
SDK App Registration
Web SDK Tutorial
Message Formatting and Templates
Mobile SDK Push Notification
Widget SDK Tutorial
Widget SDK – Message Formatting and Templates
Web Socket Connect & RTM
Using the BotKit SDK
Installing
Configuring
Events
Functions
BotKit SDK Tutorial – Agent Transfer
BotKit SDK Tutorial – Flight Search Sample Bot
Using an External NLP Engine
Bot Administration
Bots Admin Console
Dashboard
User Management
Managing Users
Managing Groups
Managing Role
Bots Management
Enrollment
Inviting Users
Bulk Invites
Importing Users
Synchronizing Users from AD
Security & Compliance
Using Single Sign-On
Security Settings
Cloud Connector
Analytics
Billing
How Tos
Creating a Simple Bot
Creating a Banking Bot
Transfer Funds Task
Update Balance Task
Context Switching
Using Traits
Schedule a Smart Alert
Configure Digital Forms
Add Form Data into Data Tables
Configuring Digital Views
Add Data to Data Tables
Update Data in Data Tables
Custom Dashboard
Custom Tags to filter Bot Metrics
Patterns for Intents & Entities
Build Knowledge Graph
Global Variables
Content Variables
Using Bot Functions
Configure Agent Transfer
  1. Home
  2. Docs
  3. Bots
  4. Bot Building
  5. Knowledge Graph
  6. Knowledge Graph

Knowledge Graph

Kore.ai 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, 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.

Creating

To generate a Knowledge Graph, you need to add a FAQs to an existing or new Bot. If you have not already created a bot, refer to Creating a new Bot.

Creating a Knowledge Graph involves the following steps:

Step 1: Add Knowledge Graph to Bot

To open the Knowledge Graph builder:

  1. Log in to Kore.ai Bot Builder and open the bot to which you want to add the Knowledge Graph.
  2. From the left navigation menu, select Bot Task and, click the Knowledge Graph tab and then click the Knowledge Graph – <Bot Name>.

Step 2: Create the Graph

By default, the name of the bot 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:

  1. On the top left side of your Knowledge Graph window, hover the mouse over the root node.
  2. Click the plus icon. A box appears below to Add Node. For better performance, there is an restriction on the allowed maximum number of nodes of 20k.
  3. Type the name of the node in the box and press enter.
    Note: This node becomes a child for the root node and can be referred to as a First level node.
  4. Repeat steps 1 to 3 to create other First-level nodes.
  5. After you create First-level nodes, create child nodes as follows:
    • Hover your mouse over any First-level node, and click the plus icon to create its child node.
    • You can create a child node for any level nodes by hovering the mouse over it and clicking the plus icon.

Step 3: Building Knowledge Graph

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

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

Adding FAQs

Using this option you can add relevant question-answer sets to the nodes in the hierarchy. Restrict the number 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:

  1. From the left section of your Knowledge Graph window, click the node to which you want to add questions.
  2. On the top right side of the Knowledge Graph, click Add Intent.
  3. Set the Intent to FAQ.
  4. In the Add question box, enter the question that describes the user’s query.
  5. Optionally, if there are alternatives to the same question, add the same in the Add alternate question field. Repeat the step for all the alternative questions you want to add.
  6. Post release 7.2, you can use patterns to define the FAQs. This can be done by preceeding the pattern with || (two vertical bars) in the alternate question field. The platform will mark these as patterns and evaluate it accordingly (see here for more on patterns).
  7. For each question, you can add terms which will serve as tags in better identifying the question by the Knowledge Graph Engine.

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 like messages for dialog nodes etc., refer here to know how.

You can add channel-specific responses to questions in your Knowledge Graph. By varying the responses, you can make the language and formatting to 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 to 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 FAQ can be 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 corner of the Send Message box.

Optionally, if there is an alternative response, click the Add Alternate Response to add the same. 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 KG Intent. It helps you to leverage the capabilities of the Knowledge Graph and Dialog tasks to handle FAQs that involve complex conversations.

Select Task as Intent and select a task from the drop-down list. You can Add utterance that will trigger this task. If there are multiple utterances that can mean the same, Add alternate utterance.

Building FAQs from an existing source

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

  • You can use Kore.ai Knowledge Graph Generator to generate Knowledge Graph from a FAQ list and import the same to your Bot. See here for the steps.
  • You can use the Import option to import a Knowledge Graph exported from another Bot. 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.

Step 4: 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.

Step 5: Manage Variable Namespaces

Manage Variable Namespaces section (introduced in ver8.0) allows you to associate the Variable Namespaces to be used with this Knowledge Graph. This option will be visible only when the Variable Namespace is enabled for the bot. For more information, see Managing Namespace.

Updating

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

Note: After you make any changes to the Knowledge Graph, make sure to click the Train button to send the updates to the Knowledge Graph engine. If you do not train the bot, the changes are not reflected in the Bot 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 panel of the selected parent.

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

Moving Question and Answers Between Nodes

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

To move question and answers to the relevant nodes, follow these steps:

  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-hand panel.
  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-hand panel of the node.

Editing and Deleting Terms

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

Editing Questions and Responses

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