I had read the documentation on Stories and looked up tutorials but I could not find an explanation. I have no idea what the expected behaviour of stories is supposed to be.
I have these 4 stories and 1 checkpoint:
- story: provide recipe path
steps:
- checkpoint: provide_recipe
- action: utter_provide_recipe
- story: happy neutral path want recipe
steps:
- intent: greet
- action: utter_greet
- action: utter_greet_follow_up
- intent: mood_great_or_neutral
- action: utter_happy
- action: utter_want_recipe
- intent: affirm
- slot_was_set:
- want_recipe: true
- checkpoint: provide_recipe
- story: happy neutral path dont want recipe
steps:
- intent: greet
- action: utter_greet
- action: utter_greet_follow_up
- intent: mood_great_or_neutral
- action: utter_happy
- action: utter_want_recipe
- intent: deny
- slot_was_set:
- want_recipe: false
- story: sad path want recipe
steps:
- intent: greet
- action: utter_greet
- action: utter_greet_follow_up
- intent: mood_unhappy
- action: utter_sympathy
- action: utter_want_recipe
- intent: affirm
- slot_was_set:
- want_recipe: true
- checkpoint: provide_recipe
- story: sad path dont want recipe
steps:
- intent: greet
- action: utter_greet
- action: utter_greet_follow_up
- intent: mood_unhappy
- action: utter_sympathy
- action: utter_want_recipe
- intent: deny
- slot_was_set:
- want_recipe: false
I had assumed that stories strictly control the flow of the conversation, until I came across these two posts Cant we skip and jump to some intent within a story and Story Flow , and they seem to imply that conversation is not meant to strictly follow the story paths. However, as mentioned at the beginning of the post, I could not find any documentation explaining the expected behaviour of stories.
In my project, in any story path, no matter which step of the story I’m at, if I type “yes” or any other affirmative word, the chatbot replies with utter_want_recipe.
Similarly, if I’m on “sad path want recipe” and type “im fine”, the chatbot responds with utter_happy; if I’m on “happy neutral path want recipe” and type “sad”,the chatbot responds with utter_sympathy.
My stories appear to be acting like rules instead of stories. Am I doing something wrong, or is this supposed to happen?