How to utter a validation response to the user in place of utter_ask_slot during form validation


I am using a form in RASA 2.0 in which a series of questions are asked, I have multiple validation conditions for each slot and I wish to output different utterances with respect to a specific validation task as the bot only replies with utter_ask_slotname for every validation condition. Is there a way to change this?

Good luck with this.


Hi @natsucr7. What you can do with slot validation actions is include a message to be sent back to the user depending on how the validation went. You can find an example of that in our financial assistant demo. Check ValidatePayCCForm class.