# Generic entity given an intent

**URL:** <https://forum.rasa.com/t/generic-entity-given-an-intent/1227>\
**Category:** Rasa Open Source\
**Created:** [September 19, 2018, 8:16am UTC](https://forum.rasa.com/t/generic-entity-given-an-intent/1227 "2018-09-19T08:16:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.mugnai](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@t.mugnai](https://forum.rasa.com/u/t.mugnai)\
**Post date:** [September 19, 2018, 8:16am UTC](https://forum.rasa.com/t/generic-entity-given-an-intent/1227/1 "2018-09-19T08:16:55Z")

</div>

Hi, I have a dubt:

Is there a way to define a generic entity given an intent? Let me explain better, I need something like this:

> ## intent:give\_answer
> 
> - the answer is [answer1] (answer)

I want that, once Rasa has recognised the intent, it also recognise the entity “answer”, whatever word or sequence of words it contain. I need a generic intent. Is it possible to do that?

When I try, I often recognize the intent but not recognize any entity.

Thanks

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [September 20, 2018, 9:09am UTC](https://forum.rasa.com/t/generic-entity-given-an-intent/1227/2 "2018-09-20T09:09:46Z")

</div>

Can you post some of your training data?

---

<div class="post-metadata">

**Author:** ![t.mugnai](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@t.mugnai](https://forum.rasa.com/u/t.mugnai)\
**Post date:** [September 25, 2018, 8:01am UTC](https://forum.rasa.com/t/generic-entity-given-an-intent/1227/3 "2018-09-25T08:01:13Z")

</div>

I have training data like:

- the answer is [potato] (answer)
- the answer is [cat] (answer)
- the answer is [tom with the gun] (answer)
- the answer is [new york city] (answer)

But if the user answers like: “the answer is rasa nlu”, then the system finds the intent but **not the entity**. Of course is becouse I never trained on somethong similar to “rasa nlu”. But what I want is recognising quite everything in a generic entity, **without** having to necessarily train on data of **any kind** (which I believe is impossible).

Is that **possible**?

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [September 26, 2018, 9:56am UTC](https://forum.rasa.com/t/generic-entity-given-an-intent/1227/4 "2018-09-26T09:56:18Z")

</div>

Once you have enough training data it should learn to generalise to unseen entities as well

---

<div class="post-metadata">

**Author:** ![t.mugnai](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@t.mugnai](https://forum.rasa.com/u/t.mugnai)\
**Post date:** [September 26, 2018, 10:32am UTC](https://forum.rasa.com/t/generic-entity-given-an-intent/1227/5 "2018-09-26T10:32:12Z")

</div>

I’ll try and then let you know.
