Variable assigner node assigns multiple variables #6799

Closed
opened 2026-02-21 18:17:21 -05:00 by yindo · 7 comments
Owner

Originally created by @RoyDingZF on GitHub (Nov 16, 2024).

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

can you make the node capable of handling multiple variables, so it doesn't need multiple nodes to do that.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @RoyDingZF on GitHub (Nov 16, 2024). ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. can you make the node capable of handling multiple variables, so it doesn't need multiple nodes to do that. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement🌚 invalid labels 2026-02-21 18:17:21 -05:00
yindo closed this issue 2026-02-21 18:17:21 -05:00
Author
Owner

@RoyDingZF commented on GitHub (Nov 16, 2024):

I'm reaching the limit of no more than 50 nodes per branch for I have many variables to save.

@RoyDingZF commented on GitHub (Nov 16, 2024): I'm reaching the limit of no more than 50 nodes per branch for I have many variables to save.
Author
Owner
@crazywoola commented on GitHub (Nov 17, 2024): https://github.com/langgenius/dify/blob/031a0b576d482b36d033d54f8162c2045d63185f/web/app/components/workflow/hooks/use-checklist.ts#L122-L125 Which MAX_TREE_DEPTH is set to 50
Author
Owner

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

However I am not sure what are you trying to propose here. This description is too simple to understand. Can you provide more information?

@crazywoola commented on GitHub (Nov 17, 2024): However I am not sure what are you trying to propose here. This description is too simple to understand. Can you provide more information?
Author
Owner

@RoyDingZF commented on GitHub (Nov 17, 2024):

if one node can handle saving multiple variables, then I don't need to stack or chain the nodes like in this image.
屏幕截图 2024-11-17 151448

However I am not sure what are you trying to propose here. This description is too simple to understand. Can you provide more information?

@RoyDingZF commented on GitHub (Nov 17, 2024): if one node can handle saving multiple variables, then I don't need to stack or chain the nodes like in this image. ![屏幕截图 2024-11-17 151448](https://github.com/user-attachments/assets/1240bfdb-b7dc-4468-9e89-cab9ed206401) > However I am not sure what are you trying to propose here. This description is too simple to understand. Can you provide more information?
Author
Owner

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

I see, how about using a json to store things like:

{
  can_revert: true,
  memory: "",
  rounds: 3
}
@crazywoola commented on GitHub (Nov 17, 2024): I see, how about using a json to store things like: ``` { can_revert: true, memory: "", rounds: 3 } ```
Author
Owner

@RoyDingZF commented on GitHub (Nov 17, 2024):

Then I need to parse the json using code node before putting vars into llm nodes. I guess it's a workaround then.

I see, how about using a json to store things like:

{
  can_revert: true,
  memory: "",
  rounds: 3
}
@RoyDingZF commented on GitHub (Nov 17, 2024): Then I need to parse the json using code node before putting vars into llm nodes. I guess it's a workaround then. > I see, how about using a json to store things like: > > ``` > { > can_revert: true, > memory: "", > rounds: 3 > } > ```
Author
Owner

@zxhlyh commented on GitHub (Nov 18, 2024):

WIP

@zxhlyh commented on GitHub (Nov 18, 2024): WIP
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6799