Hi,
I create a bot with some integration parts. In here I want validate a user input using backend integration. I wrote the form validation in a try-except block in python because I want to handle the exception.
In my scenario I want stop the bot reply when it occurs an exception. I tried as follows
try:
#.. Integrations
# ....
except Exception as e:
dipaticher.utter_message(text="An exception Occured")
return [(ConversationPaused()]
But after I execute this code when it occurs an exception it gives correct error message but It continues asking for next slots. And it also gives a warning log in action server as following.
/usr/local/lib/python3.6/site-packages/rasa_sdk/forms.py:875: UserWarning: Cannot validate `name`: make sure the validation method returns the correct output.
f"Cannot validate `{slot_name}`: make sure the validation method "
I want to stop the bot after an exception with giving an error message in a FormValidationAction. How can I do this? Can anyone help me?