You can add a Knowledge Graph to an existing or new Bot. So, if you haven’t 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:
- Log in to Kore.ai Bot Builder and open the bot to which you want to add the Knowledge Graph.
- On the Bot main menu, click Knowledge Collection tab and then click Create on the right-hand screen.
Step 2: Create the Ontology
By default, the name of the bot becomes the root node of the ontology and you can edit this. Create the rest of the nodes below the root node as follows:
- On the top left side of your Bot Ontology window, hover the mouse over the root node.
- Click the plus icon. A box appears below to add a node.
- Type the name of the node in the box and press enter.
add-questionNote: This node becomes a child for the root node and can be referred to as a First level node.
- Repeat steps 1 to 3 to create other First-level nodes.
- After you create First-level nodes, create child nodes as follows:
- Hover your mouse over any First-level node, and click the 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 icon.
Step 3: Add Question and Answers
The next step is to add relevant question-answer sets to the nodes in the ontology. As you enter these questions, pay attention to terms that you can further add to your ontology.
To enter the question and answer for a selected node:
- On the top left side of your Bot Ontology window, click the node to which you want to add questions.
- On the top right side of the Bot Ontology, click Add Q&A.
- In the User Says box, enter the question that describes the user’s query.
- Optionally, if there are alternatives to the same question, click the plus icon to add the other question. Repeat the step for all the alternative questions you want to add.
Note: 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 not be visible to the selected parent node and all its parent nodes.
For the Response, you can either invoke a bot task as the response or compose a simple or channel-specific reply.
Use this option to compose a simple text reply or advanced channel-specific messages.
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 as shown below.
Run a Task
You can link a Dialog task as a response to an FAQ. It helps you to leverage the capabilities of the Knowledge Graph and Dialog tasks to handle FAQs that involve complex conversations.
Click the button and select a task from the drop-down list to add it as a response to the question.
You can improve the performance of your Knowledge Task by adding tags, synonyms, classes and more. Refer here to know more.