# Trigger Action Based on Entity Values Not Just Intent

**URL:** <https://forum.rasa.com/t/trigger-action-based-on-entity-values-not-just-intent/31271>\
**Category:** Rasa Open Source\
**Created:** [July 12, 2020, 12:50pm UTC](https://forum.rasa.com/t/trigger-action-based-on-entity-values-not-just-intent/31271 "2020-07-12T12:50:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer123](https://avatars.discourse-cdn.com/v4/letter/d/9d8465/32.png) [@developer123](https://forum.rasa.com/u/developer123)\
**Post date:** [July 12, 2020, 12:50pm UTC](https://forum.rasa.com/t/trigger-action-based-on-entity-values-not-just-intent/31271/1 "2020-07-12T12:50:55Z")

</div>

I want to trigger two different actions based on the extracted entity. For example, I might want to trigger a pizza\_form if the extracted cuisine entity equals italian but a burger form for all other cuisines. I tried this story, but it’s not working. It will always do a pizza form.

```
## request_meal{"cuisine": "italian"}
    - pizza_form
    - form{"name": "pizza_form"}
    - form{"name": null"}
## request_meal
   - burger_form
   - form{"name": "burger_form"}
   - form{"name": null}

```

How do you fix this?

---

<div class="post-metadata">

**Author:** ![praveenk459](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@praveenk459](https://forum.rasa.com/u/praveenk459)\
**Post date:** [November 5, 2020, 12:40pm UTC](https://forum.rasa.com/t/trigger-action-based-on-entity-values-not-just-intent/31271/2 "2020-11-05T12:40:17Z")

</div>

Is there any solution for this? I am also looking for the same. Wants to trigger different forms based on entity or slot value

---

<div class="post-metadata">

**Author:** ![PatrickCampanhol](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@PatrickCampanhol](https://forum.rasa.com/u/PatrickCampanhol)\
**Post date:** [February 10, 2021, 11:01am UTC](https://forum.rasa.com/t/trigger-action-based-on-entity-values-not-just-intent/31271/3 "2021-02-10T11:01:03Z")

</div>

Same issue here. I can’t give answers based on different entities (same intent):

- intent: problem examples: |

- story: Desktop issue steps:

- story: Cooler issue steps:

Rasa extracts both entities but only gives the response from the first story (utter\_desktop\_issue), even when I ask “the cooler is not working”, for example…

Does anybody could help me?

---

<div class="post-metadata">

**Author:** ![abhishekrathi](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@abhishekrathi](https://forum.rasa.com/u/abhishekrathi)\
**Post date:** [February 17, 2022, 10:36am UTC](https://forum.rasa.com/t/trigger-action-based-on-entity-values-not-just-intent/31271/4 "2022-02-17T10:36:50Z")

</div>

Have you found any solution for this?

---

<div class="post-metadata">

**Author:** ![Adheesh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/adheesh/32/19150_2.png) [@Adheesh](https://forum.rasa.com/u/Adheesh)\
**Post date:** [February 21, 2022, 12:17pm UTC](https://forum.rasa.com/t/trigger-action-based-on-entity-values-not-just-intent/31271/5 "2022-02-21T12:17:34Z")

</div>

I’m dealing with the same situation. Is there any ideal solution for this in the latest versions of rasa?

Currently I’m running in :

`Rasa Version : 2.8.17`

`Rasa SDK Version : 2.8.2`

`Python Version : 3.7.4`
