Import questions and answers from a JSON file
Add hundreds of questions and answers in one go, for example from an existing FAQ or another system.
With a JSON import you create a knowledge base with many questions and answers at once. Use it when you already have a list of questions and answers, for example from a spreadsheet, a helpdesk or another chatbot. For a handful of questions, quick answers are faster.
The file
The file is a list of items. Every item has a question and an answer. A category is optional and helps you find entries back later.
[
{
"question": "What are your opening hours?",
"answer": "We are open Monday to Friday from 9:00 to 18:00.",
"category": "Hours"
},
{
"question": "Do you offer refunds?",
"answer": "Yes, within 30 days of purchase with a receipt.",
"category": "Policy"
}
]
Items without a question or without an answer are skipped. So are items with other field names, such as title and content.
Import the file
Go to AI AgentsToolsKnowledge Base and open the tab JSON.
- Enter a Name for the new knowledge base, for example "Support answers".
- Drag your
.jsonfile into the upload area, or click it to choose the file. - Check the message below the upload area. It shows how many items were skipped because a question or answer is missing.
- Click Import. The button shows how many entries will be imported.
The knowledge base appears in the list straight away. It becomes fully searchable within a few minutes. Then link it to your agents, see Link a knowledge base to your agents.
Make a JSON file from a spreadsheet or document
- From a spreadsheet: make the columns Question, Answer and optionally Category. Save the sheet as CSV and convert it to JSON with a CSV to JSON converter. Note: in the file the field names must be
question,answerandcategory. - From a Word or text document: put your questions and answers in a clear order, then convert them to the format above. An AI assistant can do this for you if you ask it to make a JSON list with a question, an answer and an optional category per item.
Save the result as a text file with the extension .json.
Frequently asked questions
Does an import with many entries count as many knowledge bases?
Can I link the knowledge base before it is fully searchable?
Related articles
Questions and answers in a file
The layout that gives the best answers when you upload a text file, with a template to copy.
Link a knowledge base to your agents
Choose per AI agent which knowledge bases it may use, on the phone, on WhatsApp, in the website chat and in email.
Edit, test or delete a knowledge base
Change the text in a knowledge base, test what your agent finds and remove what you no longer need.
Was this page helpful?