Validate a User or an API Response - B.O.W. (Bag Of Words)
Bag of Words enables you to define a set of strings that can be used to validate the user's response. The validation checks if the user's response contains any of these strings, based on a case-sensitive condition. If there is no match, the Retry message is sent. After three consecutive errors, the message in the Final Retry field will be sent, and the end-user will exit the intent.
For example, let’s say you ask about the t-shirt size the user wants to purchase. You can specify the t-shirt sizes that you offer in the “Bow” field in quotation marks, such as "Small", "Medium", or "Large". The bot will only advance to the next step if the user's response contains one of these options exactly as specified. Otherwise, a Retry message will be triggered.
Updated 6 months ago