How to save your Botmock designed conversations as test sets in Botium

Christoph Börner
2 min readDec 9, 2020

Botmock is a conversation design platform that allows you to build up, visualize and to map out your conversation flow before you deploy it to a chatbot engine. You can use Dialogflow, Rasa or IBM Watson, it makes no difference as Botium supports all chatbot engines integrated with Botmock.

In the next scenario we connect Botmock Stack with Botium Stack using the Botium Botmock Exporter.

  1. The first logical step is to design your conversation flow in Botmock
  2. After your conversation is ready you have to deploy your script to a chatbot engine like Google Dialogflow using the Botmock Exporter (the Dialogflow Botmock Exporter in this case)
  3. Export test cases from Botmock to Botium using Botium Botmock Exporter
  4. Run the tests in Botium

Using the Botium Botmock Exporter is very similar to using any other Botmock Exporter, so if you are familiar with the steps there, you’ll be ready in a jiffy:

  1. First off, you need to copy the code from our Github repository
  2. Once cloned, rename your “sample.env” to “.env” file and fill it in (you can copy the .env file from the exporter you’ve used when deploying your chatbot)
  3. Execute “npm install”
  4. Execute “npm start” to start exporting
  5. In the output directory you’ll find the Botium compatible test cases (test conversation) of your script
  6. Zip the files and create test sets using Botium Box

One of the best features of Botmock is that you can build a single chatbot and deploy it to more chatbot engines. This freedom is also fragile, because we can reach very different results depending on the chosen chatbot engine. By adding Botium to your CI/CD pipeline you can check how the implemented changes in Botmock are displayed by different chatbot providers.