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
- Open the Bot Ontology.
- On the top right corner of the Bot Ontology, click the icon.
- Click Import Ontology, and then click Proceed.
- On the following screen, 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 the information such as FAQ, Synonyms, Classes, 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 the 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.
- Classes: Represents the class names and their associated utterances.
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.
The following sections provide the remaining details that you must fill for each information type:
Note: Enter the names of all the parent nodes in separate columns until you reach the First-level node in the path.
Unmappedpath refers to nodes for which no question is added.