If your Comfyui workflow is starting to look like spaghetti, subgraphs are about to become your best friend. In this guide, I’ll walk you through how to take a messy workflow and turn it into a clean, reusable one. Subgraph. It not only connects your canvas but also allows you to create pre-built mini-systems. Z Image Turbo setup we are using in this example.
What does a finished subgraph look like?
Before we start, here’s the kind of result we’re aiming for: a single clean node where you just need to plug in your model, clip, VAE and enter your quick + settings.

Getting Started with a Standard Workflow
We start with a typical image generation workflow that consists of:
- Model Loader
- Clip
- Vae
- The sampler
- Positive/negative indicators
- Image size
- ksampler
- Vae Decode
(Insert Image: Screenshot of the actual complete workflow)

Step 1: Select the nodes to collect
Highlight all the nodes you want to merge into the subgraph.
Once selected:
- click Subgraph
- comfyui will automatically wrap nodes into a single reusable unit

Note: If your UI looks different, update to the latest comfyui build. I am also using the new one Modern node design interface, which you can enable in settings.
Step 2: Understanding the new subgraph node
After creating the subgraph, you will see input ports like:
- seeds
- Model
- Clip
- Vae
- Positive indication
- A negative sign

This is where you choose which internal settings to expose externally.
Step 3: Expose Additional Controls
Within the subgraph editor, you can expose additional parameters such as:
- Actions
- Name of the sampler
- Scheduler
- Denois
Just click on a parameter, select Exposedand comfyui will create a new input at the subgraph node.

To allow vertical, horizontal, or custom sizing, also expose: width, height, and center size
Step 5: Return to the main workflow
After exiting the subgraph, your workflow now displays a Single clean node Contains all the necessary inputs:
- hint
- Actions
- The sampler
- Scheduler
- seeds
- Width and height

At this point, rename it Turbo sampler.
Bonus: Maintaining and organizing subgraph parameters
Within the subgraph editor, you can rearrange your controls for a more professional layout. For example:
- A positive sign at the top
- A negative sign below it
- The seed is placed above width/height
You can also hide optional settings or mark them as visible.

Final thoughts
Subgraphs are a great way to streamline your Comfyui workflows. With just a few clicks, you can turn long chains of interconnected nodes into clean, organized, reusable modules. This not only helps with complex builds, but also makes your workflow demonstrations look more polished.
If you have any questions, comment below. Thanks for reading, and I’ll see you in the next one!
If you would like to support our site, please consider buying us Co-Fifor , for , for , . Grab a product or Subscribe. Need a faster GPU, get access to the fastest GPUs for less than $1 per hour runpod.io