CHAPTER 5. Building Dialogs

Previous chapters built a game chatbot named Rock, Paper, Scissors. It was a simple chatbot in that it mostly responded to single word commands. Interactions were largely limited to a single request and response pair. That worked well for that situation, but there are times when a user needs a more in-depth conversation with a chatbot. For example, filling out forms, getting help, or ordering a product or service can often lead to a series of interactions to share information. A more sophisticated set of tools for conversations is Bot Builder dialogs.

This chapter shows how to use dialogs for conversations. You’ll learn the essential parts of a dialog class and the reasons each part exists. You’ll learn how to manage ...

Get Programming the Microsoft Bot Framework: A Multiplatform Approach to Building Chatbots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.