Export intents for a bot

Its possible to export the utterances for all workers in a bot all at once, in a unified format. This is helpful if you are trying to get an understanding of total utterances your bot, which can be unwieldily as the bot grows.

When we refer to utterance, we mean both Lex’s ‘utterance’ as well as Google Dialogflow’s training phrase.

This is supported for the following worker types:

  • Dialogflow
  • Lex
  • Business Intent

To export from ServisBOT intents into a CSV files. The intent export command defaults to ServiceBOT intents.

sb-cli bot intent export --sb --bot <bottname> -o csv -q > filename.csv

To export from an external NLP directly to a csv file, first log into the org you want, then run.

sb-cli bot intent export --remote --bot <bottname> -o csv -q > filename.csv

You will receive two csvs in the following format

utterance.csv

Botname Intent Utterance
botnamevalue workerid intent

actions.csv

Intent value
IntentAlias Value