Utterance twice for form validation - Rasa Open Source - Rasa Community Forum

👋 Introducing the Rasa Playground

Utterance twice for form validation

post by jkothamb on Jan 25, 2021

Have a situation where form validation of a slot value results in two utterance of the same message dispatched in the validation method. It happens only when the validation of the slot value fails and this utterance is made. The validation method returns by resetting the slot value and dispatches an utterance asking to provide a valid value with possible choices. Do I need to explicitly throw ActionExecutionRejected event in case the slot value is reset? If so, will the form execution continue when the user provides the correct value?

I am using the latest version of rasa open source i.e. 2.2.4. Appreciate any help.

post by mloubser on Feb 2, 2021

Hi @jkothamb could you share the code for your form, validation methods & the stories/rules you’re using to run your form?

post by jkothamb on Feb 7, 2021

Hi @mloubser: I was able to figure out a solution by overriding the utterance using a custom action to ask for the slot value. If a validation of a slot value results in asking the user to choose from multiple values, then don’t dispatch an utterance in the validation method, but do so in the custom action to ask for the slot value. It involves passing utterance message using a slot field to the custom action, but it works even though it is a kludge.

Thanks, Juzer

post by jmanikandan339 on Oct 21, 2021

would u please paste an example

Related topics

Topic Replies Views Activity
Mute ‘utter_ask’ in forms for validation questions
Rasa Open Source
21 3.6k Apr 2021
FormAction is not working – Utterance is not getting repeated until the slot value is filled
Rasa Open Source
1 2.1k Nov 2018
Checking slot value with database and give desired response
Rasa Open Source
18 2.9k Nov 2018
How can I rerun or ask again a form?
Rasa Open Source
6 706 Sep 2021
How to change default re-asking of slot if slot validation fails?
Rasa Open Source
7 899 Dec 2022