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)

Intents and Entities

When a user enters a sentence, LUIS will interpret it and parse out the Intent and Entities. An Intent is an action the user wants to perform, and Entities are the subjects for the Intent. For example, if someone asks, Hi, what is the current weather in Seattle?, the Intent could be knowing weather and the entity is Seattle. Based on the complexity and requirement, you can define multiple Intents in LUIS and perform respective actions. Now, let's create an app for your WeatherBot:

  1. Click on New App:
  1. On the New App dropdown, select New Application:
  1. On the Add a new application popup, enter the application name, the application usage scenario as Bot, and select the category as Weather:
  1. Finally, click on the Add App button:
  1. After the successful creation of the app, open it and click on the + icon of the Intents section from the left-hand side menu:
  1. Enter the name for your Intent...