Validate a User or an API Response - B.O.W. (Bag Of Words)

Bag of Words enables you to define a set of strings against which the user's response will be validated. If there is no exact match with any of the strings, the Retry message is sent. After 3 errors in a row, the message in the Final Retry field will be sent, and the end-user will exit the intent.

For example, let’s say you inquire about the t-shirt size the user wants to purchase. You can specify the t-shirt sizes that you offer in the “Bow” field, such as Small, Medium, Large. The bot will only advance to the next step if the user's response is an exact match with one of these options; otherwise, a Retry message will be triggered.