CHAPTER 6. Using FormFlow

In Chapter 5, you learned how to manage conversations with basic dialogs, IDialog<T>. This chapter continues the dialog discussion by introducing a different type of dialog, FormFlow. With an IDialog<T> dialog, you specify the flow of a conversation through a chain of methods where each method accepts an answer from its antecedent, and then asks another question until you’re finally at the end of the conversation. A FormFlow dialog is different, because rather than procedural logic, it’s more declarative. Essentially, you specify what you want the conversation to be, rather than how to perform the conversation.

To support the declarative nature of a FormFlow dialog, this chapter starts with the basics of how to create ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.