# Bot repeats action\_listen - Augmentation not working?

**URL:** <https://forum.rasa.com/t/bot-repeats-action-listen-augmentation-not-working/20921>\
**Category:** Rasa Open Source\
**Created:** [November 5, 2019, 12:59pm UTC](https://forum.rasa.com/t/bot-repeats-action-listen-augmentation-not-working/20921 "2019-11-05T12:59:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria.p](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@maria.p](https://forum.rasa.com/u/maria.p)\
**Post date:** [November 5, 2019, 12:59pm UTC](https://forum.rasa.com/t/bot-repeats-action-listen-augmentation-not-working/20921/1 "2019-11-05T12:59:21Z")

</div>

I’ve currently started a bot project and work on a minimal example.

My bot has 3 stories:

```
## story 01

*bot.name
    - utter_bot.name

## story 02

*hello
    - utter_hello
	
## story 03
*hello
    - utter_hello
*bot.name
    - utter_bot.name

```

Basically, Story one and two define a reaction to two different intents. Story three also shows, that story 1 and 2 can be glued together.

My config:

> ```
> language: de
> pipeline: supervised_embeddings
> policies:
> - name: MemoizationPolicy
> - name: KerasPolicy
> - name: MappingPolicy
> 
> ```

When i run the bot and replicate the stories, it only answers if the story mathces exactly. So, following conversations can happen:

- Hi
- Hello
- What’s your name?
- My name is Bot.

or (I have to restart the bot for this conversation)

- What’s your name?
- My name is Bot.

After these lines, no matter what I type, the bot always reacts with action\_listen. When I debug, I see that for the first time the MemoizationPolicy jumps in and chooses correct reaction, but when the intent is repeated, it says “There is no memorised next action” and falls to keras\_policy.

I want him to be able to loop my stories. Like answer to “Hi” several times or first tell the name and then answer to ‘Hi’. It seems however, that it only memorises exact stories, as if augmentation were not working (isn’t it supposed to glue my stories in several possible ways?).

Also I don’t understand, why it is not the problem for the Bot from Rasa Getting Started tutorial (the one with a picture to cheer up). You can chat with him much longer, repeating the same intents several times and getting an answer.

I use the same configuration (or at least I mean to use the same configuration, might I have overlooked something?) and the Tutorial bot doesn’t have significantly more trainigs data. It also remembers 5 last actions. What is the difference then?

P.S. I suppose I could have achieved the desired behaviour if I set max\_history = 1 for “MemoizationPolicy”. However, I don’t want to do it right now, because I’m not sure it won’t get in the way later, when I design complex stories for the Bot. I’s rather see augmentation working properly so that my bot reaction won’t be confused by previous states.

I would be really greatful for some input.

P.P.S. This issue looks very similar [Actions not working - #3 by heillcome](http://forum.rasa.com/t/actions-not-working/14848/3)

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [November 5, 2019, 1:10pm UTC](https://forum.rasa.com/t/bot-repeats-action-listen-augmentation-not-working/20921/2 "2019-11-05T13:10:49Z")

</div>

Hi there, can you try using the `AugmentedMemoizationPolicy` instead of the `MemoizationPolicy`?

---

<div class="post-metadata">

**Author:** ![maria.p](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@maria.p](https://forum.rasa.com/u/maria.p)\
**Post date:** [November 5, 2019, 1:45pm UTC](https://forum.rasa.com/t/bot-repeats-action-listen-augmentation-not-working/20921/3 "2019-11-05T13:45:56Z")

</div>

Perfect! It worked. The name suggests, of course 🙂Many thanks, especially for such a quick reply.

Any ideas why the `AugmentedMemoizationPolicy` was necessary and not the `MemoizationPolicy`, as in the Tutorial Bot?

I’ve been reading on `AugmentedMemoizationPolicy`, but theres is not much about in in the Docs. It was mentioned [here](https://medium.com/strai/contextual-conversational-engine-the-rasa-core-approach-part-1-1acf95b3d237), but nothing suggested that it is essential for repetitions.

> Note: There is also an _ **AugmentedMemoizationPolicy** _ — you can use this instead if you don’t have slots set in prediction but they are present in your training data, basically this helps for the Memoization Policy to disregard slots in the tracker to consider a decision

---

<div class="post-metadata">

**Author:** ![maria.p](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@maria.p](https://forum.rasa.com/u/maria.p)\
**Post date:** [November 5, 2019, 2:38pm UTC](https://forum.rasa.com/t/bot-repeats-action-listen-augmentation-not-working/20921/4 "2019-11-05T14:38:19Z")

</div>

Also according to [this](http://forum.rasa.com/t/solved-user-action-is-not-identified-second-time-for-same-indent/1813/2) question, which addresses the same issue, combination of `MemoizationPolicy` and separate stories (like in my example and as in the answer to the linked question) should have been enough to ensure that the Bot can repeatedly answer same intents.

It would be really educating to understand how exactly augmentation works in both policies.
