Validation Settings in Message Card
This help doc guides you how you can make sure the user inputs provided by the user is a valid input.
MSG91 bot allows one to validate the user provides a correct a valid reply to your question.
Attempts provided : One can set the number of attempts the user can be given in order to provide a user response of a question.
Validation Error Message : If the user provides an invalid user input, after very attempt the bot can send a custom validation message set for the user. For example, “Kindly provide a valid input.” OR “{user_name}} is not a valid input. Kindly enter a valid alphabetic name.”
Set the action that bot needs to take after unsuccessful attempts as well
Drop from the bot : Send the message and perform the action specified under the bot drop-off section.
Skip the question : Skip the question and proceed to the next card connected.
Proceed to fallback : Skip the question and move to the next card connected to the fallback connnector.
Additional Validation settings allow one to set the minimum and maximum length of the user inputs required.
One can also set the regular expression if required. Refer to ChatGPT to get a valid regex for a user input. For ex: One can write a regex that ensures that the user inputs a valid 12 digits aadhar card number.