Branch | Status | Recommended NuGet package version |
---|---|---|
master |
This is part of the Bot Builder Community Extensions project which contains various pieces of middleware, recognizers and other components for use with the Bot Builder .NET SDK v4.
This library is a netstandard2.0 port of Microsoft.Bot.Builder.FormFlow The Bot Builder V3 FormFlow documentation is useful for this library as well, just take note of the namespace changes.
Available via NuGet package Bot.Builder.Community.Dialogs.FormFlow
Install into your project using the following command in the package manager;
PM> Install-Package Bot.Builder.Community.Dialogs.FormFlow
A sample for using FormFlow with the v4 SDK can be found here
FormDialog inherits from ComponentDialog
FormFlow dialogs can be added to a DialogSet:
_dialogs.Add(FormDialog.FromForm(SandwichOrder.BuildForm));
Or added to a component dialog:
public HotelsDialog() : base(nameof(HotelsDialog))
{
var hotelsFormDialog = FormDialog.FromForm(this.BuildHotelsForm, FormOptions.PromptInStart);
base.AddDialog(hotelsFormDialog);
}
Take note of namespace changes from Microsoft.Bot.Builder.FormFlow to Bot.Builder.Community.Dialogs.FormFlow
Licensed under the MIT License.