Import/export

With Botfuel Trainer, you can export and import intents and QnAs as Excel (XSLX) files.

Import

To import intents/QnAs, go to the listing page, click on the three dots menu at the top right corner then on Import. A popup window where you can upload your XLSX file will appear. Your import file has to follow a specific format. Duplicate training phrases/questions across intents/QnAs are not allowed. You cannot append training phrases/questions to an existing intent/QnA by importing, you can only create new intents/QnAs.

Importing QnAs

Export

To export intents/QnAs, go to the listing page and select the items you want to export, or use the checkbox in the table header if you want to export everything, then click on Export in the top bar. The XLSX file will then be downloaded in your browser.

Exporting QnAs

Format

Intents

Here is an example of a file containing two intents, greetings and weather:

label greetings
description This is a greeting to say hello.
user prompt Did you mean hello?
phrases Hello
Hi
Greetings
 
label weather
description
user prompt
phrases What is the weather today?

The file consists of two columns. The first column contains the field description and the second the values. For intents, the possible fields are:

  • label
  • description
  • user prompt
  • phrases

The following fields can be left empty or completely omitted: description, user prompt and phrases, like in the Trainer UI. The phrases label should only be present for the first phrase. Each intent should be separated with an empty line.

Download a sample file here.

QnAs

Here is an example of a file containing two QnAs, Name and Website:

title Name
answer My name is Bob.
user prompt Did you mean what’s my name?
questions What is your name?
How should I call you?
 
title Website
answer
user prompt
questions Do you have a website?

The file consists of two columns. The first column contains the fields descriptions and the second the values. For intents, the possible labels are:

  • title
  • answer
  • user prompt
  • questions

The following fields can be left empty or completely omitted: answer, user prompt and questions, like in the Trainer UI. The questions label should only be present for the first question. Each QnA should be separated with an empty line.

Download a sample file here.