Skip to content
Export script for IBM Watson Assistant
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
lib
.gitignore
README.md
index.js
package-lock.json
package.json
template.json

README.md

botmock-watson-export

requires node >= 10.15.x

Script to transform a Botmock project into a .json file that's importable as a Watson Assistant skill.

Guide

Setup

  • Clone this repo by running git clone git@github.com:Botmock/botmock-watson-export.git

  • Run npm install

  • Create a .env file with the following variables (and your values filled in):

BOTMOCK_TOKEN=""
BOTMOCK_TEAM_ID=""
BOTMOCK_PROJECT_ID=""
BOTMOCK_BOARD_ID=""
  • Run node index.js -u app (where app can be substituted for other hostnames)

  • Find generated JSON in ./out

The generated .json file should look something like:

{"name": "project","intents": [],"entities": [],"language": "en","metadata": {},"description": "","dialog_nodes": [],"workspace_id": "","counterexamples": [],"learning_opt_out": false,"status": "Non Existent"}

Importing into Watson

  • Visit your IBM dashboard

  • If you have preexisting Services in your Resource summary, choose them

  • Otherwise, Create resource and choose Watson Assistant under 'AI'

  • Find your Assistant service; then Launch tool

  • Choose the 'Skills' tab and Create new

  • Choose Import skill, and choose the previously generated .json file

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.