CONTAINS a word

(Wt Intelligence) #1

I’m working on a BOT and I need to analyze what the user wrote. For that, I need to check if the user’s answer has any of a group of words.

For example:
Question: Do you work for a company
Answer: Yes, I do.

In this example, if the user’s answer has a word “yes”, I will send a message “Great, you work for a company”. It does not matter the complete answer, some one of the words (in this case, a “yes”)

How can I do that in Flowxo?

Thanks in advance.

(Sarah Palombo) #2

A great idea here is to use the Ask a question and set the question type to (choice). You can then add choice buttons that a user selects from

i.e : [Yes], [No],[Not Sure].

You can then filter the next message based on the answer above ‘equals’ Yes.

Alternatively:
You can do the same thing without making this be answered by selecting specific buttons, all you’d need to do is add a filter on the next message based on the answer above but instead use ‘Contains’ the value ‘Yes’

Hope that helps!

Sarah :slight_smile: