0

How do I repeat waterfall steps in Azure Botframework? I want to ask some prompts, and repeat a prompt if needed. How do I repeat steps or start the waterfall from the age prompt?

 var waterfallSteps = new WaterfallStep[]
        {
                InitializeStateStepAsync,
                PromptForNameStepAsync,
                PromptForAgeStepAsync,
                DisplayGreetingStateStepAsync,
                PromptForColorStepAsync,
                PromptForTypeStepAsync,
                ShoppingstepAsync,
                firststepAsync,
                secondstepAsync,
        };
        AddDialog(new WaterfallDialog(ProfileDialog, waterfallSteps));
        AddDialog(new TextPrompt(NamePrompt, ValidateName));
        AddDialog(new TextPrompt(AgePrompt, ValidateAge));
        AddDialog(new TextPrompt(ColorPrompt, ValidateColor));
        AddDialog(new TextPrompt(type_ofPrompt, ValidateType));
       AddDialog(new ChoicePrompt(Choice));
JJ_Wailes
  • 2,207
  • 1
  • 9
  • 17
  • Possible duplicate of [Bot framework v4.0 how to execute the previous waterfall step in a dialog](https://stackoverflow.com/questions/52554441/bot-framework-v4-0-how-to-execute-the-previous-waterfall-step-in-a-dialog) – JJ_Wailes Mar 11 '19 at 18:31
  • when i use ReplaceDialogAsync it is not waiting for the user in first prompt its waiting from second prompt – Aravind Pabbisetty Mar 12 '19 at 18:25
  • In order to repeat steps, you need to break this waterfall into a series of mini waterfalls, all nested into one. – JJ_Wailes Mar 12 '19 at 19:01

0 Answers0