Book Image

Hands-On Chatbots and Conversational UI Development

By : Srini Janarthanam
Book Image

Hands-On Chatbots and Conversational UI Development

By: Srini Janarthanam

Overview of this book

Conversation as an interface is the best way for machines to interact with us using the universally accepted human tool that is language. Chatbots and voice user interfaces are two flavors of conversational UIs. Chatbots are real-time, data-driven answer engines that talk in natural language and are context-aware. Voice user interfaces are driven by voice and can understand and respond to users using speech. This book covers both types of conversational UIs by leveraging APIs from multiple platforms. We'll take a project-based approach to understand how these UIs are built and the best use cases for deploying them. We'll start by building a simple messaging bot from the Facebook Messenger API to understand the basics of bot building. Then we move on to creating a Task model that can perform complex tasks such as ordering and planning events with the newly-acquired-by-Google Dialogflow and Microsoft Bot framework. We then turn to voice-enabled UIs that are capable of interacting with users using speech with Amazon Alexa and Google Home. By the end of the book, you will have created your own line of chatbots and voice UIs for multiple leading platforms.
Table of Contents (11 chapters)

Connecting to Skype

Now that we have a chatbot to search for restaurants, push it back on to Heroku cloud as before. Remember to change the Procfile as we need to run index.js and not app.js. Having set up the chatbot as a web app in Heroku, we are all set to deploy the bot on Skype and other channels. 

  1. Go to your dashboard on Bot Framework at https://dev.botframework.com/bots:
  1. Choose your bot. You will see that your bot is already connected to two channels, Skype and Web Chat:
  1. You will also be able to see the chat client on the right side. If you do not see one, you should be able to open it by pressing the Test button. This is similar to the emulator. So go on and say Hi to the bot:

You should be able to chat with the bot here as it is in the cloud and not on localhost. 

  1. Click Skype:
  1. Click Add to Contacts:
  1. Click Open...