A utilty that allows a small business owner to create a Watson-powered chatbot to answer questions about their business and publish it to their web page. The chatbot can answer questions about your business's contact details, directions and can even help take bookings.
See a live demo here showing Concierge in action - the concierge chatbot can be found in the bottom right corner of the page.
Install the concierge tool
npm install -g concierge-chatbot
Then simply run the command-line tool with your Watson Conversation API credentials to hand:
and answer the questions as prompted.
At the end of the process, the
concierge-chatbot tool will
It's that simple!
The concierge tool will also prompt you for a Cloudant URL and Cloudant Database name. If they are supplied then the converation will be stored in that database as it happens (don't forget to create the database in the Cloudant dashbaord first). This will allow you to perform analytics on your chats. How many people used it? What questions did they ask? What bookings have I collected today?
As well as the concierge-chatbot command-line tool, you may also use this as a library within your own applications. Simply
npm install --save concierge-chatbot to add it to your project and
require it into your own code:
var concierge = ;
The concierge object then has the following functions
interactive to initiate an command-line session where the user will be prompted for the business data on the command line.
createWorkspace function creates a Watson Conversation configuration given the business data:
var data ="username": "MYWATSONCONVERSATIONUSERNAME""password": "MYWATSONCONVERSATIONPASSWORD""cloudanturl": """cloudantdbname": "concierge""name": "The Pretend Hotel""address": "18 Front Street, London""postcode": "W1A1AA""phone": "01818118181""website": """email": "email@example.com""twitter": "pretendhotel""facebook": """opening": "24 Hours""id": "The_Pretend_Hotel";concierge;
createWhiskActions function creates a public-facing API call to allow your chatbot to be seen by the outside world. It creates
a Node.js OpenWhisk action in your Bluemix account using the
wsk command-line tool and then exposes that code as an API call
that can be used by any web page.
var data ="username": "MYWATSONCONVERSATIONUSERNAME""password": "MYWATSONCONVERSATIONPASSWORD""cloudanturl": """cloudantdbname": "concierge";concierge;
getTemplateHTML function creates a snippet of HTML code to be pasted into your website given
var html = ;console;
To save your typing, the
concierge-chatboot tool stores a copy of the configuration it used in a file at
you want to remove this saved data, simply delete the file.