# Restart a storyline from anypoint of my wish

**URL:** <https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512>\
**Category:** Rasa Open Source\
**Created:** [September 29, 2018, 5:33pm UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512 "2018-09-29T17:33:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abir](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/abir/32/771_2.png) [@Abir](https://forum.rasa.com/u/Abir)\
**Post date:** [September 29, 2018, 5:33pm UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512/1 "2018-09-29T17:33:25Z")

</div>

So i came to know about “Restarting a conversation” but that just wipes out all slot values and starts over. But i want a more controlled way to start from anypoint of story and then continue execution from that point. Say i have a story

\*greeet

- action\_one

\*inform

- action\_two
- action\_three

\*goodbye

- action\_four

i would like to implement a way such that i can trigger an event from action\_four that would restart the bot from action\_two and go down all the way to action\_four . I found it a bit challenging , any help is immensely appreciated 🙂

---

<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 1, 2018, 11:00am UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512/2 "2018-10-01T11:00:42Z")

</div>

> **[Stories](https://rasa.com/docs/rasa/stories/)**
>
> Stories are used to teach Rasa real conversation designs to learn from providing the basis for a scalable machine learning dialogue management.

```auto
## story 1
*greeet
    - action_one

*inform
    - action_two
    - action_three

*goodbye
  -action_four

## story 2
*inform
    - action_two
    - action_three

*goodbye
    - action_four

```

---

<div class="post-metadata">

**Author:** ![Abir](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/abir/32/771_2.png) [@Abir](https://forum.rasa.com/u/Abir)\
**Post date:** [October 1, 2018, 12:38pm UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512/3 "2018-10-01T12:38:53Z")

</div>

The 2nd story needs an “inform” intent to execute actiom\_two. i would like to execute action\_two directly after action\_four and then go all the way down till goodbye .

---

<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 1, 2018, 12:47pm UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512/4 "2018-10-01T12:47:17Z")

</div>

> [@azizullah2017](#):
>
> \*greeet - action\_one \*inform - action\_two - action\_three \*goodbye -action\_four

```auto
*greeet
    - action_one

*inform
    - action_two
    - action_three

*goodbye
  - action_four
 - action_two
 - action_three

```

---

<div class="post-metadata">

**Author:** ![Abir](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/abir/32/771_2.png) [@Abir](https://forum.rasa.com/u/Abir)\
**Post date:** [October 1, 2018, 2:44pm UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512/5 "2018-10-01T14:44:35Z")

</div>

i appreciated your effort , but i don’t want to hard code anything in stories , i did think of this technique but it wont serve any good.I would like to have an more efficient approach using events from custom action and not a fixed story line but then again thanx 🙂

---

<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, 9:05am UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512/6 "2018-10-02T09:05:35Z")

</div>

what do you mean exactly? surely you can achieve this writing stories like @azizullah2017 suggested?

---

<div class="post-metadata">

**Author:** ![Abir](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/abir/32/771_2.png) [@Abir](https://forum.rasa.com/u/Abir)\
**Post date:** [October 2, 2018, 12:54pm UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512/7 "2018-10-02T12:54:46Z")

</div>

by writing the stories , yes i thought the same way initially, but i was wonder is there any way i can manipulate the storyline flow through custom action and not by hard-coding it like writing static stories . Like a way where i can return some event that can start from any point of a story and continue the execution …say it more like a “goto” keyword in C where we can jump to anypoint of a code and then continue execution. Hope i was able to explain myself

---

<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:48am UTC](https://forum.rasa.com/t/restart-a-storyline-from-anypoint-of-my-wish/1512/8 "2018-10-04T09:48:40Z")

</div>

I’d argue that hard coding it into your action is more static 🙂 so i would suggest handling it in stories rather than actions
