Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Component for Sub-Workflows as Independent Applications #12007

Closed
5 tasks done
EmiyaredA opened this issue Dec 23, 2024 · 1 comment
Closed
5 tasks done

Add a Component for Sub-Workflows as Independent Applications #12007

EmiyaredA opened this issue Dec 23, 2024 · 1 comment
Labels
💪 enhancement New feature or request 🌊 feat:workflow Workflow related stuff.

Comments

@EmiyaredA
Copy link

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.

I was trying to design a complex workflow where some steps needed to be handled independently as smaller sub-workflows. However, Dify currently does not support adding sub-workflows that can function as standalone applications. It was frustrating because I had to manually manage these sub-workflows outside of the main workflow, which disrupted the modularity and scalability of the project.
Adding support for sub-workflows as components in the main workflow would make it easier to structure and manage complex processes. Additionally, having each sub-workflow open as an independent application would allow for better isolation and reusability across projects.

2. Additional context or comments

This feature could significantly improve modularity and organization for larger workflows. It would also align well with use cases where different teams need to handle specific parts of the workflow independently.
For example:

  • Sub-workflow components could inherit input/output parameters from the main workflow but function as standalone processes.
  • The ability to "open" a sub-workflow as an independent application would allow for easier testing, debugging, and reuse.

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added 🌊 feat:workflow Workflow related stuff. 💪 enhancement New feature or request labels Dec 23, 2024
@crazywoola
Copy link
Member

I think we do have sub-workflows here.

https://docs.dify.ai/guides/workflow/node/tools#publishing-workflow-applications-as-tools

You just need to publish existing workflow as a tool and use it in the main workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request 🌊 feat:workflow Workflow related stuff.
Projects
None yet
Development

No branches or pull requests

2 participants