You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.11.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
As shown in the figure, when I pass in the input variable (with only the 'a' variable inside), only the value of the 'a' variable is determined when creating the conversation. Continuing the conversation afterwards cannot change the value of the 'a' variable no matter what, which is something I don't want to see,
My current scenario is a conversational robot that needs to provide real-time strategic responses based on the current reception time and employee status. However, I do not want to lose the user's short-term memory as employee status is constantly changing
I have also reviewed previous issues and know that dify has a feature called "session variable", but I cannot assign this variable to it in any form as input. It cannot autonomously determine when updates are needed and why the content needs to be updated
✔️ Expected Behavior
There can be a variable that will be updated in the workflow as a conversation progresses in real-time, rather than being fixed only when the conversation is created
@liuzixiao666 Hello there! I'm here to help you with any bugs, questions, or contributions you have for the Dify project. Let's work together to solve the issue you're experiencing.
I found some relevant discussions and issues that might help with your problem of updating input variables in real-time during a conversation session in Dify:
This issue suggests using the VariableAssignerNode class and the update_conversation_variable function to handle updates. The VariableAssignerNode supports different write modes (OVER_WRITE, APPEND, CLEAR) to update variables.
To achieve real-time updates of input variables during a conversation, you can use Conversation Variables and the Variable Assigner node. This setup allows you to dynamically update variables as the conversation progresses, ensuring that information like employee status can be updated and accessed throughout the session [4][5].
Self Checks
Dify version
0.11.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
As shown in the figure, when I pass in the input variable (with only the 'a' variable inside), only the value of the 'a' variable is determined when creating the conversation. Continuing the conversation afterwards cannot change the value of the 'a' variable no matter what, which is something I don't want to see,
My current scenario is a conversational robot that needs to provide real-time strategic responses based on the current reception time and employee status. However, I do not want to lose the user's short-term memory as employee status is constantly changing
I have also reviewed previous issues and know that dify has a feature called "session variable", but I cannot assign this variable to it in any form as input. It cannot autonomously determine when updates are needed and why the content needs to be updated
✔️ Expected Behavior
There can be a variable that will be updated in the workflow as a conversation progresses in real-time, rather than being fixed only when the conversation is created
❌ Actual Behavior
Related issues:
https://github.com/langgenius/dify/issues/4969
https://github.com/langgenius/dify/issues/8546
The text was updated successfully, but these errors were encountered: