I noticed that there are several ways of users can make a query, is it possible to define a story that generalize the way of how an user can express a query? I am asking this because I don’t want to end up writing several variations of the same story.
Use interactive learning. You don’t have to write them manually, it will automatically create stories as the conversation flows and you can append them to your existing story file. https://rasa.com/docs/core/interactive_learning/
The problem is that I have a log of conversations that I would like to map as stories.md
This can be helpful. Immediately after the conversation, you can convert them to stories. https://github.com/RasaHQ/rasa_core/issues/729
Thanks for the info, its really helpful. However, is it possible for you to provide a short example?
So like in the code, in your actions file, at which ever point you wish to export the story, use the rasa_core event StoryExported.
This part is from the link above:
class ActionByeBye(Action): def name(self): return 'action_bye' def run (self, dispatcher, tracker, domain): return[StoryExported("data.md"),Restarted()]
The last line will create a story file with the entire conversation. Include this action under your actions in domain file as well.