Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated testing for DialogFlow [closed]

I have developed a bot using DialogFlow/API.ai.

I am trying to include automated testing to test the conversation that I have developed before moving the code to deployment. Are there any frameworks that Dialogflow/API.ai support which can be used for automated testing?

like image 980
Rahul Kalidindi Avatar asked Nov 23 '17 06:11

Rahul Kalidindi


2 Answers

Dialogflow does not currently support any testing frameworks.

You could use Dialogflow's v1 query API or v2 detectIntent API to query your agent with responses and retrive answers in sequence to test conversational flows:

  • Dialogflow v1 Query API Docs
  • Dialogflow v2 detectIntent API Docs
like image 99
matthewayne Avatar answered Oct 19 '22 18:10

matthewayne


Dialogflow is supported by Botium, the Selenium for Chatbots. It uses the Dialogflow V2 API to send requests and verify responses. The conversation scripts can be maintained in Excel files or plain text files. It is also possible to download and extract your intents, utterances and conversation structure from Dialogflow and generating the test scripts automatically - here is a tutorial

like image 25
Florian Treml Avatar answered Oct 19 '22 19:10

Florian Treml