# Use same entity for different intents in rasa

**URL:** <https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364>\
**Category:** Rasa Open Source\
**Created:** [February 20, 2019, 11:00am UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364 "2019-02-20T11:00:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamini](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@yamini](https://forum.rasa.com/u/yamini)\
**Post date:** [February 20, 2019, 11:00am UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/1 "2019-02-20T11:00:14Z")

</div>

Hi Below are my 2 different intents

- create\_vm
- start\_vm

intent create\_vm and start\_vm should share same entity vm\_provider=aws. But whenever I give value for entity vm\_provider=aws wrong intent is identified.

They need to be different intents as the dialog flow is different for both these intents. How can I make the bot identify right intent. TIA

---

<div class="post-metadata">

**Author:** ![hossa95](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hossa95/32/1766_2.png) [@hossa95](https://forum.rasa.com/u/hossa95)\
**Post date:** [February 20, 2019, 10:14pm UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/2 "2019-02-20T22:14:32Z")

</div>

if both intents have same utterances so maybe you need to think about making them one intent and handle the difference from the `Custom Action`

---

<div class="post-metadata">

**Author:** ![yamini](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@yamini](https://forum.rasa.com/u/yamini)\
**Post date:** [February 21, 2019, 6:24am UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/3 "2019-02-21T06:24:48Z")

</div>

Hi , thanks for responding. No the dialog flow is different. These 2 intents share only one entity together. Ex:user- create a vm bot- vm provider? user- aws bot- os type (Windows/Linux) user - windows

Ex: user- start a vm bot -vm provider? user- aws bot- vm name? user- abc

These 2 intents share 1 entity together. Bot identifies wrong intent. Any suggestions?

---

<div class="post-metadata">

**Author:** ![hossa95](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hossa95/32/1766_2.png) [@hossa95](https://forum.rasa.com/u/hossa95)\
**Post date:** [February 21, 2019, 10:00am UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/4 "2019-02-21T10:00:32Z")

</div>

so the problem here is two intents has the same utterance so the NLU misclassifying it if you are using a middleware software as botkit you can add some payload on the user input so the NLU can classify well… that’s the idea in mind now … if i found anything i will come back to you

---

<div class="post-metadata">

**Author:** ![yamini](https://avatars.discourse-cdn.com/v4/letter/y/919ad9/32.png) [@yamini](https://forum.rasa.com/u/yamini)\
**Post date:** [February 22, 2019, 6:36am UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/5 "2019-02-22T06:36:01Z")

</div>

Yeah it would be great if you any other suggestions with using only RASA. Thanks.

---

<div class="post-metadata">

**Author:** ![somlaychong](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@somlaychong](https://forum.rasa.com/u/somlaychong)\
**Post date:** [February 22, 2019, 7:49am UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/6 "2019-02-22T07:49:01Z")

</div>

Thanks for sharing your knowledge.

---

<div class="post-metadata">

**Author:** ![optimiztik](https://avatars.discourse-cdn.com/v4/letter/o/a88e4f/32.png) [@optimiztik](https://forum.rasa.com/u/optimiztik)\
**Post date:** [November 22, 2019, 12:53pm UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/7 "2019-11-22T12:53:44Z")

</div>

Do we have any solution for this query. we are looking at doing multiple custom actions based on a same entity extracted based on regex.

for example:

we have multiple intents like vmreboot vmloginerror vmdeletion vmupgrade

#entity is going to be similar text based on regex it always identifs a wrong itent and doesnt set and slot properly. once use enters a vmname like bnglnx01, bnglnx03, bngrhl01, bngsles02 etc… we have entity identified when it starts with bng

based on this it should identify the proper custom action based on the intent extracted…

here having 2 issues

1. not getting proper intent
2. getting proper intent it doesnt allot a slot for that…

how can be figure this out .

does formactions help ? is there any other approach to this.

---

<div class="post-metadata">

**Author:** ![haneef](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/haneef/32/6613_2.png) [@haneef](https://forum.rasa.com/u/haneef)\
**Post date:** [December 24, 2019, 10:55am UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/8 "2019-12-24T10:55:48Z")

</div>

Maybe this example can help you,

> **[Building contextual assistants with Rasa Forms](https://blog.rasa.com/building-contextual-assistants-with-rasa-formaction/)**
>
> Slot filling is made easy with our new addition of FormPolicy. FormPolicy allows you to cover all the happy paths with a single story. Forms also let you alter logic within a happy path, without needing to change the training data.

---

<div class="post-metadata">

**Author:** ![mohan](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mohan](https://forum.rasa.com/u/mohan)\
**Post date:** [September 17, 2021, 2:26pm UTC](https://forum.rasa.com/t/use-same-entity-for-different-intents-in-rasa/5364/9 "2021-09-17T14:26:50Z")

</div>

Does anyone find a solution to this?
