# Dialog Management: Ho to migrate state-based approach to a story-based approach?

**URL:** <https://forum.rasa.com/t/dialog-management-ho-to-migrate-state-based-approach-to-a-story-based-approach/52948>\
**Category:** Feedback on Rasa Open Source\
**Tags:** rasa-stories\
**Created:** [May 2, 2022, 9:00am UTC](https://forum.rasa.com/t/dialog-management-ho-to-migrate-state-based-approach-to-a-story-based-approach/52948 "2022-05-02T09:00:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![solyarisoftware](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/solyarisoftware/32/8464_2.png) [@solyarisoftware](https://forum.rasa.com/u/solyarisoftware)\
**Post date:** [May 2, 2022, 9:00am UTC](https://forum.rasa.com/t/dialog-management-ho-to-migrate-state-based-approach-to-a-story-based-approach/52948/1 "2022-05-02T09:00:12Z")

</div>

RASA NLU (intents and entities classification) is clear, simple and well implemented.

But one of the things makes RASA different from many competitors is machine-learning based dialog management (using **stories** and **rules** ).

Myself (and I guess many of people that use non RASA framework) I used to manage task-oriented (conversational) workflows using the concept of state-machine. BTW I developed a small open source project [NaifJs](https://github.com/solyarisoftware/naifjs), that conceptualize a conversation as a sequence (a graph) of states, where each state is a set of valid intents involved in a conversation context.

So, what is not clear to me is ho to migrate a state-based (or context-based) approach to a story-based approach. Just to simplify/exemplify, I could immagine that given a " dialog flow" realized by conditional statements, I have to “serialize/duplicate” each “if” in multiple "then"stories.

Do you have already explained this problem in some articles? Maybe a gift for a new blog article/youtube workshop!

* * *

Thanks

Giorgio
