Our powerful API enables you to create integrations with any platform of your choice.
In this tutorial we will talk about how you can use our open-source script to export from Botmock directly into DialogFlow.
First off, you will need to clone the code from: https://github.com/Botmock/botmock-dialogflow-export
Once cloned, go to the folder and you would need to rename "sample.env" to ".env" file.
This file will contain some important information that will help the script extract the correct project from our API and run the export on it. Open the the .env file in your editor of choice.
You will need to setup the following variables:
To get your team ID you will need to visit http://app.botmock.com and login. Once logged in click on the "Teams" dropdown in the top bar and click on "Team Profile".
On the team profile page you will find the team ID in the URL bar:
For Botmock Project ID and Board ID, simply open the project you want to export and click on the "Settings" (cog) icon in the top toolbar. You will see a popup like this:
Under the API Info tab you will find the project id and board id values
Lastly, you will need to generate an API token for your team. This can be done by visiting your dashboard and clicking on your avatar in the top bar. In the dropdown select "Developer API" option.
Under "Create an API token" enter a descriptive name and click on "Assign All Abilities" button. Then click "Create" button. This will generate a token for your. Please make sure you copy and paste the token in a secure place. This token will not be shown again.
Once you have all the information in .env file. Simply run "npm install" to install all dependencies for the export script.
Once completed, simply run: "node index.js" and the script will create an export for your under "Output" directory. You can zip this directory and upload it to DialogFlow.
Reporting a Bug/Feedback
To report a bug with the plugin, please open a new issue on on the Github at https://github.com/Botmock/botmock-dialogflow-export/issues. Try to share as much as you can to help us improve the plugin!