Variable Assigner in workflow do not work properly #6615

Closed
opened 2026-02-21 18:16:34 -05:00 by yindo · 4 comments
Owner

Originally created by @ieayoio on GitHub (Nov 7, 2024).

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

  1. Create a workflow
  2. No conversation variables function was found,While it is possible to create a Variable Assigner, the Variable Assigner does not work properly because there are no variables available
    image

✔️ Expected Behavior

conversation variables can be added correctly in workflow and can be used in Variable Assigner

Actual Behavior

Variable Assigner in workflow do not work properly

Originally created by @ieayoio on GitHub (Nov 7, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] 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 1. Create a workflow 2. No conversation variables function was found,While it is possible to create a Variable Assigner, the Variable Assigner does not work properly because there are no variables available ![image](https://github.com/user-attachments/assets/14868ed1-979a-49e6-9932-cd0d4d3221cf) ### ✔️ Expected Behavior conversation variables can be added correctly in workflow and can be used in Variable Assigner ### ❌ Actual Behavior Variable Assigner in workflow do not work properly
yindo closed this issue 2026-02-21 18:16:34 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 7, 2024):

@ieayoio Hello there! I'm here to help you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together while we wait for a human maintainer.

I found a similar unsolved discussion regarding issues with variables in Dify workflows: Error in item: Invalid variable [1]. Additionally, there was a closed issue related to variable errors after upgrading to version 0.10.0, which might provide some insights: The previous application encountered various variable errors after upgrading to version 0.10.0 [2].

For the issue you're experiencing with the Variable Assigner not working properly in version 0.11.0, it might be related to how conversation variables are initialized and used. Conversation variables are meant to store information temporarily within the same Chatflow session and can be referenced across multiple rounds of chatting. They need to be initialized properly and can be written to using the Variable Assigner node [3].

If the Variable Assigner is not functioning as expected, ensure that the conversation variables are correctly initialized and available in the workflow. You might want to check if there are any updates or patches related to variable handling in the latest version, as this could address the issue you're facing.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 7, 2024): <!-- Greeting --> @ieayoio Hello there! I'm here to help you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together while we wait for a human maintainer. <!-- Answer --> I found a similar unsolved discussion regarding issues with variables in Dify workflows: [Error in item: Invalid variable](https://github.com/langgenius/dify/discussions/8611) <sup>[[1]](https://github.com/langgenius/dify/discussions/8611)</sup>. Additionally, there was a closed issue related to variable errors after upgrading to version 0.10.0, which might provide some insights: [The previous application encountered various variable errors after upgrading to version 0.10.0](https://github.com/langgenius/dify/issues/9826) <sup>[[2]](https://github.com/langgenius/dify/issues/9826)</sup>. For the issue you're experiencing with the Variable Assigner not working properly in version 0.11.0, it might be related to how conversation variables are initialized and used. Conversation variables are meant to store information temporarily within the same Chatflow session and can be referenced across multiple rounds of chatting. They need to be initialized properly and can be written to using the Variable Assigner node <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/variables.md)</sup>. If the Variable Assigner is not functioning as expected, ensure that the conversation variables are correctly initialized and available in the workflow. You might want to check if there are any updates or patches related to variable handling in the latest version, as this could address the issue you're facing. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Nov 7, 2024):

See the docs here https://docs.dify.ai/zh-hans/guides/workflow/node/variable-assigner.

This is because you have chosen a wrong application type, only Chatflow has conversational variables. This is a Workflow type.

@crazywoola commented on GitHub (Nov 7, 2024): See the docs here https://docs.dify.ai/zh-hans/guides/workflow/node/variable-assigner. This is because you have chosen a wrong application type, only `Chatflow` has conversational variables. This is a `Workflow` type.
Author
Owner

@ieayoio commented on GitHub (Nov 7, 2024):

See the docs here https://docs.dify.ai/zh-hans/guides/workflow/node/variable-assigner.

This is because you have chosen a wrong application type, only Chatflow has conversational variables. This is a Workflow type.

I understand that conversation variables should be used in Chatflow, but the Variable Assigner function in Workflow cannot be used normally at present, because the official documentation states that Variable Assigner only supports conversation variables.

@ieayoio commented on GitHub (Nov 7, 2024): > See the docs here https://docs.dify.ai/zh-hans/guides/workflow/node/variable-assigner. > > This is because you have chosen a wrong application type, only `Chatflow` has conversational variables. This is a `Workflow` type. I understand that conversation variables should be used in Chatflow, but the Variable Assigner function in Workflow cannot be used normally at present, because the [official documentation](https://docs.dify.ai/guides/workflow/node/variable-assigner) states that Variable Assigner only supports conversation variables.
Author
Owner

@ieayoio commented on GitHub (Nov 7, 2024):

See the docs here https://docs.dify.ai/zh-hans/guides/workflow/node/variable-assigner.

This is because you have chosen a wrong application type, only Chatflow has conversational variables. This is a Workflow type.

The current status of dify is that there is a Variable Assigner in the Workflow but it cannot be used normally

@ieayoio commented on GitHub (Nov 7, 2024): > See the docs here https://docs.dify.ai/zh-hans/guides/workflow/node/variable-assigner. > > This is because you have chosen a wrong application type, only `Chatflow` has conversational variables. This is a `Workflow` type. The current status of dify is that there is a Variable Assigner in the Workflow but it cannot be used normally
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6615