# One intent and multiple categorical slots

**URL:** <https://forum.rasa.com/t/one-intent-and-multiple-categorical-slots/46487>\
**Category:** Rasa Open Source\
**Created:** [August 3, 2021, 3:08pm UTC](https://forum.rasa.com/t/one-intent-and-multiple-categorical-slots/46487 "2021-08-03T15:08:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipemcg](https://avatars.discourse-cdn.com/v4/letter/f/919ad9/32.png) [@felipemcg](https://forum.rasa.com/u/felipemcg)\
**Post date:** [August 3, 2021, 3:08pm UTC](https://forum.rasa.com/t/one-intent-and-multiple-categorical-slots/46487/1 "2021-08-03T15:08:19Z")

</div>

Greetings community. I would like to get some advice for what i’m trying to do here.

I want my bot to execute an “action” over a certain “object”. For example, “insert a new ticket” where “insert” and "ticket” are categorical slots, each one with multiple possible values and influence\_conversation set to true. Depending on the entities extracted and slot sets, I will activate a form specific for that combination of values.

I’ve merged all into a single intent

```auto
nlu:
- intent: ask_action_object
  examples: |
      - (insert)[action] a new (ticket)[object]
      - (delete)[action] a (story)[object]

```

```auto
slots:
  action:
    type: categorical
    influence_conversation: true
    values:
    - insert
    - delete 
    - modify
    - show 
  object:
    type: categorical
    influence_conversation: true
    values:
    - ticket
    - story
    - activity 
    - list

```

The problem is that I can have a reasonable number of actions and objects, therefore I think I will need to write a story for every possible combination. Is there another way to implement this?

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [August 4, 2021, 7:29pm UTC](https://forum.rasa.com/t/one-intent-and-multiple-categorical-slots/46487/2 "2021-08-04T19:29:50Z")

</div>

Hi @felipemcg!

I am just suggesting you, for your use case as I not implement it before ok, so please.

Currenlty, you have two slots as I can see `action` and `objects` with type categorical, if in story we can use slot\_was\_set and we fetch the slot values from actions as we need to use return function as SlotSet and then we write the one story? Will it will solve our purpose?

---

<div class="post-metadata">

**Author:** ![felipemcg](https://avatars.discourse-cdn.com/v4/letter/f/919ad9/32.png) [@felipemcg](https://forum.rasa.com/u/felipemcg)\
**Post date:** [August 5, 2021, 12:33pm UTC](https://forum.rasa.com/t/one-intent-and-multiple-categorical-slots/46487/3 "2021-08-05T12:33:38Z")

</div>

Hello nik! thanks for your suggestion. Could you elaborate a little bit more on that idea? It’s not very clear to me
