# Stop rasa to respond from middle of the story

**URL:** <https://forum.rasa.com/t/stop-rasa-to-respond-from-middle-of-the-story/21189>\
**Category:** Rasa Open Source\
**Created:** [November 13, 2019, 8:21am UTC](https://forum.rasa.com/t/stop-rasa-to-respond-from-middle-of-the-story/21189 "2019-11-13T08:21:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankur1708](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ankur1708/32/5908_2.png) [@ankur1708](https://forum.rasa.com/u/ankur1708)\
**Post date:** [November 13, 2019, 8:21am UTC](https://forum.rasa.com/t/stop-rasa-to-respond-from-middle-of-the-story/21189/1 "2019-11-13T08:21:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![k1m](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/k1m/32/8518_2.png) [@k1m](https://forum.rasa.com/u/k1m)\
**Post date:** [November 13, 2019, 3:25pm UTC](https://forum.rasa.com/t/stop-rasa-to-respond-from-middle-of-the-story/21189/2 "2019-11-13T15:25:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ankur1708](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ankur1708/32/5908_2.png) [@ankur1708](https://forum.rasa.com/u/ankur1708)\
**Post date:** [November 14, 2019, 7:16pm UTC](https://forum.rasa.com/t/stop-rasa-to-respond-from-middle-of-the-story/21189/3 "2019-11-14T19:16:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![k1m](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/k1m/32/8518_2.png) [@k1m](https://forum.rasa.com/u/k1m)\
**Post date:** [November 14, 2019, 8:28pm UTC](https://forum.rasa.com/t/stop-rasa-to-respond-from-middle-of-the-story/21189/4 "2019-11-14T20:28:04Z")

</div>

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

If it does, thats weird. 🤨

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

> **[Writing Conversation Data](https://rasa.com/docs/rasa/writing-stories/#using-interactive-learning)**
>
> An open source machine learning framework for automated text and voice-based conversations
