# Using slot\_was\_set for List type slot in story

**URL:** <https://forum.rasa.com/t/using-slot-was-set-for-list-type-slot-in-story/44734>\
**Category:** Rasa Open Source\
**Created:** [June 17, 2021, 7:51am UTC](https://forum.rasa.com/t/using-slot-was-set-for-list-type-slot-in-story/44734 "2021-06-17T07:51:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![venushong667](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/venushong667/32/15414_2.png) [@venushong667](https://forum.rasa.com/u/venushong667)\
**Post date:** [June 17, 2021, 7:51am UTC](https://forum.rasa.com/t/using-slot-was-set-for-list-type-slot-in-story/44734/1 "2021-06-17T07:51:37Z")

</div>

Hi, I’m currently working on rasa that could work for form application, for example: filling leave form. In the domain file, I have the leaves form, slot and story defined as below PS: the time slot is for Duckling, and it will processed to dates string list [‘01/01/2021’, ‘02/01/2021’] in the validation\_leaves\_form

```auto
slots:
  time:
    type: any
    influence_conversation: false
  dates:
    type: list
    influence_conversation: true
  leave_type:
    type: text
    influence_conversation: true

```

```auto
leaves_form:
   required_slots:
     dates:
      - entity: time
        type: from_entity
     leave_type:
      - entity: leave_type
        type: from_entity

```

```auto
- story: Apply Leave Affirm
  steps:
  - intent: apply_leave
  - action: leaves_form
  - active_loop: leaves_form
  - slot_was_set:
    - dates: true
  - action: action_confirm_dates
  - intent: affirm
  - action: leaves_form
  - active_loop: null
  - action: confirm_leave

```

What I’m trying to do here is the user could ask for leave application, the bot would activate the form and ask the date, when user input a list of dates, it should trigger custom action ‘action\_confirm\_dates’ for confirmation, if user say yes, the form continue.

But the actual case that I encountered was it never trigger the ‘slot\_was\_set’ event, the conversation is broken when user filled in dates and leave\_type, it goes to default fallback.

I was tried the format that given from rasa-x historical conversation which defined as below.

```auto
  - slot_was_set:
    - dates: 
      - 01/01/2021

```

With this, it actually works sometimes, but the custom action will only trigger after the form is deactivated, which is different as what it stated in the documentation. While most of the time when I retrain it later without any changes, it goes broken again. I have no idea what is going on here.

Since I couldn’t find any example for List type slot and slot\_was\_set event in story, I got stuck here for weeks. Am I getting something wrong?

---

<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:** [June 17, 2021, 10:14am UTC](https://forum.rasa.com/t/using-slot-was-set-for-list-type-slot-in-story/44734/2 "2021-06-17T10:14:49Z")

</div>

@venushong667 Have you updated the pipeline? check this link: [Components](https://rasa.com/docs/rasa/components/#ducklingentityextractor)

**Tip:** If you followed everything and the code is perfect then delete all previously trained models, re-train and run.

---

<div class="post-metadata">

**Author:** ![venushong667](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/venushong667/32/15414_2.png) [@venushong667](https://forum.rasa.com/u/venushong667)\
**Post date:** [June 28, 2021, 3:53am UTC](https://forum.rasa.com/t/using-slot-was-set-for-list-type-slot-in-story/44734/3 "2021-06-28T03:53:24Z")

</div>

I managed to get it after delete all previous trained models, Thanks

---

<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:** [June 28, 2021, 9:13am UTC](https://forum.rasa.com/t/using-slot-was-set-for-list-type-slot-in-story/44734/4 "2021-06-28T09:13:53Z")

</div>

@venushong667 Great. Congrts, can you please closed this thread as a solution for others. Thanks
