# RASA not filling in slots for entities detected by Spacy?

**URL:** <https://forum.rasa.com/t/rasa-not-filling-in-slots-for-entities-detected-by-spacy/24069>\
**Category:** Rasa Open Source\
**Created:** [January 28, 2020, 3:09pm UTC](https://forum.rasa.com/t/rasa-not-filling-in-slots-for-entities-detected-by-spacy/24069 "2020-01-28T15:09:50Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![saurabh-m523](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saurabh-m523/32/7887_2.png) [@saurabh-m523](https://forum.rasa.com/u/saurabh-m523)\
**Post date:** [February 26, 2020, 3:31pm UTC](https://forum.rasa.com/t/rasa-not-filling-in-slots-for-entities-detected-by-spacy/24069/13 "2020-02-26T15:31:26Z")

</div>

About this proxy, you could use a custom action which would simply do what you said. Put this custom action just before the form action in your stories, something like this:

```
## ask for flight info
* request_flight_info
  - action_fill_extracted_slots
  - flight_info_form
  - form{"name": "flight_info_form"}
  - form{"name": null}

```

Now in the custom action, extract the values of the entity `GPE` (look into [`get_latest_entity_values`](https://rasa.com/docs/rasa/api/rasa-sdk/#rasa_sdk.interfaces.Tracker.get_latest_entity_values)) and simply return slot set events to set the slot `origin` and `destination` with extracted values. This way when the form will activate, it’ll get those slots as filled and will not ask for it, otherwise it’ll ask.

---

_[View the full topic](https://forum.rasa.com/t/rasa-not-filling-in-slots-for-entities-detected-by-spacy/24069)._
