Clarification on the (re-)use of checkpoints

Can I mark the end of two stories using the same checkpoint name? So, say I have two stories like below:

- story: Basic introduction and name
  steps:
  - intent: greet
  - action: utter_greet
  - checkpoint: said_hello
- story: Alternative introduction and name
  steps:
  - intent: fancy_greet
  - action: utter_fancy_greet
  - checkpoint: said_hello

Would this work? Or will one story checkpoint win out?

Hi @digitalWestie, I had the same question a few days ago and tested it out. It works! The story that starts with checkpoint: said_hello runs in both cases. (You can type rasa visualize and open the generated graph.html to see the flow chart of the story)

1 Like

Ah, great to know! Don’t know why I didn’t think of the visualize feature as a test.