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
Bot Builder
Creating a Bot
Design
Develop
Dialog Task
Working with User Intent & Dialog Node
Working with Entity Node
Supported Entity Types
Working with Composite Entities
Supported Time Zones
Supported Colors
Supported Company Names
Working with Message & Confirmation Nodes
Working with Service Node
Implementing Custom Authentication
Enabling 2-way SSL for Service nodes
Working with Script Node
Working with Agent Transfer Node
Working with WebHook Node
Defining Connections & Transitions
Managing Dialogs
Prompt Editor
Context Object
Session and Context Variables
Action & Information Task
Working with Action Tasks
Working with Information Tasks
Establishing Flows
Alert Tasks
Working with Alert Tasks
Managing Ignore Words and Field Memory
Knowledge Tasks
Building Knowledge Graph
Importing and Exporting Bot Ontology
Knowledge Extraction
Natural Language
Overview
Machine Learning
ML Model
Fundamental Meaning
Knowledge Graph Training
Traits
Ranking and Resolver
NLP Detection
NLP Settings and Guidelines
Bot Intelligence
Dialog Management
Context Management
Amend Entity
Multi-Intent Detection
Default Conversations
Channel Enablement
Test & Debug
Talking to Bot
Utterance Testing
Batch Testing
Recording Conversations
Publishing your Bot
Analyzing your Bot
Overview
Dashboard
Conversation Flows
Bot Metrics
Advanced Topics
Bot Authorization
Language Management
Collaborative Development
IVR Integration
Universal Bots
Defining
Creating
Customizing
Enabling Languages
Smart Bots
Defining
Sample Bots
Github
Asana
Travel Planning
Flight Search
Event Based Bot Actions
Sentiment Analysis
Tone Analysis
Sentiment Management
Bot Settings
Bot Functions
General Settings
PII Settings
Customizing Error Messages
Bot Management
API Guide
API Overview
API List
SDKs
SDK Overview
SDK Configuration
SDK Security
SDK App Registration
Kore.ai Web SDK Tutorial
Message Formatting and Templates
Mobile SDK Push Notification
Using the BotKit SDK
Installing the BotKit SDK
Events for the BotKit SDK
Functions for the BotKit SDK
BotKit SDK Tutorial – Agent Transfer
BotKit SDK Tutorial – Flight Search Sample Bot
Using an External NLP Engine
Web Socket Connect & RTM
Bot Administration
Bots Admin Console
User Management
Managing Your Users
Managing Your Groups
Role Management
Bots Management
Enrollment
Inviting Users
Sending Bulk Invites to Enroll Users
Importing Users and User Data
Synchronizing Users from Active Directory
Security & Compliance
Overview
Using Single Sign-On
Cloud Connector
Billing
Bot Store
Overview
Creating a Kore.ai Bot Account
Adding a Kore.ai Bot
Choosing a Channel for a Bot
Interacting with a Kore.ai Bot
Setting Up Web Service Alerts
Setting Up RSS Alerts
Setting Up the Kore.ai Webhook Bot
Custom Kore.ai Bots
Bots for your Customers FAQs
Bots for your Workforce FAQs
Adding Bots
Contacting Kore.ai Support
Setting Up Filters
Bot Store Settings
  1. Home
  2. Docs
  3. Bots
  4. Bot Building
  5. Knowledge Task
  6. Importing and Exporting Bot Ontology

Importing and Exporting Bot Ontology

After you build a Bot Ontology in a CSV or JSON file, upload it to the bot to create your Knowledge Graph. Similarly, you can export existing Bot Ontology to CSV or JSON. Exporting an ontology helps you edit it in a spreadsheet.

Creating Bot Ontology in a Spreadsheet

You can create the bot ontology using a sample spreadsheet that can be downloaded from the bot. If you anticipate frequent changes to the Knowledge Graph, we recommend you to create it in a spreadsheet as they make it easier to make bulk updates compared to the application UI.

Follow the instructions below to build your bot ontology in a spreadsheet.

Downloading the Sample CSV file

  1. Open the Knowledge Graph.
  2. Click Import from the left section.
  3. You will be prompted to backup the Knowledge Collection before proceeding. Choose the CSV or JSON format for the backup.
  4. After backup, click Proceed.
  5. On the next dialog, click Sample CSV. The CSV file is downloaded to your local computer.

Building the Bot Ontology in a CSV

The details that you need to enter in each row of the CSV file differ based on the type of information such as FAQ, Synonyms, Traits, and more. For example, the details you need to enter for an FAQ (Question, Answer, Nodes, Alternate Questions) differ from the details you need to enter for Synonyms (Term, Synonyms).

The bot interprets the data present in each row of the CSV file, depending on the information type specified in Column # 1 of the row. Below are the valid entries for Column#1 of the CSV file, which represent the different information types:

  • Primary: Represents a primary question in the Knowlege Graph.
  • Alternate: Represents an alternative question for a primary question.
  • Unmappedpath: Represents nodes with no questions associated with it.
  • Synonyms: Represents global synonyms for terms.
  • Traits: Represents the trait names and their associated utterances.

Important notes
You cannot import or export the following bot elements using a CSV or spreadsheet

  • Alternative Responses: While the spreadsheet support entering alternative questions for an FAQ, you cannot enter alternative responses in the spreadsheet and import them into the bot.
  • Split Responses: You cannot enter or import FAQ responses that are split into multiple consecutive messages.
  • Advanced Responses: The CSV import doesn’t support responses written in the advanced mode using JavaScript.

The following sections provide the remaining details that you must fill for each information type:

FAQ

Primary Question



Note
: Enter the names of all the parent nodes in separate columns until you reach the First-level node in the path.

Alternate Questions

Note: You need to enter each alternative question in a separate row below the primary question.

 

Unmappedpath

Unmappedpath refers to nodes for which no question is added.

Note: Enter the names of all parent nodes in the hierarchy up to the First-level node. Do not enter the name of the root node as it creates a duplicate node below the root node.

Global Synonyms

Note: Enter each synonym in a separate column.

 

Path Synonyms

Traits

Note: Enter each utterance in a separate column.

Creating Bot Ontology in JSON

Kore.ai allows you to create the Bot Ontology in JSON and upload it to the Knowledge Graph. You can download a sample JSON from the bot to understand its structure.

Follow the instructions below to build your Bot Ontology using JSON:

Downloading the JSON sample

  1. Open the Knowledge Graph.
  2. Click Import from the left section.
  3. You will be prompted to backup the Knowledge Collection before proceeding. Choose the CSV or JSON format for the backup.
  4. After backup, click Proceed.
  5. On the next dialog, click Sample JSON. The JSON file is downloaded to your local computer.

JSON Reference

Property Name Type Description
FAQ Array Consists of the following:

  • Question
  • Answer
  • Leaf and parent terms up to the First-level node in the path
  • Alternative question
Question String Primary question; included in the FAQ array.
Answer String Bot response; included in the FAQ array.
Terms Array Includes the leaf node to which the question is added, and its parents up to the First-level node.
Alternate Questions Array Consists of alternative question and terms. Include terms from leaf to the First-level node.
Synonyms Object Consists arrays of terms and their synonyms.
Unmappedpath Array Consists arrays of nodes that do not have any questions, and all their parents up to the First-level node.
Traits Object Consists of trait names as keys and array of the utterances as values.
Menu