Can i provide multiple intents in not_intent key in form slot mapping

Can i provide multiple intents in not_intent key in form slot mapping

Yes, you can provide them as a list.

Thanks for reply. Can you just provide an example for better understanding so it will be helpful for all

forms:
  your_form:
    slot_name:
    - type: from_intent
      value: my_value
      intent: intent_name
      not_intent: 
         - excluded_intent
         - another_excluded_intent
1 Like

To tag on this question, if I have a couple of forms that I would like to exclude the same intents, is it possible to define that list as a variable and specify that variable for not_intent?

i.e

excluded_intents:
    - excluded_intent_1 
    - excluded_intent_2

forms:
  your_form:
    slot_name:
    - type: from_intent
      value: my_value
      intent: intent_name
      not_intent: 
         excluded_intents

  your_form_2:
    slot_name:
    - type: from_intent
      value: my_value
      intent: intent_name
      not_intent: 
         excluded_intents

There’s a feature for this that’ll come up in the next minor release! https://github.com/RasaHQ/rasa/pull/7931

Sure! waiting for your post!