# \[solved\] How to use Check points in story

**URL:** <https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351>\
**Category:** Rasa Open Source\
**Created:** [September 24, 2018, 1:58pm UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351 "2018-09-24T13:58:29Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![azizullah2017](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/azizullah2017/32/241_2.png) [@azizullah2017](https://forum.rasa.com/u/azizullah2017)\
**Post date:** [September 24, 2018, 1:58pm UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/1 "2018-09-24T13:58:29Z")

</div>

Can anyone help me how to use the check points ?

```auto
* Greet

  - utter_greet

*user_say

  -utter_ask_fruit_name

  > check_fruit_name

*close

   -utter_close

```

I want this story must not proceed untill it does not get the fruit name. It must ask iterative ask the fruit name, when it get the name then it must proceed to next dialogue

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [September 27, 2018, 4:26pm UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/2 "2018-09-27T16:26:45Z")

</div>

Can you please format that with ```? There’s information on how to use checkpoints here: [https://rasa.com/docs/core/stories/#checkpoints](https://rasa.com/docs/core/stories/#checkpoints)

---

<div class="post-metadata">

**Author:** ![azizullah2017](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/azizullah2017/32/241_2.png) [@azizullah2017](https://forum.rasa.com/u/azizullah2017)\
**Post date:** [September 28, 2018, 1:49pm UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/3 "2018-09-28T13:49:01Z")

</div>

@akelad it is not helpful, where I define my check point? how this work. Does it stop until the point is false ?

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 2, 2018, 8:41am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/4 "2018-10-02T08:41:56Z")

</div>

You define the checkpoints as they’re specified in the documentation. If one story ends with a checkpoint, and another story starts with a checkpoint of the same name, that’s where the conversation will go. I don’t think you need a checkpoint for your case though, you can just write a story for when the user provides the fruit entity, and one for when the user doesn’t

---

<div class="post-metadata">

**Author:** ![azizullah2017](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/azizullah2017/32/241_2.png) [@azizullah2017](https://forum.rasa.com/u/azizullah2017)\
**Post date:** [October 2, 2018, 9:10am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/5 "2018-10-02T09:10:35Z")

</div>

@akelad what exactly are this check points ? are they custom action ? or they are some kind of events ?

where to define the check points ?

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 4, 2018, 9:50am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/6 "2018-10-04T09:50:31Z")

</div>

They’re just intermediate points to connect two stories together. You don’t “define” them anywhere, you just put a checkpoint of any name you make at the end of one story, and then the same one at the start of the other story you want to connect.

So in this example [here](https://rasa.com/docs/core/stories/#checkpoints), dependent on whether the user says `affirm` or `deny`, the story will jump to one of those two stories

---

<div class="post-metadata">

**Author:** ![azizullah2017](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/azizullah2017/32/241_2.png) [@azizullah2017](https://forum.rasa.com/u/azizullah2017)\
**Post date:** [October 4, 2018, 10:44am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/7 "2018-10-04T10:44:06Z")

</div>

@akelad Now I got it. Thank you so much.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [December 28, 2018, 9:14pm UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/8 "2018-12-28T21:14:55Z")

</div>

@akelad Thanks for your two responses in this thread. The documentation on checkpoints could use the clarification you’ve provided here. Glad I found this.

---

<div class="post-metadata">

**Author:** ![hsm207](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/hsm207/32/2647_2.png) [@hsm207](https://forum.rasa.com/u/hsm207)\
**Post date:** [July 21, 2019, 12:55am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/9 "2019-07-21T00:55:16Z")

</div>

The link is broken now.

Did you mean to link to [this](https://rasa.com/docs/rasa/core/stories/#stories) example?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/1d490c322f9b9cbe3240161cae681a2266c19234.png)

Based on your reply, my understanding of how this example works is:

“first story” ends when the bot does “action\_ask\_user\_question”.

Both the “user affirms question” and “user denies question” story will actually start with:

```
* hello
   - action_ask_user_question

```

because these stories begin with the checkpoint named “check\_asked\_question”.

Is this correct?

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [July 21, 2019, 8:24am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/10 "2019-07-21T08:24:10Z")

</div>

yes

---

<div class="post-metadata">

**Author:** ![prakashdale](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/prakashdale/32/2995_2.png) [@prakashdale](https://forum.rasa.com/u/prakashdale)\
**Post date:** [July 21, 2019, 9:39am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/11 "2019-07-21T09:39:05Z")

</div>

@akelad, the link mentioned in your reply is broken.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [July 22, 2019, 11:54am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/12 "2019-07-22T11:54:52Z")

</div>

yes i know, @hsm207 linked to the new url

---

<div class="post-metadata">

**Author:** ![Kira](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kira/32/4384_2.png) [@Kira](https://forum.rasa.com/u/Kira)\
**Post date:** [August 1, 2019, 3:45am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/13 "2019-08-01T03:45:49Z")

</div>

In the link, [Stories](https://rasa.com/docs/rasa/core/stories/) if user intent is “affirm” without doing a “hello”, it still gives affirm response. Ideally “affirm” intent should fail right because checkpoint story did not happen yet?

---

<div class="post-metadata">

**Author:** ![waridCwork](https://avatars.discourse-cdn.com/v4/letter/w/b38774/32.png) [@waridCwork](https://forum.rasa.com/u/waridCwork)\
**Post date:** [April 1, 2020, 9:24am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/14 "2020-04-01T09:24:03Z")

</div>

Now 100% clear. Thank you.

---

<div class="post-metadata">

**Author:** ![Prasad.YS](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@Prasad.YS](https://forum.rasa.com/u/Prasad.YS)\
**Post date:** [May 21, 2021, 7:59am UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/15 "2021-05-21T07:59:21Z")

</div>

Hi @akelad , do we have checkpoints which we can use at the end ? for example feedback, after using the application I want to ask feedback of user. as for now I need add whole feedback story at end of every story, instead of this can I make a check point and and this check point at end of every end of the story ?

---

<div class="post-metadata">

**Author:** ![jonathanpwheat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jonathanpwheat/32/4880_2.png) [@jonathanpwheat](https://forum.rasa.com/u/jonathanpwheat)\
**Post date:** [June 7, 2021, 12:41pm UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/16 "2021-06-07T12:41:56Z")

</div>

Yes you can do that, I use checkpoints all the time now for a very similar path.

If you’re using version 2.x you can create something like

```auto
- story: Collect feedback
  steps:
  - checkpoint: collect_feedback
  < copy / paste your feedback story here >

```

Then change out the feedback story steps in all your stories with this single step to point to your new checkpoint

```auto
   - checkpoint: collect_feedback

```

Train it up and go 🙂

---

<div class="post-metadata">

**Author:** ![riya.shah](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@riya.shah](https://forum.rasa.com/u/riya.shah)\
**Post date:** [June 10, 2021, 9:22pm UTC](https://forum.rasa.com/t/solved-how-to-use-check-points-in-story/1351/17 "2021-06-10T21:22:40Z")

</div>

Hey @akeladSuppose there are 2 stories in a conversation (let’s say A,B) that lead to the same story (let’s say C), then is it possible to use checkpoints of both the stories (A,B) at the beginning of story C?

For e.g

```auto
story: story_C
 steps:
 - checkpoint: story_A_ckp
 - checkpoint: story_B_ckp
 - intent: affirm
 - action: utter_happy

```
