Add Fluent Dialogs to BotBuilder #4866
Labels
feature-request
A request for new functionality or an enhancement to an existing one.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Is your feature request related to a problem? Please describe.
While the WaterfallDialog can be used to implement arbitrarily complex user interactions, common things such as branching decision trees and loops eventually result in a complex, hard to review and manage, sequence of callbacks and sub-dialogs.
Describe the solution you'd like
This feature request proposes the addition of a
FluentDialog
class to themicrosoft/botbuilder-js
repository. TheFluentDialog
uses event sourcing to handle complex user interactions in bot applications, providing an uninterrupted execution flow similar to the durable function orchestrator pattern.Rationale:
The addition of fluent dialogs will significantly enhance the developer experience by:
FluentDialog
provides a straightforward way to define complex conversation flows using JavaScript's generator functions, making the implementation more intuitive and reducing boilerplate code.Describe alternatives you've considered
I couldn't find any alternative other than the WaterFallDialog I already mentioned.
Additional context
The usage would be something along the lines of the dialogFlow function shown below:
The text was updated successfully, but these errors were encountered: