Book Image

Building Bots with Microsoft Bot Framework

By : Kishore Gaddam
Book Image

Building Bots with Microsoft Bot Framework

By: Kishore Gaddam

Overview of this book

Bots help users to use the language as a UI and interact with the applications from any platform. This book teaches you how to develop real-world bots using Microsoft Bot Framework. The book starts with setting up the Microsoft Bot Framework development environment and emulator, and moves on to building the first bot using Connector and Builder SDK. Explore how to register, connect, test, and publish your bot to the Slack, Skype, and Facebook Messenger platforms. Throughout this book, you will build different types of bots from simple to complex, such as a weather bot, a natural speech and intent processing bot, an Interactive Voice Response (IVR) bot for a bank, a facial expression recognition bot, and more from scratch. These bots were designed and developed to teach you concepts such as text detection, implementing LUIS dialogs, Cortana Intelligence Services, third-party authentication, Rich Text format, Bot State Service, and microServices so you can practice working with the standard development tools such as Visual Studio, Bot Emulator, and Azure.
Table of Contents (10 chapters)

Training your bot using utterances

Now you have to train your app using utterances to get the appropriate results from LUIS. An utterance is nothing but the sentence typed/asked by the user of your bot, such as What is the current weather in Ashburn, Virginia?. You have to enter as many utterances as possible with your bot.

Some examples of utterances include the following:

  • What is the current weather in Ashburn, Virginia?
  • Get weather in Boston
  • Get weather in Miami

To train your app, you have to add different types of utterances in LUIS. Let's perform the following steps to add new utterances:

  1. Select the New utterances section and then add the new utterance in the textbox:
  1. After entering the utterance, press Enter. LUIS will automatically highlight the geography in your text, as shown in the following screenshot:
  1. Before clicking on Submit, make sure that the sentence is identified correctly and if...