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?
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 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With