Recognizing contextual answers

#1

Hi. I am still quite new to the Flow platform.

I want to know if there is a way to setup groups of contextual answers that the bot will recognise, evaluate and then make a decision on. If the answer is wrong, can the bot also give a hint as to how to answer the question (as opposed to the generic catch-all)

Example:

Contextual group: [consent]
Values: yes, y, ye, sure, ok, for sure, definitely

So if a user answers any of these to a question, the bot can interpret these as being the same as the group name [consent], which can act as the trigger word for the next part of the conversation or to trigger a new flow.

example hint answer: Please answer either yes or no

Example:

Contextual group: [uszipcodes]
Values: array of all us zip codes

Then when a user is asked for a zip, the answer can be checked against this group, and if incorrect, the user is given a prompt to enter a proper zip

Is this possible? I came across this kind of logic on the converse.ai platform and it works well to bring a more natural language flow to a bot interaction.

(Daniel Beckett) #2

Hi there,

You can setup word and phrase groups as part of Bot Triggers & Actions. It works almost exactly like your example but the setup looks more like this:

hello [greeting]
hi [greeting]
hey [greeting]
bye [farewell]
exit [farewell]

There’s a Small Talk template Flow that you can install which has a great example of this if you’d like to take a look.

Hope that helps. :slightly_smiling_face:

Thanks,
Dan