Building Bots with Microsoft Bot Framework
eBook - ePub

Building Bots with Microsoft Bot Framework

Kishore Gaddam

  1. 424 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Building Bots with Microsoft Bot Framework

Kishore Gaddam

Book details
Book preview
Table of contents
Citations

About This Book

Build intelligent and smart conversational interfaces using Microsoft Bot FrameworkAbout This Book• Develop various real-world intelligent bots from scratch using Microsoft Bot Framework• Integrate your bots with most popular conversation platforms such as Skype, Slack, and Facebook Messenger• Flaunt your bot building skills in your organization by thoroughly understanding and implementing the bot development concepts such as messages (rich text and pictures), dialogs, and third-party authentication and callingWho This Book Is ForThis book is for developers who are keen on building powerful services with great and interactive bot interface. Experience with C# is needed.What You Will Learn• Set up a development environment and install all the required software to get started programming a bot• Publish a bot to Slack, Skype, and the Facebook Messenger platform• Develop a fully functional weather bot that communicates the current weather in a given city• Help your bot identify the intent of a text with the help of LUIS in order to make decisions• Integrate an API into your bot development• Build an IVR solution• Explore the concept of MicroServices and see how MicroServices can be used in bot development• Develop an IoT project, deploy it, and connect it to a botIn DetailBots 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.Style and approachThis step-by-step guide takes a learn-while-doing approach, delivering the practical knowledge and experience you need to design and build real-world Bots. The concepts come to you on an as-needed basis while developing a bot so you increase your programming knowledge and experience at the same time.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Building Bots with Microsoft Bot Framework an online PDF/ePUB?
Yes, you can access Building Bots with Microsoft Bot Framework by Kishore Gaddam in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Sistemas operativos. We have over one million books available in our catalogue for you to explore.

Information

Year
2017
ISBN
9781786469649

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 in more natural language, similar to how we interact with humans.
The WeatherBot will have intelligence, which will help users to interact with it, similar to how we interact with humans (in natural language). The following are some examples:
  • What will the weather be like in Ashburn?
  • Get weather in Seattle
  • Weather in Seattle
  • Hi, what is the current weather in Ashburn?
We will achieve this with the help of Natural Language Processing (NLP) using Microsoft Cognitive Services' LUIS.

Language Understanding Intelligent Service (LUIS)

Language Understanding Intelligent Service (LUIS) is one of the services in Microsoft Cognitive Services provided by Microsoft. As mentioned earlier, natural language is a fundamental element in developing bot applications. As a result, the technology industry has seen a direct correlation between the evolution of bot platforms and NLP platforms. Although the evolution of bot technologies has been predominantly driven by messaging platform providers such as Slack or Facebook, the main advancements in NLP technologies seem to be coming from cloud platform providers such as Microsoft. As a result, to take advantage of the NLP and Natural Language Understanding (NLU) algorithms, most bot developers spend time integrating their bot applications with NLP services provided by platforms such as LUIS from Microsoft. LUIS can process natural language using pre-built or custom-trained language models.
Microsoft's LUIS is a component of the Microsoft Cognitive Services Suite that helps in creating and processing natural language models. LUIS provides a sophisticated toolset that allows developers to develop and train the platform in new conversation models. LUIS can also be used in conjunction with other text processing APIs in the Microsoft Cognitive Services Suite, such as text analytics and many other services. The LUIS platform provides a deep integration with Microsoft Bot Framework technology and can be used by other bot platforms.
Here are some of the salient features of LUIS:
Let's perform the following steps to sign up for Microsoft Cognitive Services and learn how to use LUIS:
  1. Go to https://www.microsoft.com/cognitive-services and select the APIs option on the home page:
  1. Under the APIs menu, select the Language Understanding option:
  1. On the Language Understanding Intelligent Service (LUIS) page, click on Get started for free:
  1. It will navigate to https://www.luis.ai/ , the home page of LUIS. Click on Sign in or create an account:
  1. On the Sign In Options popup, select Sign in using a Microsoft account (most users):
  1. It will open an OAuth flow to authenticate your Microsoft account. Once you are successfully authenticated, it will ask you to grant permissions to access your profile information; click on Yes:
  1. Now LUIS will ask you to give a little more information about your country and company. After entering all the required information, click on the Continue button:
  1. The following is the page where you will see all the LUIS apps, that you create:
Now we are ready to create and build LUIS models. With the help of LUIS, we can build more complex NLP models, but for the weather bot, we will use basic and pre-built features. Before building your model, you should know what an Intent is and what an Entity is.

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 s...

Table of contents

  1. Title Page
  2. Copyright
  3. Credits
  4. About the Author
  5. About the Reviewer
  6. www.PacktPub.com
  7. Customer Feedback
  8. Preface
  9. Setting up Microsoft Bot Framework Dev Environment
  10. Developing Your First Bot Using the Connector and Builder SDK
  11. Developing WeatherBot Using Dialogs and LUIS
  12. Natural Speech and Intent Processing Bot Using Microsoft Cognitive Services
  13. Developing Bots Using LUIS Prompt Dialogs with State and Nearby Bot Using Custom APIs
  14. Developing an IVR Bot for a Bank Using Advanced Microsoft Bot Framework Technologies
  15. Intelligent Bots with Microsoft Bot Framework and Service Fabric
  16. Developing Intelligent Facial Expression Identification Bot for IoT Using Azure and Power BI
  17. Publishing a Bot to Skype, Slack, Facebook, and the GroupMe Channel
Citation styles for Building Bots with Microsoft Bot Framework

APA 6 Citation

Gaddam, K. (2017). Building Bots with Microsoft Bot Framework (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/526981/building-bots-with-microsoft-bot-framework-pdf (Original work published 2017)

Chicago Citation

Gaddam, Kishore. (2017) 2017. Building Bots with Microsoft Bot Framework. 1st ed. Packt Publishing. https://www.perlego.com/book/526981/building-bots-with-microsoft-bot-framework-pdf.

Harvard Citation

Gaddam, K. (2017) Building Bots with Microsoft Bot Framework. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/526981/building-bots-with-microsoft-bot-framework-pdf (Accessed: 14 October 2022).

MLA 7 Citation

Gaddam, Kishore. Building Bots with Microsoft Bot Framework. 1st ed. Packt Publishing, 2017. Web. 14 Oct. 2022.