# NLU not filling in slots

**URL:** <https://forum.rasa.com/t/nlu-not-filling-in-slots/11334>\
**Category:** Rasa Open Source\
**Created:** [June 12, 2019, 4:06am UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334 "2019-06-12T04:06:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimbaM](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@SimbaM](https://forum.rasa.com/u/SimbaM)\
**Post date:** [June 12, 2019, 4:06am UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334/1 "2019-06-12T04:06:42Z")

</div>

I have a form that I use for the bot to gather details that it will use to query . If the user provides details in their initial statement (like in my case, select the property they are interested in), according to the [documentation](http://rasa.com/docs/rasa/core/slots/#slots-set-from-nlu), the NLU is supposed to pick up the entity from the intent and since it has the same name with the slot, it is supposed to also fill the slot. For some reason, this is not happening for me. Instead, this is what I get.

Current slots: selected\_property: None

May you please help…

Below are snippets of my nlu.md, domain.yml and stories.md files relevant to my question.

` **nlu.md** `

## intent:request\_for\_price\_info

- How much is the [one bed](selected\_property:One Bedroom)
- How much for the [one bedroom](selected\_property:One Bedroom)

` **domain.yml** `

intents:

- request\_for\_price\_info

slots: selected\_property: auto\_fill: false type: unfeaturized

forms:

- property\_form

` **stories.md** `

## Story from conversation

- request\_for\_price\_info{“selected\_property”:“One Bedroom”}
  - utter\_greet
  - utter\_property\_info

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 12, 2019, 5:02am UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334/2 "2019-06-12T05:02:25Z")

</div>

Hi @SimbaM

your story is missing some crucial things. Try it with this one:

```
 * request_for_price_info{“selected_property”:“One Bedroom”}
- property_form
- form{"name": "property_form"}
- slot{"requested_slot": "selected_property"}
- form{"name": null}

```

Basically, with the first line, you are telling rasa to accept an entity while triggering the intent. The second line starts the form and validates any previously given entities for fitting into slots.

Further I’d recommend you to read:

> **[Forms](https://rasa.com/docs/rasa/forms/)**
>
> Follow a rule-based process of information gathering using forms in open source bot framework Rasa.

Hope that helps, tell me if you need more help!

Regards

---

<div class="post-metadata">

**Author:** ![SimbaM](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@SimbaM](https://forum.rasa.com/u/SimbaM)\
**Post date:** [June 13, 2019, 3:34am UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334/3 "2019-06-13T03:34:12Z")

</div>

Thanks Julian… I however tried what you suggested and it still didn’t work. i am really wondering where i am missing it as I am doing what is written in the docummentation

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 13, 2019, 4:50am UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334/4 "2019-06-13T04:50:40Z")

</div>

Okay, let’s try something else. Start the bot by running:

`rasa run -vv -m <path_to_model> --endpoints endpoints.yml --credentials credentials.yml --enable-api`

After that, do a POST request with the body:

```
{
	"text": "How much for the one bedroom ?"
}

```

to

`http://localhost:5005/model/parse`

and post the result here! We could then at least figure out from where the problem comes.

---

<div class="post-metadata">

**Author:** ![SimbaM](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@SimbaM](https://forum.rasa.com/u/SimbaM)\
**Post date:** [June 13, 2019, 10:42am UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334/5 "2019-06-13T10:42:41Z")

</div>

Please find below the output:

C:\Temp\curl\bin\>curl -X POST -d “{ “text”: “How much for the one bedroom ?”}” [http://localhost:5005/model/parse](http://localhost:5005/model/parse) {“intent”:{“name”:“request\_for\_price\_info”,“confidence”:0.6654813429432856},“entities”:[{“start”:17,“end”:28,“value”:“One Bedroom”,“entity”:“selected\_property”,“confidence”:0.9681512467272982,“extractor”:“CRFEntityExtractor”,“processors”:[“EntitySynonymMapper”]},{“start”:17,“end”:20,“text”:“one”,“value”:1,“confidence”:1.0,“additional\_info”:{“value”:1,“type”:“value”},“entity”:“number”,“extractor”:“DucklingHTTPExtractor”}],“intent\_ranking”:[{“name”:“request\_for\_price\_info”,“confidence”:0.6654813429432856},{“name”:“provide\_property\_choice”,“confidence”:0.05945223343615485},{“name”:“request\_to\_book”,“confidence”:0.059380235504145513},{“name”:“greet”,“confidence”:0.0453533163422947},{“name”:“provide\_number\_of\_guests”,“confidence”:0.03962403929518929},{“name”:“decline\_to\_proceed\_with\_booking”,“confidence”:0.027997657162340664},{“name”:“suspend\_conversation”,“confidence”:0.02268004011547763},{“name”:“request\_for\_location\_info”,“confidence”:0.02191273176359601},{“name”:“goodbye”,“confidence”:0.019958487362733607},{“name”:“provide\_booking\_period”,“confidence”:0.014433768933692326}],“text”:“How much for the one bedroom ?”}

Note that I changed the name of the form to ‘booking form’ and below is what the associated story looks like:

## Story 00020

- request\_for\_price\_info{“selected\_property”:“One Bedroom”}
  - booking\_form
  - form{“name”: “booking\_form”}
  - slot{“requested\_slot”: “selected\_property”}
  - form{“name”: null}
  - utter\_greet\_back
  - utter\_intro
  - utter\_provide\_available\_property\_info
  - utter\_rates
  - form: booking\_form
  - slot{“requested\_slot”: “num\_of\_people”}

- provide\_number\_of\_guests{“num\_of\_people”:“a couple and a baby”,“number”:2}
  - booking\_form
  - slot{“num\_of\_people”:“a couple and a baby”}
  - slot{“requested\_slot”:“booking\_period”}

- provide\_booking\_period{“time”:{“to”:“2019-08-08T00:00:00.000-07:00”,“from”:“2019-08-02T00:00:00.000-07:00”}}
  - utter\_slots\_values

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![rbossie](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rbossie](https://forum.rasa.com/u/rbossie)\
**Post date:** [June 13, 2019, 12:20pm UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334/6 "2019-06-13T12:20:33Z")

</div>

@SimbaM Could you try to add to your domain:

> entities:
> 
> - selected\_property

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 13, 2019, 2:07pm UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334/7 "2019-06-13T14:07:41Z")

</div>

This actually means that everything is parsed correctly and the problem is somewhere else.

As @rbossie correctly stated out, it might be the case, that you forgot to define the entity in your domain.yml but I think you would have seen an error then.

Another option now is to post us the action servers output by running a separate action server:

`rasa run actions -vv`

Because actually the slot simply does not get filled… so we need to check:

```
slot_mapping
slot_validation
the slot configuration in domain.yml

```

If you could give us this information, we could help.

---

<div class="post-metadata">

**Author:** ![SimbaM](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@SimbaM](https://forum.rasa.com/u/SimbaM)\
**Post date:** [June 14, 2019, 9:03am UTC](https://forum.rasa.com/t/nlu-not-filling-in-slots/11334/8 "2019-06-14T09:03:46Z")

</div>

Thanks @JulianGerhard and @rbossie I picked up where my issue was. I had issues with the slot\_mapping and also made some corrections to my domail.yml file. It is now working!

Thanks Again! 🙂
