[Feature Request] ComfyUI workflow support variable #13379

Closed
opened 2026-02-21 19:11:54 -05:00 by yindo · 5 comments
Owner

Originally created by @joebnb on GitHub (Apr 26, 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 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.

As comfyUI plugin are function less,would be able the workflow json support variable? if support variable user can treat
comfyUI workflow json as dify workflow variable, it's means user can do anything.

here is a example that would be change many paramters on previous workflow:

Image

on upper workflow,i use the jina to replace workflow params and output it,but currently comfyUI plugin workflow not accept a context,would enable this?

Image

can't use variable, i think it's a tiny change on code,but enhance a lot for usage, i think also the seed id and image list should be accept passing variable

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 @joebnb on GitHub (Apr 26, 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 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. As comfyUI plugin are function less,would be able the workflow json support variable? if support variable user can treat comfyUI workflow json as dify workflow variable, it's means user can do anything. here is a example that would be change many paramters on previous workflow: <img width="1232" alt="Image" src="https://github.com/user-attachments/assets/40520685-acbc-43c2-a965-d6b534e66021" /> on upper workflow,i use the jina to replace workflow params and output it,but currently comfyUI plugin workflow not accept a context,would enable this? <img width="452" alt="Image" src="https://github.com/user-attachments/assets/89731814-6f29-4c5c-b5b8-c0657c2ed9ea" /> can't use variable, i think it's a tiny change on code,but enhance a lot for usage, i think also the seed id and image list should be accept passing variable ### 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 🌊 feat:workflow label 2026-02-21 19:11:54 -05:00
yindo closed this issue 2026-02-21 19:11:54 -05:00
Author
Owner

@AgentOpen commented on GitHub (Apr 29, 2025):

In the Diagram node of the comfyui workflow, replace the JSON image field with the DIFY field for image upload. Can you tell me?
comfyui工作流的图生图节点中,图片上传,用dify哪个字段替换json图片字段。能告诉我吗?

@AgentOpen commented on GitHub (Apr 29, 2025): In the Diagram node of the comfyui workflow, replace the JSON image field with the DIFY field for image upload. Can you tell me? comfyui工作流的图生图节点中,图片上传,用dify哪个字段替换json图片字段。能告诉我吗?
Author
Owner

@joebnb commented on GitHub (Apr 29, 2025):

In the Diagram node of the comfyui workflow, replace the JSON image field with the DIFY field for image upload. Can you tell me? comfyui工作流的图生图节点中,图片上传,用dify哪个字段替换json图片字段。能告诉我吗?

https://github.com/langgenius/dify-official-plugins/blob/main/tools/comfyui/tools/comfyui_workflow.yaml you can get this from here

@joebnb commented on GitHub (Apr 29, 2025): > In the Diagram node of the comfyui workflow, replace the JSON image field with the DIFY field for image upload. Can you tell me? comfyui工作流的图生图节点中,图片上传,用dify哪个字段替换json图片字段。能告诉我吗? https://github.com/langgenius/dify-official-plugins/blob/main/tools/comfyui/tools/comfyui_workflow.yaml you can get this from here
Author
Owner

@dseditor commented on GitHub (May 5, 2025):

Can't really using this for image upload in the workflow API.
As input image must using http post(local file not work) and Remote file not working too.
Using old Image Upload LEGACY may works for http sometime. (local file still not working at all)

@dseditor commented on GitHub (May 5, 2025): Can't really using this for image upload in the workflow API. As input image must using http post(local file not work) and Remote file not working too. Using old Image Upload LEGACY may works for http sometime. (local file still not working at all)
Author
Owner

@toddkingsing commented on GitHub (May 14, 2025):

After my practical testing, the latest version of the ComfyUI plugin now supports custom variables, as the original poster mentioned, allowing dynamic workflow transmission through template conversion.

@toddkingsing commented on GitHub (May 14, 2025): After my practical testing, the latest version of the ComfyUI plugin now supports custom variables, as the original poster mentioned, allowing dynamic workflow transmission through template conversion.
Author
Owner

@joebnb commented on GitHub (May 14, 2025):

After my practical testing, the latest version of the ComfyUI plugin now supports custom variables, as the original poster mentioned, allowing dynamic workflow transmission through template conversion.

because the original poster make pr merged before you testing 😄

@joebnb commented on GitHub (May 14, 2025): > After my practical testing, the latest version of the ComfyUI plugin now supports custom variables, as the original poster mentioned, allowing dynamic workflow transmission through template conversion. because the original poster make pr merged before you testing 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13379