comfy_build_workflow
Automatically constructs ComfyUI workflows for the requested intent, routing to the correct model family (SD1.5, SDXL, Flux, Wan, etc.) based on checkpoint detection.
Instructions
Build a ComfyUI workflow for an intent, routed to the detected model family.
The checkpoint family is detected from params['checkpoint'] (or auto-detected from the first installed checkpoint if ctx is provided) and dispatched to a family-specific builder. SD 1.5 is the fallback when the family can't be determined.
Intents by family: SD 1.5: txt2img, img2img, upscale, inpaint, controlnet SDXL / SD 3.5: txt2img Flux 2 / Qwen: txt2img Wan 2.2: txt2video, img2video LTX-2: txt2video HunyuanVideo: txt2video, img2video Hunyuan3D: image2_3d ACE-Step: txt2music
Args: template: Intent name (e.g. 'txt2img', 'txt2video', 'image2_3d', 'txt2music'). params: Optional param overrides. If 'checkpoint' is set, family routing uses it; otherwise the first installed checkpoint is auto-detected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| family | No | ||
| params | No | ||
| template | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |