# Can't set Slot

**URL:** <https://forum.rasa.com/t/cant-set-slot/23167>\
**Category:** Rasa Open Source\
**Created:** [January 7, 2020, 2:52pm UTC](https://forum.rasa.com/t/cant-set-slot/23167 "2020-01-07T14:52:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 7, 2020, 2:52pm UTC](https://forum.rasa.com/t/cant-set-slot/23167/1 "2020-01-07T14:52:28Z")

</div>

Hey folks! I somehow can’t set slots. And I have no idea what I’m doing wrong. Here are my files:

![Unbenannt](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/f9abe72a4e323617706fd3629bc66e0497087828.png)

![Unbenannt3](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/c9f9cb7219c15854c9a00c0c61f1e0bbbcfa850d.png)

The bot prints out “utter\_sharepoint” flawlessly, but it seems to just ignore the

> - slot{“category1”: “sharepoint”}

Any help is appreachiated.

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 5:12am UTC](https://forum.rasa.com/t/cant-set-slot/23167/2 "2020-01-08T05:12:45Z")

</div>

Have you created an entity with the same name as the slot? If not, try doing it.

![2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/6/6b9e43b9c151937499f650494348c3b9a0e69810.png)

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 8, 2020, 8:21am UTC](https://forum.rasa.com/t/cant-set-slot/23167/3 "2020-01-08T08:21:52Z")

</div>

Thank you for your answer. Yes I did. I tried with and without and everything I could think of. Here are some pictures as I can’t format the text here properly:

![Unbenannt](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/f/f9abe72a4e323617706fd3629bc66e0497087828.png)

![Unbenannt3](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/c9f9cb7219c15854c9a00c0c61f1e0bbbcfa850d.png)

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 9:00am UTC](https://forum.rasa.com/t/cant-set-slot/23167/4 "2020-01-08T09:00:17Z")

</div>

Do you think the indentation might be a problem??. This image is from [Domain](https://rasa.com/docs/rasa/core/slots/#slots-set-by-actions)

![3](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/12d1b423074d7b6a4018efc26ec76863149e787f.png)

Compare it with yours.

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 8, 2020, 9:15am UTC](https://forum.rasa.com/t/cant-set-slot/23167/5 "2020-01-08T09:15:33Z")

</div>

While trying to change that I noticed that Rasa X seems to display the indentation differently than it is in the domain file itself. My screenshot is from Rasa X while in the Domain file it looks exactly like yours. When I try to put the value items at the same level as “values:” in Rasa X they jump back to their previous location as soon as I hit save.

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 9:21am UTC](https://forum.rasa.com/t/cant-set-slot/23167/6 "2020-01-08T09:21:35Z")

</div>

Is it the same for ‘unknown’ value of category1??

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 8, 2020, 9:25am UTC](https://forum.rasa.com/t/cant-set-slot/23167/7 "2020-01-08T09:25:47Z")

</div>

It’s the same for all values. The domain file itself looks like this:

![Unbenannt](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/3c613fe744ea738f5938a1759d0b1a518d1820ee.png)

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 9:32am UTC](https://forum.rasa.com/t/cant-set-slot/23167/8 "2020-01-08T09:32:28Z")

</div>

I meant same for the action and the story. i.e

- first\_cat\_unknown{category:unkown} slot… utter\_unkown…

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 8, 2020, 9:35am UTC](https://forum.rasa.com/t/cant-set-slot/23167/9 "2020-01-08T09:35:41Z")

</div>

Unfortnunately yes.

 ![Unbenannt](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/338bf61baefa3f6d5b23eea7ddc581c4f0669496.png)

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 9:40am UTC](https://forum.rasa.com/t/cant-set-slot/23167/10 "2020-01-08T09:40:13Z")

</div>

I don’t know if this is done with categorical slots or not but did you label the entities in your nlu file?? example: i want leave on 31 dec.here (date) is a labeled entity from the whole intent.

Did you train your ‘unknown’ entity??

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 8, 2020, 9:50am UTC](https://forum.rasa.com/t/cant-set-slot/23167/11 "2020-01-08T09:50:23Z")

</div>

I did not but I will try that now. Thanks! I’ll report back if it worked. But I’m unsure if I would have to change the structure of my slots and stories then.

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 9:53am UTC](https://forum.rasa.com/t/cant-set-slot/23167/12 "2020-01-08T09:53:17Z")

</div>

I don’t think so you would need to change the structure of slots and stories. What the labelling does is that it will just train the model to recognize ‘unknown’ or ‘sharepoint’ as an entity/slot.

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 8, 2020, 10:12am UTC](https://forum.rasa.com/t/cant-set-slot/23167/13 "2020-01-08T10:12:29Z")

</div>

It seems to work through training! But that way it would not be possible for rasa to differenciate between category level 1 e.g.“print”. And category level 2 e.g. “print\_no\_connection” or “print\_no\_paper” where category level 1 is already set as “print”. For example a user would write “I can not connect to the printer” Rasa could not categorize precisely enough as I believe I can not link “connect” and “printer” to be part of “print\_no\_connection”. I could just link “printer” to category level 1 “print”. Does that make sense?

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 10:22am UTC](https://forum.rasa.com/t/cant-set-slot/23167/14 "2020-01-08T10:22:04Z")

</div>

I’m sorry, I’m not able to understand your problem. Won’t you have two different entities/slots for category 1 and category 2?

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 8, 2020, 10:32am UTC](https://forum.rasa.com/t/cant-set-slot/23167/15 "2020-01-08T10:32:46Z")

</div>

My goal is to provide a helpdesk bot which is going to help users with common problems and create a categorized ticket when it can not help. We have different helpdesk emloyees for different areas e.g. print, server, network. So when the ticket is beeing created I want it to be already categorized depending on the users question. It would not be a problem to just have one category “print” but I would like to provide my colleagues with more information. I just realize that I may misunderstand the usage of the categories. I thought that I could split the tree of possible stories by going through different category levels where each level is a little more precise than the one before. If I understand right now, the slots can basically just hold the information which the user inputs? So if the user would not write exactly “print” then he can never set the slot “category1” as “print” but just as any part of what he actually wrote?

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 10:41am UTC](https://forum.rasa.com/t/cant-set-slot/23167/16 "2020-01-08T10:41:09Z")

</div>

Yes exactly, the input needs to be same. BUT you can train the model to identify different words which are similar in meaning to “print”. I don’t know in your application, what words or phrases or sentences can have similar meaning as “print”, but you get my point, right?

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 8, 2020, 10:44am UTC](https://forum.rasa.com/t/cant-set-slot/23167/17 "2020-01-08T10:44:11Z")

</div>

Yes I get it. Thank you! You helped me a lot.

---

<div class="post-metadata">

**Author:** ![varunsapre10](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/varunsapre10/32/6520_2.png) [@varunsapre10](https://forum.rasa.com/u/varunsapre10)\
**Post date:** [January 8, 2020, 10:47am UTC](https://forum.rasa.com/t/cant-set-slot/23167/18 "2020-01-08T10:47:23Z")

</div>

You’re very welcome. I’m glad I was able to help you.

---

<div class="post-metadata">

**Author:** ![Xentrax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/xentrax/32/6378_2.png) [@Xentrax](https://forum.rasa.com/u/Xentrax)\
**Post date:** [January 10, 2020, 10:42am UTC](https://forum.rasa.com/t/cant-set-slot/23167/19 "2020-01-10T10:42:27Z")

</div>

Hey! Thanks again for your help. I’d have one more question. I’m asking the user: “Please explain your problem” so the next input would be the explanation of the problem which could be anything. Therefore I can not extract it through training my model. I’d have to set it in the story I believe. Example (I know it’s wrong):

- utter\_what\_is\_your\_problem

- slot{“message\_to\_support”}
  - action\_send\_ticket

How would the story and domain file have to look like in order for me to be able to grab the slots value and use it in my action?

---

<div class="post-metadata">

**Author:** ![Mappi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mappi/32/6579_2.png) [@Mappi](https://forum.rasa.com/u/Mappi)\
**Post date:** [January 10, 2020, 11:22am UTC](https://forum.rasa.com/t/cant-set-slot/23167/20 "2020-01-10T11:22:40Z")

</div>

You don’t need to put everything in slots to use it. In this case, you could just take the entire user message and send it to your support. You can create a generic intent in times you need to retrieve a single slot value.

The story would be something like:

```
- utter_what_is_your_problem
* inform
- action_send_ticket
```

[Next page](https://forum.rasa.com/t/cant-set-slot/23167.md?page=2)
