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 Microsoft's Luis.ai Service.
- Node JS version 12.x
#determine nodejs version
First off, you will need to clone the code from: https://github.com/Botmock/botmock-botframework-export
Once cloned, Clone this repository and install dependencies:
git clone email@example.com:Botmock/botmock-botframework-export.git
Next, go to the folder and you create a file called
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 Botmock 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 start to run the export script.
Importing into Luis.ai
Once your JSON export is ready and in the proper directory, you can move to the LUIS AI dashboard to create a new app and import the data.
To do this, you have to do a few simple steps within Luis.ai:
- Start by logging into your Luis.ai account/dashboard.
- At the top, you should see a menu for "My apps". Click into that tab.
- Within this tab, you will click the "Import new app" button
- If you click on the "Import new app" button, you should be prompted to upload the JSON file and give your own name to the app.
- Once you have created your new app, you can go into the application and view all of your imported data in the "BUILD" tab in the top right.
Note: Every time you would like to upload a JSON file, you will need to do it by importing/creating a new app.
Expected JSON Output
If you setup everything correctly within your .env file, this is the Luis-friendly output that you should have in your JSON file that generates in whichever directory you told it to go to.
Here, you can see all your intents and variables from your Botmock Projects listed.
It should be noted that within Luis.ai, Intents are properly equal to what intents are in Botmock, but entities are, instead, what you would call "variables" within Botmock.
"name": "Example Project",
"text": "not ever",
"text": "yes, action",
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-botframework-export/issues. Try to share as much as you can to help us improve the plugin!