A node graph is a workflow drawn as boxes and wires. Each box, called a node, does one operation and has named inputs, and each wire carries one box's output into the next. Changing one thing means moving a wire instead of rewriting the process. ComfyUI is the best known tool that works this way.
The real benefit is that the graph is the thing that runs. What you see is what happens, so there is no gap between the written instructions and the actual process, the gap every written workflow eventually falls into. The example here is a pottery studio that wants product shots of its glazed mugs, starting from a graph the designer downloaded.
Load the graph and make a reference frame
ComfyUI writes the whole graph into every PNG it makes, in the file's text fields under the names "prompt" and "workflow". So an untouched output carries its own recipe. Drag a PNG that ComfyUI made onto the empty canvas, and the graph that made it loads.
Run it once, unchanged, with a fixed seed, and keep that frame as the reference. You need a known good result before you touch anything, or you cannot tell what a change did. For the pottery studio, the reference is one mug on one surface, saved next to the graph.
Cut it down to the nodes that matter
Community workflows are good for learning what is possible and poor as a foundation. They come with no notes, they hold nodes you do not need, and when one breaks you will not know which parts matter.
So delete one node at a time and run the graph again after each, until removing anything changes the reference frame. What survives is the part that does the work. The rest was somebody else's experiment.
Group the steps into subgraphs
A subgraph is a group of nodes saved as one box, and it keeps a graph readable past forty boxes. A single graph of two hundred nodes cannot be read or fixed, and the person fixing it late at night will be you.
Select each group of nodes that does one job, such as loading the model or upscaling, and turn it into a subgraph with the subgraph icon in the toolbar. Subgraphs need ComfyUI frontend 1.24.3 or later, so update if the icon is missing. Twelve boxes you can read beat sixty you cannot. Then write one line beside each remaining box saying why it is there, such as "keeps the glaze colour close to the real mug". That note stops the next person deleting a step that looks pointless.
Save the graph with the campaign
A campaign's images should be traceable to the exact graph that made them. In eight months somebody will want one more mug shot, and by then the graph will have changed.
Save the workflow into the campaign folder with the date in its name, such as mugs-autumn_2026-10-14.json. If a script will run it, also use File, then Export Workflow (API). That format keeps the node ids and values and drops positions and colours, which is what a script needs.
The next lesson is about batching, and making forty of something.