“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));

2 thoughts on ““Prompt options are required for Prompt dialogs” in Bot Framework

  1. Krishna March 3, 2019 / 2:41 pm

    Hi Thank you for the tip. Found another issue on the same.

    We get the same issue if the order is not followed.

    It is always waterfallsteps, then prompts. If we reverse it, we still get the issue.

    Strange, but happening 😦

    Thank you.

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 )

Facebook photo

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

Connecting to %s