Ep 6: Subgraphs
Why subgraphs
Workflows get messy. Even a 15-node workflow can feel like a tangle when you're scrolling around looking for one setting. Subgraphs let you select a group of nodes and collapse them into a single block. The workflow runs exactly the same. The canvas just gets cleaner.
Creating a subgraph
- Select nodes by dragging a box around them, or hold Ctrl (Cmd on Mac) and click each one
- Right-click any selected node and choose "Convert to Subgraph"
- Done. The selected nodes collapse into one block
Editing inside
Click the icon on the subgraph node to open it. All your original nodes are still there with the same connections. Along the edges you'll see "plug" nodes. These are the boundary between inside and outside:
- Left plugs: data coming in from the rest of your canvas
- Right plugs: data going out
Promoted widgets
Settings highlighted in purple are "promoted." They show up on the outside of the subgraph node so you can edit them without opening it.
- Right-click inside and select "Unpromote Widget" to hide a setting from the outside
- Right-click and select "Promote Widget" to expose one
Promote only the settings you change often: prompt text, seed, image size. Keep everything else inside. This is especially useful when building workflows for others who don't need to see every setting.
FAQ
Does collapsing nodes into a subgraph change how the workflow runs?
No. It's purely visual. Same nodes, same connections, same results.
Can I put subgraphs inside subgraphs?
Yes. Useful for very complex workflows, but keep it reasonable. Two levels deep is usually the limit before it gets harder to navigate, not easier.