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

PromptDialog.Choice - Invalid Type Exception
Unknown CTA IDs in Facebook Analytics for Apps
Microsoft Bot Skype Group Chat
BotFramework sorry the service was upgraded and we need to start over
Best way to find moving function for a bot
api.ai domain intent query response
How to define string as luis entity
Luis V2 Remove action parameter/prompt
Telegram Bot PHP keyboard doesn't works
How can I use PromptDialog.Choice while allowing the user to type the options without worrying about accented letters?
Messenger Bot Webview not closing on IOS
Slack bot cannot post message to private channel
Slack bot to pre-format channel responses
Is it possible to display a table in skype from bot framework?
Connecting api of android app to bot framework
IntentDialog matches only once at the start in bot framework

Categories

HOME
hpoo
ionic2
lambda
typelite
operating-system
dafny
embedded-resource
mongoid
docker-cloud
nsis
linker
capistrano
ui-automation
wagtail
native-base
clickable-image
hystrix
driver
amazon-emr
sap-fiori
cname
ex
outlook-restapi
bundler
dhcp
twisted
cpu-usage
psql
fido-u2f
liferay-6.2
cell
animated-gif
web-push
fusetools
ccavenue
dnsmasq
premake
gsp
quickcheck
serversocket
custom-keyboard
directfb
restful-architecture
secure-coding
flipkart
transparency
reverse-dns
non-linear-regression
hibernate-ogm
comm
gestures
popen
glimpse
kendo-treeview
rustdoc
annotatorjs
deviare
s-function
jsf-2.3
mercurial-extension
mnesia
okta-api
enunciate
stack-smash
mousehover
openshift-cartridge
nastran
domino-designer-eclipse
org-babel
abstract-factory
flow-js
kotlin-android-extensions
deque
signed
jolie
flurry-analytics
device-admin
zend-mail
nesper
multivariate-testing
libgcc
maven-central
windows-messages
miglayout
gpu-programming
flipboard
discovery
quickgraph
struts2-json-plugin
getproperty
chronometer
zotonic
netstream
kolite
glassfish-esb
grails-validation
pyjamas
ios-4.2
raw-data
eventaggregator
jquery-effects
index.dat
jvm-bytecode

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App