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:
- Log in to the XO Platform and open the VA to which you want to add the Knowledge Graph.
- Select the Build tab from the top menu.
- On the left menu, select Conversation Skills and click Knowledge Graph.
- 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:
- Open the Knowledge Graph.
- On the top left of the Knowledge Graph window, hover over the root node.
- 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.
- 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. - Repeat steps 1 to 3 to create other First-level nodes.
- After you create First-level nodes, create child nodes as follows:
- Hover over any First-level node, and click the plus icon to create its child node.
- You can create a child node for any level node by hovering over it and clicking the + icon.
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 50k FAQs over 20k nodes to avoid performance issues. Learn more about FAQs.
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.
- On the Intent window, under the Intent section, select Task.
- Optionally, enter a Display Name. This name will be used for presenting the FAQ to the end-users in case of ambiguity.
- Select a task from the drop-down list. You can Add Utterance that triggers this task.
- If multiple utterances mean the same, Add Alternate Utterance.
- 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.
- Click Save.
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, intents 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 intents from child nodes to be seen beyond a certain parent node, click the following icon on the Questions pane of the selected parent.
The intents from all its child nodes are visible to the selected parent node and not to all its parent nodes.
Move Intents Between Nodes
You can move one or more Intent and Response sets between nodes in your Knowledge Graph, as follows.
- On the Knowledge Graph, click the name of the node from which you want to move the intent. The intents associated to the node display on the right pane.
- Identify the intent that you want to move, and select the checkbox next to it. You can select multiple items.
- Drag the intent and drop it on the relevant node. The node is highlighted and the intent displays on the right pane of the node.
The demo below shows you how this works.
Edit and Delete Terms
- On the nodes hierarchy from the left pane, hover over the term/node you want to edit.
- Click the Settings (gear) icon. The settings window opens.
- 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).
- To delete a term:
- On the nodes hierarchy, hover over the term you want to delete.
- Click the bin icon.
- On the confirmation dialog box, you can find the following options:
- Delete the FAQs along with the term – Choosing this option deletes the term and FAQs under it.
- 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.
- If your VA is already published, you must train it for the deletions to be effective.
Edit Intents and Responses
- From the nodes hierarchy, select the relevant term.
- Intents associated with the term appear on the right pane.
- Hover over the intent or response to edit it and click the edit icon.
- Make changes to the intent or response and click Save.
- You can delete the intent using the bin icon.
- Selecting multiple intents lets you delete them in bulk.