# Long story is not going as planned with checkpoints

**URL:** <https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469>\
**Category:** Rasa Open Source\
**Created:** [June 13, 2019, 12:39pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469 "2019-06-13T12:39:06Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![gillesf](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gillesf](https://forum.rasa.com/u/gillesf)\
**Post date:** [June 13, 2019, 12:39pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/1 "2019-06-13T12:39:06Z")

</div>

Hello,

I’m trying to do a “long” story with checkpoints as this :

```auto
    ## story_destination
    * destination
    - utter_confirm_destination
    > check_destination

    ## story_destination_confirm
    > check_destination
    * affirm
    - utter_today_departure
    > check_today_departure

    ## story_destination_deny
    > check_destination
    * deny
    - utter_goodbye

    ## story_destination_today_affirm
    > check_today_departure
    * affirm
    - utter_today_departure_hour

    ## story_destination_today_deny
    > check_today_departure
    * deny
    - utter_goodbye

```

So first intent is working :

> User : - I’m going to Paris

> Bot : - Are you going to Paris ?

> User : - Yes

> Bot : - Do you want to leave today ?

> User : - Yes

And here the bot displayes utter\_default instead of utter\_today\_departure\_hour and I don’t get why ?

Previous checkpoints are working but not the last one

What can I check to understand why ?

Thanks a lot,I can provide more information if needed !

---

<div class="post-metadata">

**Author:** ![rbossie](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rbossie](https://forum.rasa.com/u/rbossie)\
**Post date:** [June 13, 2019, 12:45pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/2 "2019-06-13T12:45:26Z")

</div>

Can you show the logs while running the bot in debug mode?

And I’m not sure if it helps, but maybe you can try to add a story

```
## story_destination_today
> check_today_departure
 * deny
```

---

<div class="post-metadata">

**Author:** ![gillesf](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gillesf](https://forum.rasa.com/u/gillesf)\
**Post date:** [June 13, 2019, 1:02pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/3 "2019-06-13T13:02:10Z")

</div>

> 172.19.0.3 - - [2019-06-13 13:00:16] “POST /webhooks/rest/webhook HTTP/1.1” 200 351 0.077839 2019-06-13 13:00:19 DEBUG rasa\_core.processor - Received user message ‘/affirm’ with intent ‘{‘name’: ‘affirm’, ‘confidence’: 1.0}’ and entities ‘’ 2019-06-13 13:00:19 DEBUG rasa\_core.processor - Logged UserUtterance - tracker now has 218 events 2019-06-13 13:00:19 DEBUG rasa\_core.processor - Current slot values: checkin\_destination: Paris checkin\_time: 14h40 departure\_hour: 10h00 destination: Paris errorId: None error\_message: None location: None project\_type: None search\_tools\_criteria: None solutionId: None subject: None 2019-06-13 13:00:19 DEBUG rasa\_core.policies.memoization - Current tracker state [{‘slot\_destination\_0’: 1.0, ‘prev\_action\_listen’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘entity\_destination’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘intent\_destination’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}, {‘slot\_destination\_0’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘entity\_destination’: 1.0, ‘prev\_utter\_confirm\_destination’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘intent\_destination’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}, {‘slot\_destination\_0’: 1.0, ‘prev\_action\_listen’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘intent\_affirm’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}, {‘slot\_destination\_0’: 1.0, ‘prev\_utter\_today\_departure’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘intent\_affirm’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}, {‘slot\_destination\_0’: 1.0, ‘prev\_action\_listen’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘intent\_affirm’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}] 2019-06-13 13:00:19 DEBUG rasa\_core.policies.memoization - There is no memorised next action 2019-06-13 13:00:19 DEBUG rasa\_core.policies.form\_policy - There is no active form 2019-06-13 13:00:19 DEBUG rasa\_core.policies.ensemble - Predicted next action using policy\_1\_FallbackPolicy 2019-06-13 13:00:19 DEBUG rasa\_core.processor - Predicted next action ‘action\_missed\_intent’ with prob 1.00. 2019-06-13 13:00:19 DEBUG rasa\_core.actions.action - Calling action endpoint to run action ‘action\_missed\_intent’. 2019-06-13 13:00:19 DEBUG rasa\_core.processor - Action ‘action\_missed\_intent’ ended with events ‘’ 2019-06-13 13:00:19 DEBUG rasa\_core.processor - Bot utterance ‘BotUttered(text: Veuillez répéter la question je n’ai pas compris., data: { “elements”: null, “buttons”: null, “attachment”: null })’ 2019-06-13 13:00:19 DEBUG rasa\_core.policies.memoization - Current tracker state [{‘slot\_destination\_0’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘entity\_destination’: 1.0, ‘prev\_utter\_confirm\_destination’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘intent\_destination’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}, {‘slot\_destination\_0’: 1.0, ‘prev\_action\_listen’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘intent\_affirm’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}, {‘slot\_destination\_0’: 1.0, ‘prev\_utter\_today\_departure’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘intent\_affirm’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}, {‘slot\_destination\_0’: 1.0, ‘prev\_action\_listen’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘intent\_affirm’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}, {‘prev\_action\_missed\_intent’: 1.0, ‘slot\_destination\_0’: 1.0, ‘slot\_checkin\_time\_0’: 1.0, ‘intent\_affirm’: 1.0, ‘slot\_checkin\_destination\_0’: 1.0, ‘slot\_departure\_hour\_0’: 1.0}] 2019-06-13 13:00:19 DEBUG rasa\_core.policies.memoization - There is no memorised next action 2019-06-13 13:00:19 DEBUG rasa\_core.policies.form\_policy - There is no active form 2019-06-13 13:00:19 DEBUG rasa\_core.policies.ensemble - Predicted next action using policy\_1\_FallbackPolicy 2019-06-13 13:00:19 DEBUG rasa\_core.processor - Predicted next action ‘action\_listen’ with prob 1.00. 2019-06-13 13:00:19 DEBUG rasa\_core.processor - Action ‘action\_listen’ ended with events ‘’

I already got the other intents for deny in my story didn’t paste it 😕

---

<div class="post-metadata">

**Author:** ![rbossie](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rbossie](https://forum.rasa.com/u/rbossie)\
**Post date:** [June 13, 2019, 1:11pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/4 "2019-06-13T13:11:23Z")

</div>

Can’t seem to find anything shocking in the logs, except there seems to be no memorised next action.

What does your policy file look like?

---

<div class="post-metadata">

**Author:** ![gillesf](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gillesf](https://forum.rasa.com/u/gillesf)\
**Post date:** [June 13, 2019, 1:13pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/5 "2019-06-13T13:13:19Z")

</div>

```
policies:
  - name: KerasPolicy
    epochs: 100
    max_history: 5
  - name: FallbackPolicy
    fallback_action_name: 'action_missed_intent'
    nlu_threshold: 0.55
  - name: MemoizationPolicy
    max_history: 5
  - name: FormPolicy

```

Yes the next action should be my utter right ? 🤔

---

<div class="post-metadata">

**Author:** ![rbossie](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rbossie](https://forum.rasa.com/u/rbossie)\
**Post date:** [June 13, 2019, 1:22pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/6 "2019-06-13T13:22:44Z")

</div>

Yes it should.

Your policies are looking fine, do you get the same fallback response when you try the deny intent?

---

<div class="post-metadata">

**Author:** ![gillesf](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gillesf](https://forum.rasa.com/u/gillesf)\
**Post date:** [June 13, 2019, 1:26pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/7 "2019-06-13T13:26:29Z")

</div>

Sadly yes

e: If I reply No to the first question same issue… what is going on ahah

---

<div class="post-metadata">

**Author:** ![rbossie](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rbossie](https://forum.rasa.com/u/rbossie)\
**Post date:** [June 13, 2019, 1:42pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/8 "2019-06-13T13:42:27Z")

</div>

You mean the ‘are you going to Paris’ question?

I never worked with the checkpoints myself, so I hope maybe someone else can give some insight.

---

<div class="post-metadata">

**Author:** ![gillesf](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gillesf](https://forum.rasa.com/u/gillesf)\
**Post date:** [June 13, 2019, 1:44pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/9 "2019-06-13T13:44:07Z")

</div>

Yes, when I answer “No” to “are you going to Paris”, I got utter\_default message, instead of utter\_goodbye

Really really strange I need this feature to work ahah

---

<div class="post-metadata">

**Author:** ![rbossie](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@rbossie](https://forum.rasa.com/u/rbossie)\
**Post date:** [June 13, 2019, 1:46pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/10 "2019-06-13T13:46:21Z")

</div>

In the story on top you didn’t define utter\_goodbye after the ‘deny’ intent. So if you didn’t define it in your current story it can be explained. Otherwise I’m running out of solutions 😔

---

<div class="post-metadata">

**Author:** ![gillesf](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gillesf](https://forum.rasa.com/u/gillesf)\
**Post date:** [June 13, 2019, 1:47pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/11 "2019-06-13T13:47:16Z")

</div>

I did it now to test if it’s changing something or not, I will update my code in first message 🙂

---

<div class="post-metadata">

**Author:** ![gillesf](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gillesf](https://forum.rasa.com/u/gillesf)\
**Post date:** [June 13, 2019, 2:02pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/12 "2019-06-13T14:02:26Z")

</div>

Maybe my deny intent is not working ?

E: The deny intent is working in other case …

---

<div class="post-metadata">

**Author:** ![gillesf](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@gillesf](https://forum.rasa.com/u/gillesf)\
**Post date:** [June 26, 2019, 9:06am UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/13 "2019-06-26T09:06:58Z")

</div>

Still stuck on this 🤧

---

<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:** [July 2, 2019, 4:12pm UTC](https://forum.rasa.com/t/long-story-is-not-going-as-planned-with-checkpoints/11469/14 "2019-07-02T16:12:36Z")

</div>

Hm the stories look okay, and your debug logs look okay too. Can you show me your slot types in your domain? I think these are influencing your tracker history when they shouldn’t, which is affecting action prediction. Also, are you trying to pick up entities with your `destination` intent?
