Having Trouble With AND Filters and Phrase Groups

#1

Hi all,

I have a situation in which users need to get really granular with their questions and I’m trying to use AND filters to account for that. However, I’m having some issues with getting it to output correctly.

In this instance, I have two groups of phrases related to two actions. Action 1 requires a query to contain Group A but not contain Group B. I have yet to see this output the wrong response. Action 2 requires it to contain both Group A and Group B. This either results in no output or the output from Action 1.

Even if I remove Action 1 and have nothing else referring to Group A or B, its still not acting correctly, which tells me the problem exists within the context of Action 2. I’ve tried checking what seem like the common sense solutions, IE misspellings, moving the groups to the top of the list, reordering Group B ahead of A in filters, queries and the list. I’m at a bit of a loss here, especially since I know I’m going to encounter this setup with other user queries.

Another thread mentioned having problems at 700 queries being listened for, right now I’m at about 350. Am I beginning to run into some sort of threshold, or is there some really obvious error I’m making?

(Karen Barker) #2

Hi there,

When you use keyword triggers with phrase groups, we look through the list of trigger words until we find a single match and then we trigger the flow. Unfortunately we would only therefore recognise the first instance and so not have any knowledge to be able to do a filter that the word is contained in both Group A and B.

There are a couple of ways you could handle this instead. You could use a 3rd party AI such as Dialog Flow or wit.ai etc and integrate this using our Webhook service. These 3rd parties will allow you to understand the users intent and send back the correct response based on that. We have an article here on using api.ai (now Dialog Flow) with Flow XO.

Alternatively you could store your keywords in database, e.g. Google Sheets and use the search results to decide on the groups that the message falls into. :thumbsup: