description: Create a ComfyUI workflow from a template
Create Workflow
Create and optionally run a ComfyUI workflow. Template or description: "$ARGUMENTS".
Steps
-
List available templates. If no specific template was requested, call
comfyui_list_workflowsto show the available built-in templates (txt2img, img2img, etc.) and let the user choose. -
Create the workflow. Call
comfyui_create_workflowwith the chosen template name and any parameters the user specified (as a JSON string). For example:create_workflow(template="txt2img", params='{"prompt": "a sunset", "width": 768}') -
Validate the workflow. Call
comfyui_validate_workflowwith the workflow JSON returned from step 2. Report any warnings or errors. -
Present the workflow. Show a summary of what the workflow does (nodes, connections, key parameters). Offer the user two options:
- Run it — call
comfyui_run_workflowwithwait=True - Modify it — use
comfyui_modify_workflowto add/remove nodes or change parameters, then re-validate
- Run it — call
Notes
- Use
comfyui_summarize_workflowto get a readable overview of any workflow JSON. - For simple text-to-image generation,
/comfy:genis faster.