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