Closed Delgerskhn closed 1 month ago
Example messenger postback buttons that I use for state management.
Also menu selection can be like this one used in telegram.
This sounds good and introduces a state machine, but it can be quite complicated to implement.
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
Description: I would like to request a feature enhancement for the Dify chatbot orchestration tool. Currently, the tool follows a linear workflow that doesn't persist the conversation state, requiring the LLM to process each step from the beginning for every user query. This can lead to misinterpretation of user intentions and incorrect responses.
Proposed Feature: Implement a conversation state management feature that allows for menu-based navigation. This would involve: Menu-Based Navigation:
State Persistence:
Action Declaration:
Benefits:
Thank you for considering this feature request.
Example Usage:
2. Additional context or comments
I have provided an example of how I manage state in my messenger chatbot. This could serve as a reference for implementing this feature in Dify.
Example state management state machine I use in messenger chatbot:
3. Can you help us with this feature?