Enhanced Control Structures for More Complex Workflow Logic #3764
h-yuske-kishimoto
started this conversation in
Suggestion
Replies: 1 comment
-
Yes, if it can customize the IF/else node by adding more else criteria will be more better |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Self Checks
1. Is this request related to a challenge you're experiencing?
When using Dify's workflow as an API, I often encounter complex logic that requires numerous IF/ELSE blocks. This can be cumbersome and inefficient, especially for larger projects.
2. Describe the feature you'd like to see
I propose the addition of "SWITCH" and "FOR" processing features to Dify's workflow. The "SWITCH" feature would allow for multiple outputs by defining multiple conditions for input values. The "FOR" feature would execute a specified number of times and have the ability to break at any time. This suggestion is inspired by the functionality of Node-RED, a JS workflow engine.
3. How will this feature improve your workflow or experience?
The addition of these features would allow for the creation of more powerful and versatile agents and workflows. This would greatly enhance the user experience and efficiency when dealing with complex logic in Dify.
4. Additional context or comments
For a visual representation of the proposed features, please refer to Node-RED's user guide: https://nodered.jp/docs/user-guide/nodes
5. Can you help us with this feature?
Beta Was this translation helpful? Give feedback.
All reactions