# "slot\_was\_set" in stories after activating a form

**URL:** <https://forum.rasa.com/t/slot-was-set-in-stories-after-activating-a-form/56596>\
**Category:** Feedback on Rasa Open Source\
**Created:** [December 19, 2022, 8:39am UTC](https://forum.rasa.com/t/slot-was-set-in-stories-after-activating-a-form/56596 "2022-12-19T08:39:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea\_maranesi](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@andrea\_maranesi](https://forum.rasa.com/u/andrea_maranesi)\
**Post date:** [December 19, 2022, 8:39am UTC](https://forum.rasa.com/t/slot-was-set-in-stories-after-activating-a-form/56596/1 "2022-12-19T08:39:41Z")

</div>

Hi, I’m using Rasa and I developed for educational purposes a chatbot whose code is here: [github link](https://github.com/andreamaranesi/rasa-chatbot-for-telegram)

I’m trying to understand the use of **slot\_was\_set** in stories after activating a form which requires a slot with **custom mapping**.

In my chatbot I have, for example, these slots:

```auto
stars:
    type: list
    influence_conversation: true
    mappings:
      - type: custom
        conditions:
          - active_loop: form_review
            requested_slot: stars

  set_restaurant_list:
    type: bool
    influence_conversation: true
    mappings:
      - type: custom

```

and I manage the activation and submission of the forms in this way:

```auto
- story: Input the average review (stars) for restaurants
    steps:
      - intent: stars
      - slot_was_set:
          - restaurant_type: "something"
      - action: action_reset_review
      - slot_was_set:
          - stars: null
      - slot_was_set:
          - set_restaurant_list: null
      - action: form_review
      - active_loop: form_review
      - slot_was_set:
          - stars: [4, 5]
      - slot_was_set:
          - requested_slot: null
      - active_loop: null
      - action: action_set_restaurant_list
      - action: action_give_last_restaurant_list

```

Using this “logic”, everything works perfectly. If instead I write the stories this other way

```auto
- story: Input the average review (stars) for restaurants
    steps:
      - intent: stars
      - slot_was_set:
          - restaurant_type: "something"
      - action: action_reset_review
      - slot_was_set:
          - stars: null
      - slot_was_set:
          - set_restaurant_list: null
      - action: form_review
      - active_loop: form_review
      - slot_was_set:
          - requested_slot: null
      - active_loop: null
      - action: action_set_restaurant_list
      - action: action_give_last_restaurant_list

```

removing the **slot\_was\_set** after submitting the form, the chatbot doesn’t work fine: in the middle of the conversation, it doesn’t reply to the user. (fallback prediction)

My question is, then, should I always put **slot\_was\_set** in the stories if I submit a form that is not managed by the RulePolicy?
