Hi, apologies if this is an easy, low level question, but i am struggling with the following scenario.
I have the bot asking via multi-choice a simple question such as:
-This is what i can do for you
(via HeroCard buttons)
Make Appointment - Workouts - Gyms - Contact Details
Now, how can i validate the user input based on the given choices? The user input is stored in property user.choice.
Is there a way to make a condition which allows the bot to refuse anything that is not one of the 4 suggested choices?
I am not sure how to write the expression.
In Prompt Configurations, Allow Interruptions is set to false and the Max turn count is set to 3.
Ideally, if the user inputs anything else than one of the suggested options, i would like that a message is returned (e.g. Sorry, i don't understand, select one of the options) and the options are displayed again.
I appreciate your help and many thanks in advance.
The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repos are the preferred platform for submitting bug fixes and feature requests.
Hi, apologies if this is an easy, low level question, but i am struggling with the following scenario. I have the bot asking via multi-choice a simple question such as:
-This is what i can do for you (via HeroCard buttons) Make Appointment - Workouts - Gyms - Contact Details
Now, how can i validate the user input based on the given choices? The user input is stored in property user.choice. Is there a way to make a condition which allows the bot to refuse anything that is not one of the 4 suggested choices?
I am not sure how to write the expression.
In Prompt Configurations, Allow Interruptions is set to false and the Max turn count is set to 3.
Ideally, if the user inputs anything else than one of the suggested options, i would like that a message is returned (e.g. Sorry, i don't understand, select one of the options) and the options are displayed again.
I appreciate your help and many thanks in advance.