# Is listing potential values for slots necessary?

**URL:** <https://forum.rasa.com/t/is-listing-potential-values-for-slots-necessary/42240>\
**Category:** Rasa Open Source\
**Created:** [April 8, 2021, 3:47pm UTC](https://forum.rasa.com/t/is-listing-potential-values-for-slots-necessary/42240 "2021-04-08T15:47:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zjntmo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zjntmo/32/16492_2.png) [@zjntmo](https://forum.rasa.com/u/zjntmo)\
**Post date:** [April 8, 2021, 3:47pm UTC](https://forum.rasa.com/t/is-listing-potential-values-for-slots-necessary/42240/1 "2021-04-08T15:47:20Z")

</div>

I see in the documentation that any slot value not explicitly declared within the domain will be mapped to \_\_ other\_\_. If my slot does not impact the conversation, is it necessary to list all of the potential values? For example, I have a “language” slot which is currently only set to either English or Spanish. Will there be unexpected behavior if I do not list

`values:`

```
- English 
- Spanish

```

within my domain?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [April 9, 2021, 7:42am UTC](https://forum.rasa.com/t/is-listing-potential-values-for-slots-necessary/42240/2 "2021-04-09T07:42:38Z")

</div>

> If my slot does not impact the conversation, is it necessary to list all of the potential values?

Nope! If your slot does not impact the conversation (users might say spanish or english, but it doesn’t change the story), you can make the slot of type `any` instead of `categorical`. Then you won’t have to list values. Hope that helps!

---

<div class="post-metadata">

**Author:** ![zjntmo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zjntmo/32/16492_2.png) [@zjntmo](https://forum.rasa.com/u/zjntmo)\
**Post date:** [April 13, 2021, 10:56pm UTC](https://forum.rasa.com/t/is-listing-potential-values-for-slots-necessary/42240/3 "2021-04-13T22:56:55Z")

</div>

> you can make the slot of type `any` instead of `categorical` . Then you won’t have to list values

Does this mean if it remains ‘categorical’ we must list all potential values?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [April 14, 2021, 7:08am UTC](https://forum.rasa.com/t/is-listing-potential-values-for-slots-necessary/42240/4 "2021-04-14T07:08:22Z")

</div>

That’s correct – by listing it as categorical, you’re telling the dialogue manager that the value matters and should be taken into account. If you don’t tell it what the possible values could be, you can’t write stories based on those values to train it on.

---

<div class="post-metadata">

**Author:** ![zjntmo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zjntmo/32/16492_2.png) [@zjntmo](https://forum.rasa.com/u/zjntmo)\
**Post date:** [April 14, 2021, 3:23pm UTC](https://forum.rasa.com/t/is-listing-potential-values-for-slots-necessary/42240/5 "2021-04-14T15:23:02Z")

</div>

> If you don’t tell it what the possible values could be, you can’t write stories based on those values

Oh, I thought I could just check slot values with slot\_was\_set! Thanks for letting me know

I also interpreted the “influence conversation” portion as “should the bot try and understand this slot within context and use it in selecting a response”, meaning it still would if I explicitly used it in story training but it would not attempt to on its own.
