# How to handle failed\_stories in Evaluating core models

**URL:** <https://forum.rasa.com/t/how-to-handle-failed-stories-in-evaluating-core-models/20975>\
**Category:** Rasa Open Source\
**Created:** [November 6, 2019, 1:42pm UTC](https://forum.rasa.com/t/how-to-handle-failed-stories-in-evaluating-core-models/20975 "2019-11-06T13:42:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaitanya](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Chaitanya](https://forum.rasa.com/u/Chaitanya)\
**Post date:** [November 6, 2019, 1:42pm UTC](https://forum.rasa.com/t/how-to-handle-failed-stories-in-evaluating-core-models/20975/1 "2019-11-06T13:42:47Z")

</div>

How to handle failed\_stories in Evaluating core models

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [November 6, 2019, 5:41pm UTC](https://forum.rasa.com/t/how-to-handle-failed-stories-in-evaluating-core-models/20975/2 "2019-11-06T17:41:05Z")

</div>

I may need more information from you but generally you can create a test stories file say called `e2e_stories.md` for example with something like this:

This first story isn’t right so it would give me an error on tests

```auto
## bot challenge
* bot_challenge: are you a bot?
  - utter_bot

## GREETINGS
* greet: hello
  - action_utter_greet

## GOODBYES
* goodbye: bye
  - action_utter_goodbye

```

I can test it two different ways:

1. `rasa test --stories e2e_stories.md --e2e` which will run and then create a results folder and I can look at the `failed_stories.md` to see what it looks like:

So in this case it tells us that it should be `utter_iamabot` and not `utter_bot` so we could fix that and retry.

```auto
## bot challenge
* bot_challenge: are you a bot?
    - utter_bot <!-- predicted: utter_iamabot -->
    - action_listen <!-- predicted: utter_iamabot -->

```

1. You can run the same command but add the additional option to it `--fail-on-prediction-errors` which will fail and not write the results and will give you the similar error in the console, it is good for using with Travis and such.

Let me know if you have follow up questions or want to provide more context to your issue.

Thanks

---

<div class="post-metadata">

**Author:** ![Chaitanya](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@Chaitanya](https://forum.rasa.com/u/Chaitanya)\
**Post date:** [November 8, 2019, 7:45am UTC](https://forum.rasa.com/t/how-to-handle-failed-stories-in-evaluating-core-models/20975/3 "2019-11-08T07:45:20Z")

</div>

Hi @btotharye , Thanks for response. There are hundreds of intents are there. Writing end to end stories is difficult.

I created an insurance chatbot. It is working good. After that I have used a dialogflow small talk . Then the bot is giving the default fall back action for all the intents. If I use small talk alone It is working. But combined with insurance bot stories, that problem occurs.Here it is the failed stories in evaluated core model. [failed\_stories.md](https://forum.rasa.com/uploads/short-url/rqnXajXdFWsCgigrLjwOBAlWRDH.md) (430 Bytes)

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [November 8, 2019, 11:35am UTC](https://forum.rasa.com/t/how-to-handle-failed-stories-in-evaluating-core-models/20975/4 "2019-11-08T11:35:28Z")

</div>

Well based on those intent errors I would investigate them and their stories and ensure they work how they should, those 2 apparently don’t appear to be working right.
