workflow node: loop? #11927

Closed
opened 2026-02-21 19:04:48 -05:00 by yindo · 2 comments
Owner

Originally created by @su0326 on GitHub (Mar 21, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Provide a description of requested docs changes

From the documentation, it seems that there is already the ability to loop, but in practice there is none.
doc: https://docs.dify.ai/guides/workflow/node/loop

Originally created by @su0326 on GitHub (Mar 21, 2025). ### 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 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. ### Provide a description of requested docs changes From the documentation, it seems that there is already the ability to loop, but in practice there is none. doc: https://docs.dify.ai/guides/workflow/node/loop
yindo added the 📚 documentation label 2026-02-21 19:04:48 -05:00
yindo closed this issue 2026-02-21 19:04:48 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 21, 2025):

Hello, @su0326! I'm here to help you with any bugs, questions, or contributions you may have. Let's work together to resolve any issues you encounter.

I found some relevant discussions and issues regarding the Loop Node in Dify:

  1. Discussion: Loop call tool - This is an unsolved discussion about loop functionality in Dify [1].

  2. Discussion: Seeking Help,Does dify support self-looping? - Another unsolved discussion on self-looping capabilities in Dify [2].

  3. Closed Issue: is loop still functional? the loop help document is gone on dify.ai. - This issue confirms that the loop node is still functional. It mentions that you can add a condition to it using the break_conditions attribute of the LoopNodeData. The loop node processes these conditions using a ConditionProcessor to determine if the loop should break. Additionally, ensure that variables are added to the VariablePool to avoid errors [3].

These threads might provide insights or solutions to the issues you're facing with the Loop Node in Dify.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 21, 2025): <!-- Greeting --> Hello, @su0326! I'm here to help you with any bugs, questions, or contributions you may have. Let's work together to resolve any issues you encounter. <!-- Answer --> I found some relevant discussions and issues regarding the Loop Node in Dify: 1. **Discussion: [Loop call tool](https://github.com/langgenius/dify/discussions/14946)** - This is an unsolved discussion about loop functionality in Dify <sup>[[1]](https://github.com/langgenius/dify/discussions/14946)</sup>. 2. **Discussion: [Seeking Help,Does dify support self-looping?](https://github.com/langgenius/dify/discussions/14705)** - Another unsolved discussion on self-looping capabilities in Dify <sup>[[2]](https://github.com/langgenius/dify/discussions/14705)</sup>. 3. **Closed Issue: [is loop still functional? the loop help document is gone on dify.ai.](https://github.com/langgenius/dify/issues/16123)** - This issue confirms that the loop node is still functional. It mentions that you can add a condition to it using the `break_conditions` attribute of the `LoopNodeData`. The loop node processes these conditions using a `ConditionProcessor` to determine if the loop should break. Additionally, ensure that variables are added to the `VariablePool` to avoid errors <sup>[[3]](https://github.com/langgenius/dify/issues/16123)</sup>. These threads might provide insights or solutions to the issues you're facing with the Loop Node in Dify. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/a754f952-9d38-4da4-acfe-2cec986daabf?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/a754f952-9d38-4da4-acfe-2cec986daabf?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/a754f952-9d38-4da4-acfe-2cec986daabf?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/a754f952-9d38-4da4-acfe-2cec986daabf?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a754f952-9d38-4da4-acfe-2cec986daabf?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/a754f952-9d38-4da4-acfe-2cec986daabf?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a754f952-9d38-4da4-acfe-2cec986daabf?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 21, 2025):

Image
Actually this is available in 1.0.1. However we haven't released PR about this feature yet. We will release it later, maybe v1.2.0

@crazywoola commented on GitHub (Mar 21, 2025): ![Image](https://github.com/user-attachments/assets/e31eb784-646d-4b48-86e4-837da8fc5b46) Actually this is available in 1.0.1. However we haven't released PR about this feature yet. We will release it later, maybe v1.2.0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11927