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
Storyboard
Dialog Task
User Intent Node
Dialog Node
Entity Node
Supported Entity Types
Composite Entities
Supported Time Zones
Supported Colors
Supported Company Names
Message Nodes
Confirmation Nodes
Service Node
Custom Authentication
2-way SSL for Service nodes
Script Node
Agent Transfer Node
WebHook Node
Connections & Transitions
Managing Dialogs
Prompt Editor
Alert Tasks
Alert Tasks
Ignore Words and Field Memory
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
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
koreUtil Libraries
Universal Bots
Defining
Creating
Customizing
Enabling Languages
Smart Bots
Defining
Sample Bots
Github
Asana
Travel Planning
Flight Search
Event Based Bot Actions
Bot Settings
Bot Functions
General Settings
PII Settings
Customizing Error Messages
Bot Management
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
Configuring Digital Views
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. How Tos
  5. How to extract FAQs into Knowledge Graph

How to extract FAQs into Knowledge Graph

This is document details steps in building Knowledge Graph for a Banking Bot by extracting FAQs from two sources – a PDF file and a website URL.

This page gives a step-by-step instruction for Knowledge Extraction, to build a Knowledge Graph from scratch, refer to this document.

Problem Statement

  • The company has FAQs compiled on two formats – a PDF file and a website.
  • These need to be incorporated into the Banking Bot, so users can refer in case of need.
  • Knowledge Extraction process enables one to extract FAQs from multiple sources and add the same into the bot.

For details on what Knowledge Extraction process, refer here.

Prerequisites:

  • You must have signed up with the Kore.ai Bots Platform
  • You must be aware of the basics of Bot building (refer to this link)
  • You must have created a simple bot (refer here for an example)
  • You must have basic knowledge about Kore.ai’s Knowledge Graph (refer here)
  • You must have access to a PDF file with question and answers.
  • You must have access to a website URL with question and answers.

Step 1: Knowledge Graph

Using Knowledge Graph, bots can provide answers to your user questions by querying a predefined set of FAQs. Knowledge Extraction service can be used to quickly pull FAQs from web pages and documents.

  • Open the Bot to which the Knowledge Graph needs to be build, here we are using Banking Bot.
  • From Bot Tasks section, click Knowledge Graph to access the same.
  • In the Knowledge Graph displayed, you can find under the Extracts section two options Extract from file and Extract from URL.
  • We will be using both the options for this use case.

Step 2: Extract FAQs

Using Extract from file option you can pull FAQs from a document.

  • Click Extract from file option.
  • Drag and drop or Browse and select the file you want to Extract from, enter a Name, and click Proceed.
  • Repeat the steps for Extract from URL option.
  • As you can see from the Extracts section there are two extracts with the questions to be reviewed and added to the Knowledge Graph.

Step 3: Add FAQs

Before adding the questions to the Knowledge Graph, let us create two appropriate nodes to add questions to. Since our FAQs are related to Internet Banking and ATM Usage we created two such nodes:

 

There are two ways to add questions, we will look at each one of them here

  • From the Extracts page, click on the Review & Add link against the extract you want to add from, here we are selecting the ATM Usage extract.
    • This will open the FAQ list along with the Knowledge Graph ontology.
    • Select the questions you want to add.
    • Drag and drop into the corresponding node.
    • Notice the question count updated – Added vs Not added.

  • Return to the Bot Tasks page.
  • Click on the Knowledge Graph to open the page.
    • Select the node to which you want to add the questions and click the Add from extraction link.
    • Select the Extract from which you want to add the questions, Internet Banking in this example.
    • Select the questions you want to add and click Add
    • Close the questions page and return to the Knowledge Graph page.
  • Now when you select the Knowledge Graph, you can see the added question in their respective paths.
Menu