Example of data validation
With the Fallback block, you can create data validation for client messages without programming knowledge.
This validation can be done using regular expressions, and to avoid creating endless loops or kicking the client out when they enter invalid data, you can use the Fallback block.

In the block with two outgoing connections, the client’s phone number is requested (this can also be a full name, email, etc.):

Two connection extend from the block: one to the Fallback block and one to the Chat block.

To allow the client to proceed further in the funnel when entering a valid phone number, specify the following regular expression in the condition of the arrow leading to the Chat block:
and set the match type to "Regex match".

Done!
The flow will work as follows: when the user reaches the block with the message "Enter your phone number," if the client enters anything else, they won’t be able to proceed further in the funnel due to the regular expression validation. Each time an invalid phone number is entered, the message "This is not a phone number" will be sent.
Last updated