Stop rasa to respond from middle of the story

Hi,

I have a story like this

story_1 path

  • intent_1
    • action_1
    • utter_1
    • utter_2
  • yes
    • utter_3

story_2 path

  • intent_1
    • action_1
    • utter_1
    • utter_2
  • no
    • utter4

intent:yes

  • yes

intent:no

  • no

Now, if user types “yes” at the beginning of conversation, he gets utter_3 which is in the middle of story_1. I don’t want this behaviour. I want rasa to respond only when user intent matches the beginning of the story.

How can I accomplish this using config/API?

One solution would be to add utter_5 to your stories.md like this:

#story 3    
* yes
  - utter_5

#story 4
* no
  - utter_5

If you add utter_5 which would say something like “Hi, how can i help you?” or “I can help you with these things”(and use buttons). Simply this would guide user to the right path.

Do you think this would solve your problem?

hi @k1m,

it solved the original problem but regressed the flow.

Now when user type intent 1 and then type yes, i expect utter_3. But rasa triggering utter_5. Basically, the story with single intent (yes) is getting preference over intent (yes) in the story everytime.

Does the bot run action_1, utter_1, utter_2 after user types intent 1?

If it does, thats weird. :face_with_raised_eyebrow:

Run rasa interactive to help the bot understand how the conversation should go. I think this would be the best solution for this problem. :+1: