# Same intent with multiple entities

**URL:** <https://forum.rasa.com/t/same-intent-with-multiple-entities/24000>\
**Category:** Rasa Open Source\
**Created:** [January 27, 2020, 9:45am UTC](https://forum.rasa.com/t/same-intent-with-multiple-entities/24000 "2020-01-27T09:45:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LAKSHMI25NPATHI](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lakshmi25npathi/32/4988_2.png) [@LAKSHMI25NPATHI](https://forum.rasa.com/u/LAKSHMI25NPATHI)\
**Post date:** [January 27, 2020, 9:45am UTC](https://forum.rasa.com/t/same-intent-with-multiple-entities/24000/1 "2020-01-27T09:45:08Z")

</div>

Hi,

How to train same intent with multiple entities having same length of numbers? for example customer Id and card number

intent: user\_details

- 298177383878
- 238787672789
- 367627289872
- 397732775352

How to train above intent?

---

<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:** [January 27, 2020, 5:13pm UTC](https://forum.rasa.com/t/same-intent-with-multiple-entities/24000/2 "2020-01-27T17:13:35Z")

</div>

You could annotate those numbers as entities and use regular expression features ([Training Data Format](https://rasa.com/docs/rasa/nlu/training-data-format/#regular-expression-features) - sorry I thought the link contained the right text) to aid in their extraction

---

<div class="post-metadata">

**Author:** ![LAKSHMI25NPATHI](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lakshmi25npathi/32/4988_2.png) [@LAKSHMI25NPATHI](https://forum.rasa.com/u/LAKSHMI25NPATHI)\
**Post date:** [January 28, 2020, 4:57am UTC](https://forum.rasa.com/t/same-intent-with-multiple-entities/24000/3 "2020-01-28T04:57:25Z")

</div>

Thank you for your reply. If I annotate those numbers as entities like customer id and card number. Will rasa recognize as separate entities because both have same number length?

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [January 28, 2020, 9:02am UTC](https://forum.rasa.com/t/same-intent-with-multiple-entities/24000/4 "2020-01-28T09:02:55Z")

</div>

I’d use a regex to support the entity extraction and I wouldn’t use a specialized intent, but rather a generic `inform` intent

---

<div class="post-metadata">

**Author:** ![LAKSHMI25NPATHI](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lakshmi25npathi/32/4988_2.png) [@LAKSHMI25NPATHI](https://forum.rasa.com/u/LAKSHMI25NPATHI)\
**Post date:** [January 28, 2020, 9:59am UTC](https://forum.rasa.com/t/same-intent-with-multiple-entities/24000/5 "2020-01-28T09:59:11Z")

</div>

@Tobias_Wochinger Thank you, I will try it.
