Search This Blog

Friday, April 14, 2017

How to configure IBM Watson Conversation API ?

 

Quick setup instructions for IBM Watson conversation API, mostly used with Bots and chat app.

 

Copy the quick start sample from here.

https://github.com/watson-developer-cloud/conversation-simple/archive/master.zip

I changed my .env file and added username and password for the conversation service, you need to create the service from blue mix and use those credentials in this file.

 

Also you will need a work space id for conversation service to work.

 

Click on launch tool from the service and it will open the workspace manager, here you need to train your bot for various queries.

Intents should be created and need to be linked with flows and entities.

For our example we will import the car JSON data from

training/car_workspace.json

So it has some default queries answered and for this demonstration we will use this.

 

 

image

 

> npm install

>npm start

 

image

 

image

 

Now you can make your own workspace and train your bot for your queries, later you can plugin this into other apps.

 

Keep Reading !

No comments:

Post a Comment