# If I have a look up for name what would the formfilling be...from\_text or from\_entity?

**URL:** <https://forum.rasa.com/t/if-i-have-a-look-up-for-name-what-would-the-formfilling-be-from-text-or-from-entity/38247>\
**Category:** Rasa Open Source\
**Created:** [December 20, 2020, 11:59am UTC](https://forum.rasa.com/t/if-i-have-a-look-up-for-name-what-would-the-formfilling-be-from-text-or-from-entity/38247 "2020-12-20T11:59:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![faiza\_conte](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@faiza\_conte](https://forum.rasa.com/u/faiza_conte)\
**Post date:** [December 20, 2020, 11:59am UTC](https://forum.rasa.com/t/if-i-have-a-look-up-for-name-what-would-the-formfilling-be-from-text-or-from-entity/38247/1 "2020-12-20T11:59:54Z")

</div>

If I have a look up for name what would the formfillingbe…from\_text or from\_entity?

---

<div class="post-metadata">

**Author:** ![marcos.allysson](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/marcos.allysson/32/12107_2.png) [@marcos.allysson](https://forum.rasa.com/u/marcos.allysson)\
**Post date:** [December 20, 2020, 3:37pm UTC](https://forum.rasa.com/t/if-i-have-a-look-up-for-name-what-would-the-formfilling-be-from-text-or-from-entity/38247/2 "2020-12-20T15:37:50Z")

</div>

@faiza_conte, I’d use from\_entity. It will look for an entity called `entity_name` to fill a slot `slot_name` . The `from_text` mapping will use the text of the next user utterance to fill the slot `slot_name`. Check [references.](https://rasa.com/docs/rasa/forms#slot-mappings). Hope it helps 😃

---

<div class="post-metadata">

**Author:** ![kearnsw](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kearnsw/32/4838_2.png) [@kearnsw](https://forum.rasa.com/u/kearnsw)\
**Post date:** [December 20, 2020, 3:42pm UTC](https://forum.rasa.com/t/if-i-have-a-look-up-for-name-what-would-the-formfilling-be-from-text-or-from-entity/38247/3 "2020-12-20T15:42:20Z")

</div>

To answer your question about how to incorporate the [lookup table](https://rasa.com/docs/rasa/nlu-training-data/#lookup-tables) into your form. You should use `from_entity`.

However, I’d recommend using both. You can order them as `from_entity` followed by `from_text`. In that way, even if the user’s name is not recognized as an entity, you can still handle the text provided by the user. It’d be an awfully frustrating experience if your name was not recognized.

For example,

```auto

forms:
  your_form:
    slot_name:
    - type: from_entity
      entity: name
    - type: from_text

```

---

<div class="post-metadata">

**Author:** ![faiza\_conte](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@faiza\_conte](https://forum.rasa.com/u/faiza_conte)\
**Post date:** [December 21, 2020, 3:35am UTC](https://forum.rasa.com/t/if-i-have-a-look-up-for-name-what-would-the-formfilling-be-from-text-or-from-entity/38247/4 "2020-12-21T03:35:55Z")

</div>

Thanks @kearnsw

---

<div class="post-metadata">

**Author:** ![faiza\_conte](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@faiza\_conte](https://forum.rasa.com/u/faiza_conte)\
**Post date:** [December 21, 2020, 3:36am UTC](https://forum.rasa.com/t/if-i-have-a-look-up-for-name-what-would-the-formfilling-be-from-text-or-from-entity/38247/5 "2020-12-21T03:36:10Z")

</div>

Thanks @marcos.allysson

---

<div class="post-metadata">

**Author:** ![faiza\_conte](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@faiza\_conte](https://forum.rasa.com/u/faiza_conte)\
**Post date:** [December 21, 2020, 3:48am UTC](https://forum.rasa.com/t/if-i-have-a-look-up-for-name-what-would-the-formfilling-be-from-text-or-from-entity/38247/6 "2020-12-21T03:48:28Z")

</div>

@marcos.allysson…do u know how to solve this. why is this error occurs,mostly i see this error with rasa core rest channel why is that?

 ![Screenshot (426)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/137891a0221bccff45b634d92bb7a90e8ba4ed7c.png) ![Screenshot (427)](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/f44ba1edd3f787a8e40e3ef71aaf475a29b106bf.png)
