Storing a conversation to stories in a custom action

Hey everyone,

I’d like to automatically store a conversation as a story, whenever the user gives positive feedback. This should happen in a custom action, which reads the feedback’s sentiment and then stores the conversation. How could I achieve the storing part? I tried using DialogueStateTracker.export_stories_to_file(export_path=“data/stories.md”), but it does not seem to work. Any ideas?

Hi @Taufred, that seems unlikely that it doesn’t work. Are you sure your custom action gets triggered?

Thank you for the comment @dakshvar22 The custom action does get triggered. I assume, that I did not instantiate the Dialogue State Tracker correctly. From the documentation (Tracker) I can not figure out how and where I need to instantiate it. Do you have any tips for me?