Trigger disambiguation (first use)

(Francesco Fabietti) #1

Hi,
sorry if this question have yet an answer in the community channel or documentation (i don’t find this)

I have multiple flow with multiple group of “words or phrases” as trigger.
Sometime, the same word is used (alone) in one case and in a phrase in another case

eg

“dog”–>is in a group that trigger a new message
“where is my dog”–> is a phrase in a group that trigger another new message

it’s possible?

In my test bot if i have two cases like these and i write “where is my dog” the trigger is “dog” and the response is based on the first scenario. It’s impossible (for me) trigger the second one

Regards (and thanks for your job)

Francesco

(Daniel Beckett) #2

Hi @Francesco_Fabietti,

We use Word & Phrase Matching for new message triggers so unfortunately this can cause conflicts when triggers contain the same words. It’s best to avoid it completely wherever possible.

(Francesco Fabietti) #4

Thanks for your reply

I might have found a solution :smile: :
if, in “words and phrases” i write first the phrases (eg “where is my dog” first then “dog”), when user write dog (in any context that is not “where is my dog” the bot is triggered by the right term. If the user write the exact phrase (inserted in the highest position of the list) the trigger is ok.

I only need to rewrite all the lists by this logic

But there is no other way to do it and map similar phrases with same words? Using the other filter (some of which I have not yet understood) how “message”?

Thanks!

Regards
Francesco

(Karen Barker) #5

Hi Francesco,

No there wouldn’t be a way to do this using filters. We run through trigger keywords from first to last in the list and so what you’ve suggested as a work around would be the best way to achieve this. :thumbsup:

(Bryce Jurss) #6

Hi Francesco,

You can implement the Luis.ai API from Microsoft as a catchall to use natural language processing to determine the intent of the user before a flow is trigger.

Bryce