Can I trigger an action using only slot_was_set condition in rule, regardless of intent classified?


I want to trigger an action when a slot value is set, regardless of the intent that is recognised. My current solution uses a rule as follows:

  • rule: Live agent condition:
    • slot_was_set:
      • live_agent: true steps:
    • or:
      • intent: greet
      • intent: nlu_fallback
      • … (more intents)
    • action: action_pass_to_agent

An issue with the current solution is that I have to add the intents underneath the -or step everytime I have a new intent. Is there a simpler workaround to this? Any help will be highly appriciated, thank you.

You can create a custom policy for this.