https://discord.gg/botpress logo
#🤝help
Disambiguating intents
# 🤝help
e

early-train-33247

06/16/2023, 5:29 PM
I have intents that look a lot like each other, specially the first word. How can I check if the bot is not 100% sure of the intent, and if so proceed to a disambiguation node to prompt the user which of the actions they want to take?
a

acceptable-kangaroo-64719

06/19/2023, 11:14 AM
You could probably make a "Before Outgoing Message" or "After Incoming Message" hook that looks in the
event.nlu
object for confidence. I'm just not sure how you would redirect or change the decision. Maybe you could try setting
event.nlu.decision
to None? I'm just brainstorming here, but that's the direction I'd start in, @early-train-33247
e

early-train-33247

06/19/2023, 2:43 PM
Okay, will try this out, tx!