# When I use several actions in a row, it gives different answers

**URL:** <https://forum.rasa.com/t/when-i-use-several-actions-in-a-row-it-gives-different-answers/47936>\
**Category:** Rasa Open Source\
**Created:** [September 23, 2021, 8:53am UTC](https://forum.rasa.com/t/when-i-use-several-actions-in-a-row-it-gives-different-answers/47936 "2021-09-23T08:53:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grigrigrigon](https://avatars.discourse-cdn.com/v4/letter/g/5daacb/32.png) [@grigrigrigon](https://forum.rasa.com/u/grigrigrigon)\
**Post date:** [September 23, 2021, 8:53am UTC](https://forum.rasa.com/t/when-i-use-several-actions-in-a-row-it-gives-different-answers/47936/1 "2021-09-23T08:53:12Z")

</div>

In the story part, cannot make the right decision after 4-5 actions and either does not give the rest of the answers at all or answers with other utters that I do not use. I’ve had this problem before, so is there a limit we should keep our stories? Does get confused when creates a story that is too long?

![Adsız](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/0/c/0cac6757a0f05afb2b8a5a87ff4df4dbfe26271b.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 23, 2021, 9:31am UTC](https://forum.rasa.com/t/when-i-use-several-actions-in-a-row-it-gives-different-answers/47936/2 "2021-09-23T09:31:38Z")

</div>

@grigrigrigon Hi, I must say this is not a right approach for your use-case (Hope you understand), can I request to create different stories for the different utterance, but yes you can take min 2 or 3 which are related else you should create the different stories for the same.

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [September 23, 2021, 11:13am UTC](https://forum.rasa.com/t/when-i-use-several-actions-in-a-row-it-gives-different-answers/47936/3 "2021-09-23T11:13:34Z")

</div>

Read about the [TED Policy](https://rasa.com/docs/rasa/policies#ted-policy), especially its `max_history` attribute:

> This parameter controls how much dialogue history the model looks at to decide which action to take next. Default `max_history` for this policy is `None`, which means that the complete dialogue history since session restart is taken into account.
> 
> If you want to limit the model to only see a certain number of previous dialogue turns, you can set `max_history` to a finite value.
> 
> Please note that you should pick `max_history` carefully, so that the model has enough previous dialogue turns to create a correct prediction.
> 
> Here is how the config would look like:
> 
> ```auto
> policies:
> - name: TEDPolicy
> max_history: 8
> 
> ```

* * *

Furthermore, why are you doing this? There is probably a better way to do that, like merging utterances, or, if you can’t, using a single Custom Action that displays them:

```python
def run():
    dispatcher.utter_message(response = "utter_foo")
    dispatcher.utter_message(response = "utter_bar")
    dispatcher.utter_message(response = "utter_baz")
    # etc...

    return []

```
