# Slot not working?

**URL:** <https://forum.rasa.com/t/slot-not-working/54867>\
**Category:** Rasa Open Source\
**Created:** [August 16, 2022, 8:12pm UTC](https://forum.rasa.com/t/slot-not-working/54867 "2022-08-16T20:12:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![iperich](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/iperich/32/21234_2.png) [@iperich](https://forum.rasa.com/u/iperich)\
**Post date:** [August 16, 2022, 8:12pm UTC](https://forum.rasa.com/t/slot-not-working/54867/1 "2022-08-16T20:12:32Z")

</div>

Hi everybody, I have the following story:

```auto
- story: first_questions
  steps:
  - intent: greet
  - action: greet_client
  - intent: yes
  - action: first_form
  - active_loop: first_form
  - action: set_score
  - slot_was_set:
    - grave: true
  - action: utter_other_sym

```

the form executes ok, the action set\_score sets the slot “grave” to True correctly when tested (checked in rasa interactive) but the action utter\_other\_sym never triggers, rasa just **wants to run ‘action\_default\_fallback’**.

the slot definition:

```auto
  grave:
    type: bool
    influence_conversation: true
    mappings:
    - type: custom

```

What I’m doing wrong?

Thanks in advice

---

<div class="post-metadata">

**Author:** ![iperich](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/iperich/32/21234_2.png) [@iperich](https://forum.rasa.com/u/iperich)\
**Post date:** [August 17, 2022, 1:28pm UTC](https://forum.rasa.com/t/slot-not-working/54867/2 "2022-08-17T13:28:58Z")

</div>

I made another example, much simpler than this, and I have the same problem:

stories:

```auto
- story: happy path
  steps:
  - intent: go
  - action: test_action
  - slot_was_set:
     - test_slot: true
  - action: utter_it_works

```

actions:

```auto
class test_action(Action):

     def name(self) -> Text:
         return "test_action"

     def run(self, dispatcher: CollectingDispatcher,
             tracker: Tracker,
             domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:

         #dispatcher.utter_message(text="Hello World!")

         return [SlotSet("test_slot", True)]

```

domain:

```auto
actions:
  - test_action

slots:
  test_slot:
    type: bool
    influence_conversation: True
    mappings:
      - type: custom

```

This doesn’t work, the test\_action script does set the slot, but the slot\_was\_set doesn’t react. I was reading about the default RASA actions and **action\_extract\_slots** “runs after each user turn”, and in this case I’m setting the slot but there’s no user turn between the slot setting and the slot\_was\_set. Maybe that’s what’s wrong?

Thanks in advice.

---

<div class="post-metadata">

**Author:** ![rasa\_learner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rasa_learner/32/21721_2.png) [@rasa\_learner](https://forum.rasa.com/u/rasa_learner)\
**Post date:** [August 17, 2022, 1:40pm UTC](https://forum.rasa.com/t/slot-not-working/54867/3 "2022-08-17T13:40:50Z")

</div>

You can add a rule [Deactivating a Form](https://rasa.com/docs/rasa/forms/#deactivating-a-form) for what happens after the form submission.

---

<div class="post-metadata">

**Author:** ![iperich](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/iperich/32/21234_2.png) [@iperich](https://forum.rasa.com/u/iperich)\
**Post date:** [August 17, 2022, 6:50pm UTC](https://forum.rasa.com/t/slot-not-working/54867/4 "2022-08-17T18:50:20Z")

</div>

Hi, thanks for your response… but my problem is beyond the form, look at my second post, the same problem without form, it’s like **slot\_was\_set** is not seeing the setting of the slot

---

<div class="post-metadata">

**Author:** ![rasa\_learner](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rasa_learner/32/21721_2.png) [@rasa\_learner](https://forum.rasa.com/u/rasa_learner)\
**Post date:** [August 20, 2022, 3:09am UTC](https://forum.rasa.com/t/slot-not-working/54867/5 "2022-08-20T03:09:11Z")

</div>

@iperich You can use [rasa interactive](https://rasa.com/docs/rasa/writing-stories/#command-line-interactive-learning) to see what’s happening.

---

<div class="post-metadata">

**Author:** ![iperich](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/iperich/32/21234_2.png) [@iperich](https://forum.rasa.com/u/iperich)\
**Post date:** [August 25, 2022, 6:26pm UTC](https://forum.rasa.com/t/slot-not-working/54867/6 "2022-08-25T18:26:26Z")

</div>

Nothing worked, I tried a lot of things, and eventually it worked, when I declared all slots influence\_conversation = true and change the policies in config.yml letting only MemoizationPolicy active. Why it made a difference? Somebody knows?
