# Can i provide multiple intents in not\_intent key in form slot mapping

**URL:** <https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202>\
**Category:** Rasa Open Source\
**Created:** [February 15, 2021, 6:27am UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202 "2021-02-15T06:27:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lelemh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lelemh/32/10128_2.png) [@lelemh](https://forum.rasa.com/u/lelemh)\
**Post date:** [February 15, 2021, 6:27am UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202/1 "2021-02-15T06:27:54Z")

</div>

Can i provide multiple intents in not\_intent key in form slot mapping

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [February 16, 2021, 3:00pm UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202/2 "2021-02-16T15:00:17Z")

</div>

Yes, you can provide them as a list.

---

<div class="post-metadata">

**Author:** ![lelemh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lelemh/32/10128_2.png) [@lelemh](https://forum.rasa.com/u/lelemh)\
**Post date:** [February 18, 2021, 8:24am UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202/3 "2021-02-18T08:24:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [February 19, 2021, 9:43am UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202/4 "2021-02-19T09:43:36Z")

</div>

```auto
forms:
  your_form:
    slot_name:
    - type: from_intent
      value: my_value
      intent: intent_name
      not_intent: 
         - excluded_intent
         - another_excluded_intent
```

---

<div class="post-metadata">

**Author:** ![YuaNWA](https://avatars.discourse-cdn.com/v4/letter/y/ce73a5/32.png) [@YuaNWA](https://forum.rasa.com/u/YuaNWA)\
**Post date:** [April 1, 2021, 5:30pm UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202/5 "2021-04-01T17:30:42Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![mloubser](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mloubser/32/13021_2.png) [@mloubser](https://forum.rasa.com/u/mloubser)\
**Post date:** [April 21, 2021, 9:36am UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202/6 "2021-04-21T09:36:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lelemh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lelemh/32/10128_2.png) [@lelemh](https://forum.rasa.com/u/lelemh)\
**Post date:** [April 21, 2021, 1:37pm UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202/7 "2021-04-21T13:37:54Z")

</div>

Sure! waiting for your post!

---

<div class="post-metadata">

**Author:** ![andres\_pineiro](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/andres_pineiro/32/20388_2.png) [@andres\_pineiro](https://forum.rasa.com/u/andres_pineiro)\
**Post date:** [May 9, 2022, 10:45am UTC](https://forum.rasa.com/t/can-i-provide-multiple-intents-in-not-intent-key-in-form-slot-mapping/40202/8 "2022-05-09T10:45:20Z")

</div>

Hi @mloubser, and what about a list in the `intent` key? I’ve tried but it’s seems rasa is not prepared for it:

`UserWarning: Slot 'my_slot' uses a 'from_intent' mapping for a non-existent intent '['intent_1', 'intent_2']'. Skipping slot extraction because of invalid mapping.`

My domain file looks like this:

```auto
my_slot:
    type: bool
    influence_conversation: true
    mappings:
    - type: from_intent
      value: true
      intent:
        - intent_1
        - intent_2

```

Thanks!
