Few-Shot KGs support all features below except: Default terms, ontology-based path qualification, Lemmatization using Parts of Speech, Search in Answer, and Contextual Paths Qualification. Path-Level and KG Synonyms are supported only for Mandatory Terms and Tags. In Few-Shot mode, all synonyms are treated at a global level.
Open the Knowledge Graph Builder
- Log in to the XO Platform and open your AI Agent.
- Go to Automation AI > Knowledge AI > FAQs.
Create Node Structure
The AI Agent’s name becomes the root node by default (editable). Add a node:- Go to Automation AI > Knowledge AI > FAQs > Manage KG.
- Hover over the root node and click +.
- Type the node name and press Enter. (Duplicate child node names under the same parent are not allowed.)
- Repeat to create additional first-level nodes.
- To create child nodes: hover over any node and click +.
Build the Knowledge Graph
Add FAQs
Add question-answer sets to nodes. See Manage FAQs for full details. Limit: 50,000 FAQs across 20,000 nodes.Link a Dialog Task
Use when an FAQ requires a multi-turn conversation.- Go to Automation AI > Knowledge AI > FAQs > Manage KG > Add Intent and select Task.
- (Optional) Enter a Display Name shown to users in ambiguity scenarios.
- Select a task from the drop-down. Add the utterance that triggers it.
- Add alternate utterances if needed.
- (Optional) Add a Reference ID linking to an external source.
- Click Save.
Manage Traits, Synonyms, and Stop Words
Add tags, synonyms, traits, and stop words to improve KG performance. See Knowledge Graph Training.Manage Variable Namespaces
Associate Variable Namespaces with this KG under Manage Variable Namespaces (visible only when namespaces are enabled). See Managing Namespace.Update the Knowledge Graph
After any change, click Train (top-right) to send updates to the KG engine. Untrained changes do not affect responses.
- Select the parent node and click the exclude-child-terms icon on the Questions pane. Intents from child nodes become visible only to that parent, not its ancestors.
Move Intents Between Nodes
- Click the source node. Intents appear in the right pane.
- Check the intents to move (supports multi-select).
- Drag and drop onto the target node.
Edit and Delete Terms
- Hover over the node and click the gear icon.
- Edit the name, term type, status, traits, synonyms, or context.
- Hover over the node and click Delete.
- Choose one of:
- Delete FAQs along with the term — removes the term and all its FAQs.
- Delete term and move FAQs to root — removes the term but moves FAQs to root.
- If the AI Agent is published, train after deletion for changes to take effect.
- Deleting a first-level term: use selective training to remove it from the published copy.
- Deleting an nth-level child: select the entire parent term for training.
Edit Intents and Responses
- Select the node. Intents appear in the right pane.
- Hover over the intent or response and click Edit.
- Make changes and click Save.
- To delete: click the Delete icon. Select multiple intents for bulk deletion.
Improve Performance
- Define terms, synonyms, primary and alternate questions.
- Configure KG parameters:
| Parameter | Description |
|---|---|
| Path Coverage | (Ontology only) Minimum % of user utterance terms that must match a path to qualify it. |
| Definite Score for KG | Minimum score to treat a KG intent as a definitive match, discarding other matches. |
| Min/Definitive Level for Knowledge Tasks | Thresholds for identifying and responding to knowledge tasks. |
| KG Suggestions Count | Max FAQ suggestions shown when no definite match is found. |
| Proximity of Suggested Matches | Max score difference between top and next suggestions to treat them equally. |
| Qualify Contextual Paths | Populates and retains context with terms from the matched intent for improved UX. |
- Use Traits to qualify nodes even when the utterance doesn’t contain the term, and to filter the suggested intent list.