# Combine intent with entities and forms

**URL:** <https://forum.rasa.com/t/combine-intent-with-entities-and-forms/53025>\
**Category:** Rasa Open Source\
**Created:** [May 5, 2022, 12:55pm UTC](https://forum.rasa.com/t/combine-intent-with-entities-and-forms/53025 "2022-05-05T12:55:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas144](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lucas144/32/20432_2.png) [@lucas144](https://forum.rasa.com/u/lucas144)\
**Post date:** [May 5, 2022, 12:55pm UTC](https://forum.rasa.com/t/combine-intent-with-entities-and-forms/53025/1 "2022-05-05T12:55:59Z")

</div>

Hello Team. I’m trying to model the following interaction:

- A user wants to get recommendations. There are two possibilities here:

1. The user just says something like “I want to get recommendations” without any additional information. For this case, I have an intent that gets triggered and based on this I collect the information via a form and then call a custom action.
2. The user says “I want to get {X} recommendations”, where “X” is the only entity I need to process this.

How can I model such duality of things? Do I need to have different intents? One in where the entity is not present and the other one where it is?.

Let me know!.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [May 6, 2022, 5:09pm UTC](https://forum.rasa.com/t/combine-intent-with-entities-and-forms/53025/2 "2022-05-06T17:09:42Z")

</div>

This is a common use case for Rasa forms. You can see an example in the [financial-demo](https://github.com/RasaHQ/financial-demo) with the `pay_cc` [intent](https://github.com/RasaHQ/financial-demo/blob/7627cebef1571d55855b886cf4ac20459af9566c/data/nlu/nlu.yml#L358). In that example, sometimes the user gives their credit card name and sometimes they don’t.

Either way, this [form](https://github.com/RasaHQ/financial-demo/blob/7627cebef1571d55855b886cf4ac20459af9566c/data/rules/rules.yml#L56) is invoked and it will prompt for the name if it wasn’t provided.
