Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The input variable cannot be updated in the same session #10522

Closed
5 tasks done
liuzixiao666 opened this issue Nov 11, 2024 · 3 comments · May be fixed by #7955
Closed
5 tasks done

The input variable cannot be updated in the same session #10522

liuzixiao666 opened this issue Nov 11, 2024 · 3 comments · May be fixed by #7955
Labels
🐞 bug Something isn't working

Comments

@liuzixiao666
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • 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

image
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

Copy link

dosubot bot commented Nov 11, 2024

@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:

  1. Similar Discussions:

  2. Related Issues:

    • Input variables cannot be updated (Closed) [3]
      • 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].

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 11, 2024
@crazywoola crazywoola closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2024
@crazywoola
Copy link
Member

I have checked with our dev team several times, we will remain this behavior. Sorry.

@liuzixiao666
Copy link
Author

I have checked with our dev team several times, we will remain this behavior. Sorry.

Is there no way to input variable parameters into the workflow in the conversation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants