# Don't fill "foreign" slots during form

**URL:** <https://forum.rasa.com/t/dont-fill-foreign-slots-during-form/42876>\
**Category:** Rasa Open Source\
**Created:** [April 25, 2021, 5:54pm UTC](https://forum.rasa.com/t/dont-fill-foreign-slots-during-form/42876 "2021-04-25T17:54:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![endreb](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/endreb/32/12584_2.png) [@endreb](https://forum.rasa.com/u/endreb)\
**Post date:** [April 25, 2021, 5:54pm UTC](https://forum.rasa.com/t/dont-fill-foreign-slots-during-form/42876/1 "2021-04-25T17:54:51Z")

</div>

Hi Team,

I would need some help. I want to achieve the following but don’t know how to get rasa to do it:

- I have two intents. Intent\_A and Intent\_B.
- I have trained them with Entity\_A1 and Entity\_A2 for Intent\_A and Entity\_B1 and Entity\_B2 for intent\_B. (It is important that let’s say A2 and B2 are numbers, so they are similar)
- I use Form\_A and Form\_B and created Slot\_A1, Slot\_A2, Slot\_B1 and Slot\_B2 with auto fill.

Here is what I want to accomplish: When Form\_A is triggered, I want only Slot\_A1 and Slot\_A2 to be auto filled none of the other slots. Same if Form\_B is triggered I want only Slot\_B1 and Slot\_B2 to be auto filled.

The problem: I cannot use the intent property with Slot\_A1 for example, because it will only auto fill Slot\_A1 if Intent\_A is captured. However there is a scenario where Intent\_A is captured with 0 entities and therefore Form\_A starts and starts gathering the entities. Now I use from\_text property, which means whatever the user writes after RASA asks from Entity\_A that will be the entity. So an Intent\_A will never be part of that answer.

I need a flag or something I can set, if a Form runs, only the entities belong to that form will be set. Any way I can hack this together, so it will work. It is really hard to use rasa without this, because I have multiple forms and slots are randomly filled during conversation.

Is this make sense?

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [April 26, 2021, 8:50am UTC](https://forum.rasa.com/t/dont-fill-foreign-slots-during-form/42876/2 "2021-04-26T08:50:27Z")

</div>

I think this should work if you [deactivate slot auto filling](https://rasa.com/docs/rasa/domain#slot-auto-fill) and declare the [slots to be filled by the form explicitly](https://rasa.com/docs/rasa/forms#from_entity).
