Can you return to the waterfall dialog if the user entered incorrect data? #botframework

In the dialog box, I want to ask the user his email address. If the user mistakenly entered the wrong email address, I would like to go back or enter some kind of “loopback” situation to continue to request him by email until he enters the current one. What is the best way to do this? I could not find a way to return to the dialogue with the waterfall.

+5
source share
1 answer

You can by calling next({ resumed: builder.ResumeReason.back }) , but actually the best way to do what you are trying to do.

In the latest version of the v0.8.0 library, I added a new action DialogAction.validatedPrompt() , which allows you to create a new invitation using a special verification procedure. With this, you can invoke the '/ emailPrompt' dialog instead of Prompts.text (), and you will not need to go back. Check out the baseline-based example to see it in action.

+3
source

Source: https://habr.com/ru/post/1246799/


All Articles