loops in workflow #6063

Closed
opened 2026-02-21 18:13:54 -05:00 by yindo · 2 comments
Owner

Originally created by @Namec999 on GitHub (Oct 12, 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.

currently i want to ask the parameter extractor node 3 times at max, if the result found is not correct,

i tried to attach and IFELSE node to a previous node in the workflow, but no connection can be made

any solutions for ?

thank you

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 @Namec999 on GitHub (Oct 12, 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. currently i want to ask the parameter extractor node 3 times at max, if the result found is not correct, i tried to attach and IFELSE node to a previous node in the workflow, but no connection can be made any solutions for ? thank you ### 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 label 2026-02-21 18:13:54 -05:00
yindo closed this issue 2026-02-21 18:13:54 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 12, 2024):

I found a relevant discussion about handling retries or loops in a Dify workflow. Dify provides a built-in mechanism using the Iteration node, which can execute multiple steps on list objects until all results are output. This might be useful for your scenario where you want to retry the parameter extractor node up to three times [1][2].

If you're having trouble connecting nodes, ensure that the nodes are compatible and follow the constraints, such as avoiding loops and ensuring unique node names [3].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 12, 2024): <!-- Answer --> I found a relevant discussion about handling retries or loops in a Dify workflow. Dify provides a built-in mechanism using the **Iteration** node, which can execute multiple steps on list objects until all results are output. This might be useful for your scenario where you want to retry the parameter extractor node up to three times <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/README.md)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/workflow/nodes/iteration/iteration_node.py)</sup>. If you're having trouble connecting nodes, ensure that the nodes are compatible and follow the constraints, such as avoiding loops and ensuring unique node names <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/key-concept.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Oct 12, 2024):

Duplicated https://github.com/langgenius/dify/issues/9121

@crazywoola commented on GitHub (Oct 12, 2024): Duplicated https://github.com/langgenius/dify/issues/9121
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6063