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)

Developing WeatherBot Using Dialogs and LUIS

In previous chapters, we have gone through some of the concepts involved in developing and publishing bot applications. In this chapter, we will develop a bot called WeatherBot, show you how to use LUIS in dialogs and how to use third-party APIs from a bot. This involves some additional coding efforts to develop the weather bot. We will build a weather bot that is able to understand and respond to various commands, such as What's the weather like in New York?, Get Weather in Seattle, and so on. The bot will use LUIS to identify the intent of the user and reply with the appropriate message.

Before jumping into writing code, we need to configure LUIS for WeatherBot. Here, we will go through the steps on how the user gets weather data for a given location when requested by the user. We will see how LUIS can help us make the conversation between the user and your bot...