bots


Can you go back a step in a waterfall dialog if the user entered wrong data? #botframework


In a dialog, I want to ask the user for his email address.
If the user entered an invalid email by mistake, I would like to be able to go back or get into some "loop" situation of keep asking him for his email until he enters a valid one.
What's the best way to accomplish that?
I couldn't find any way to go back a step in a waterfall dialog.
You can by calling next({ resumed: builder.ResumeReason.back }) but there's actually a better way to do what you're trying to do.
In the latest v0.8.0 version of the library I added a new DialogAction.validatedPrompt() action that lets you create a new prompt with a custom validation routine. With that you can call your '/emailPrompt' dialog instead of Prompts.text() and you won't need to go backwards. Check out the basics-validatedPrompt example to see it in action.

Related Links

What is the right way to measure time between bot's message and user's answer in the bot framework?
Telegram bot issue
Design custom entities for api.ai
How can I make a program to operate another program? [closed]
How to get the Skype username using skype calling feature
How to Resolve this issue “Could not find a stock quote for GOOGL or some other company names”
Open messenger chatbot webview extension in Chrome
How to pass control from one LUIS method to another?
How to transfer conversation from Bot to human agents?
How to speak skype user with the bot using skype calling feature?
Test connection to your bot getting failed : Bot Framework
How to find out programs communicate?
API.AI vs. WIT.AI from analytics and logging aspects
Call FormDialog from within a LUIS Dialog
How to access .wav file in bot simulator
How to call a LUIS Dialog outside of the MessagesController class

Categories

HOME
openshift
apache-nifi
ontouchlistener
ant
apk
web2py
gprs
tup
rangy
bootstrap-switch
complexity-theory
closures
tomcat8
mixpanel
renderscript
home
connection-refused
ava
multi-dimensional-scaling
python-imageio
audit
tightvnc
xvfb
aurelia-http-client
android-n
google-now
assemblies
slideshow
xcode8.2
daz3d
intellij-lombok-plugin
uiautomatorviewer
gnome-terminal
ptvs
glimpse
google-shopping-api
gapi
nunit-console
spring-mongo
highlighting
distributed-cache
jsr363
management-studio-express
webgrind
boost-proto
html.actionlink
componentart
webproject
whitespace-language
scala-swing
directorysearcher
rebar
xml-signature
qt5.4
loginview
roxy-fileman
profiles
lync-2010
application-blocks
illuminate-container
acitree
iirf
postgres-xc
objective-c-runtime
bcdedit
eager-loading
tfs-sdk
2d-vector
simplecov
system-requirements
semantic-merge
zend-pdf
arrow
jdom
kobold2d
flymake
series-40
uploading
yuidoc
radscheduler
botnet
winsxs
hungarian-notation
cassini
sscli
index.dat

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App