Monday, April 13, 2020

Build a basic chatbot using Watson Assistant in IBM Cloud

Watson Assistant helps in creating chatbots, it automates customer interactions on any channel or device. Watson Assistant understand the intents of what user is saying, it can identify that user mentions and manage the flow of conversation.
You don’t have to be a programmer to use Watson Assistant this tool is built keeping in mind for business users. Proceed with the following steps which helps in building a basic chatbot using Watson Assistant

Step 1 – Login into IBM Cloud and go to Catalog tab




Step 2 – Go to AI category and click on Watson Assistant service





Step 3 – Scroll down and edit service name (not mandatory) to your own and click on Create




Step 4 – Click on Launch Watson Assistant to launch the Dashboard of Watson Assistant service





Step 5 – Click on <- on top and click on Create assistant to create our own assistant with some name. 




Step 6 – Click on Add dialog skill to design your conversation flow




Step 7 – Click on create skill, name your skill and click on create dialog skill




Step 8 – Click anywhere in the First skill window you will move to create intent page




Step 9 – Click on create intent to add user input examples




Step 10 – Give name as Greetings to your intent and click on create intent 





Step 11 – Add a user example and click on Add example




Step 12 – You can add multiple examples to your intent.




Step 13 – I have created total 6 user examples which you can see below. Now click on left arrow button (go back)




Step 14 – Now click on Dialog button to build conversation




Step 15 - Welcome and Anything else nodes are the inbuilt nodes which have their own functionality. Welcome node is executed during the start of the conversation, and Anything Else node is executed when user question is irrelevant





Step 16 - Click on Add node and give a name to the node and Type #Greetings in the Enter a condition field of this node. Then select the #Greetings option




Step 17 – Add sample response and Click X to close the edit view







Step 18 – Test the dialog. Click the  Try it icon to open the "Try it out" pane. The welcome message in the welcome node is displayed.




Step 19 – Enter sample input to test your chatbot





Step 20 – You can see response given by bot below




We are done building a very basic Chatbot. In the next blog we will build Chatbot for restaurant stay tuned for that.

Thanks
Yuktesh Chintamadaka



No comments:

Post a Comment