“Prompt options are required for Prompt dialogs” in Bot Framework

A quick reminder style post. If you get this strange sounding exception; Prompt options are required for Prompt dialogs

Then you’ve probably made the same mistake I did and forgot to add the waterfall steps to the dialogset;

 var waterfallSteps = new WaterfallStep[]
            {
                    InitializeStateStepAsync,
                    PromptForDescriptionStepAsync,
                    PromptForTopicStepAsync,
                    DisplaySummaryStepAsync,
            };
// * forgot to add this line 
// AddDialog(new WaterfallDialog("DescAndTopicDialog", waterfallSteps));
AddDialog(new TextPrompt(DescriptionPrompt, ValidateDescriptionAsync));
AddDialog(new TextPrompt(TopicPrompt, ValidateTopicAsync));
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s