bots


Cancel a prompt or dialog after certain time - Bot Framework


I have a question about cancelling a prompt or a dialog if there is no input from the user within a certain period of time.
I need a way to somehow have a time out within prompts.
Example:
Bot prompts the user: "How old are you?".
The Bot now awaits a response from the user, but the user never response and the bot is still waiting.
In my case the bot should only wait 20 seconds and then close the dialog.
Is the cancellation token or a timeout implementation in the HandleSystemMessageAsync Method any helpful for that purpose and how would I implement that for a prompt?
Thank you for any ideas!
You could save a timestamp in the context.UserData, and then when you receive a new message check if the difference in time is >20 seconds and route the dialog appropriately.

Related Links

Microsoft Bot says “The process cannot access the file because it is being used by another process.”
When should we use all three (trait, free-text and keywords) search strategies in a user-defined entity?
alternative to wit.ai merge since it is deprecated now
my telegram bot keeps sending messages endlessly
Telegram: don't search my bot to start conversation
How to add MS bot to slack?
How to get the last executed command in a Telegram bot?
How can i customize answer of Bot Framework Help Command?
How can I identify the particular attachments when I click on a button in cards?
Accessing facebook user id for microsoft bot framework
Wit.ai Dynamic quick replies and random responses? How
I'm trying to implement a quote system in mIRC for my Twitch bot, reading from the text file works, but adding doesn't
How to set Slack bot presence “online” when using Events API
how to save the data using state clinet in bots
Connecting LUIS dialog to form dialog and mapping builtin fields
ValidationResult throws : “Object reference not set to an instance of an object”. when passing back choices

Categories

HOME
azure-functions
automapper
keyboard
blast
dafny
iverilog
dronekit-python
flurry
navigation
stored-procedures
reportviewer
lc3
heuristics
parsley.js
nsstring
angular4
powermock
ex
jodatime
google-tasks-api
android-5.1.1-lollipop
uima
android-contacts
http-authentication
spam
data-type-conversion
unity-container
bsd
bosun
maven-surefire-plugin
fluent-migrator
device
sipp
firemonkey-style
environment
jstree
prompt
msdeploy
spring-annotations
amazon-iam
openbr
mapnik
argv
rust-cargo
gnu-classpath
netstat
pdfnet
recovery
sspi
praat
cloudera-sentry
moinmoin
react-intl
autorelease
sonarqube5.2
password-hash
openstack-glance
asp.net-web-api-routing
instafeedjs
http4s
email-injection
pbx
allegro
seccomp
spring-mongo
bbc-micro
adp
ajaxmin
highlighting
accessibilityservice
seadragon
vim-plugin
servicestack-bsd
lowercase
asp.net-web-api-helppages
domino-designer-eclipse
karma-coverage
flow-js
dbmigrate
rfc5545
incron
utf8-decode
git-reset
redpitaya
principalcontext
sensormanager
progress-db
django-facebook
microformats
jquery-lazyload
dibs
arel
examine
ckeditor.net
user-forums
idispatch
msinfo32
pcspim
qtextbrowser
cewolf
servlet-container
printqueue
anonymous-types
gaelyk
ccnet-config
html-components
tacit-programming
gui-designer

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