I have a set of intents that can be triggered.
- turn light on
- turn light off
- close door
- open door
For every intent I have a set of followup intents, e.g.
- turn light on
- select light source (input context
light-on-followup
) - select light source fallback (input context
light-on-followup
)
- select light source (input context
I want to make sure that if the user has triggered turn light on
intent, and I am asking him which light source do you want to turn on?
he can either trigger select light source
or if the utterance doesn't match that the fallback intent is triggered.
The problem that I am facing: if the user says turn light off
while being in the turn light on
dialog, the fallback intent is not triggered but the user triggers the higher order intent turn light off
instead. I want to prevent that this can happen. Is there a way to do this?
I am using the input context for the fallback intent but apparently a high confidence level in a higher order intent leads Dialogflow to trigger the higher order intent instead.