I have a form that, based on the answers from the previous questions, will set a categorical slot to one of 10 values, and these values will affect the story afterwards. So far in my story.yml file I have a slot_was_set
event like:
- slot_name: slot value
As some of the slot values will result in the same questions being asked afterwards, is it possible to have an array/list of the possible values that the slot could be set to in one story, so if the slot is set to one of these values it’ll continue with the correct story so I don’t have to have 10 similar stories. Something like:
story 1:
- slot_was_set:
- slot_name: [value1, value2, value3]
one story continues on from here...
story 2:
- slot_was_set:
- slot_name: [value4, value5]
another story continues on from here...
As a reference I’ve tried using lists with and without [ ] and neither seemed to work, and I’m using RASA version 2.1.0 and rasa_sdk version 2.1.2.