AV ComfyUI Manual
01 / 64
Files
01
PART I · WORKFLOW ENGINEERING FOR COMFYUI

Graph architecture first, generative nodes second, practice third

ComfyUI becomes understandable when you first learn to read the language of the graph, then recognize recurring structures, and only after that design large, controllable workflows. This section establishes the foundation before the Hansen workflow analysis.

CONFIRMEDThis methodology is the approved structure of the manual: graph architecture → generative systems → practice labs.
01 · WHY

Why large ComfyUI graphs feel difficult to read

Most tutorials begin with generative nodes: loaders, encoders, samplers, ControlNet and VAE. What is often missing is the language of the graph itself — data types, routes, states, selectors, modules and return points.

As a result, a production workflow can look like hundreds of boxes and wires. To the person who designed it, however, it is usually a small number of larger systems: the control plane, data plane, generative modules, diagnostic checkpoints and output routes.

CONFIRMED

Primary learning order

Graph architecture first, generative nodes second, practice third.

INFERRED

Learning analogy

You cannot read a production workflow confidently until you know its “alphabet”: data types, sockets, links and the standard graph patterns built from them.

02 · THREE LEVELS OF LITERACY

From individual symbols to the language of a workflow

LevelWhat you learnOutcome
LEVEL 1 · Node LiteracyIMAGE, MASK, LATENT, MODEL, CLIP, CONDITIONING, VAE, STRING, INT, FLOAT, sockets and linksYou understand exactly what enters and leaves each node
LEVEL 2 · Graph LiteracyLoader → Encoder → Sampler → Decode; Image → Preprocessor → ControlNet; Detection → Segmentation → MaskYou recognize standard graph patterns instead of isolated nodes
LEVEL 3 · Workflow EngineeringBASE CONFIG, groups, control plane, modules, contracts, selectors, checkpoints, return points, reproducibilityYou can design and diagnose a large production graph
03 · SYSTEM THINKING

A collection of nodes is not yet a workflow

A set of connected nodes may generate an image, but a production workflow needs architecture: a clear input, a controlled route, modules with defined responsibilities, diagnostic ports and a predictable output.

The goal of Workflow Engineering is to turn the ComfyUI canvas from a “web of wires” into a system that can be read, tested, extended and handed over to another person.

04 · BASE CONFIG

BASE CONFIG — the control plane of a large graph

BASE CONFIG should be treated as the central control panel of the workflow, not as a decorative group. It determines which major branches are active, which are bypassed, and which runtime profile is assembled from the available modules.

Numeric controls and selectors answer a different question: how an already-active branch behaves. Enable/bypass logic and parameter controls should therefore remain conceptually separate.

  • MODEL LOADERS
  • INPUTS
  • CONTROL
  • SAMPLER CONFIGURATION
  • ControlNet PREPROCESSORS + EXTRAS
  • MASKS
  • PEOPLE / PPL sub-branches
  • Process SEGMENTATION / SDXL / FLUX / UPSCALE / ADD LOGO
  • OUTPUT
05 · MODULES & CONTRACTS

Every branch should have a clear input and output

A professional graph is easier to read when each major task is treated as a module: ControlNet, SDXL, PEOPLE, FLUX, UPSCALE and OUTPUT. A module should make it clear which data types it receives and what it returns downstream.

This Input / Output contract lets you study a branch in isolation, test it independently, and later assemble the Master Workflow as a system of compatible modules.

06 · CHECKPOINTS

A large workflow must be observable

Preview and comparer nodes should function as diagnostic ports. Checking only the final output is inefficient when you do not know where the result first stopped being correct.

The basic debugging rule is simple: prove the current checkpoint, then move to the next one.

07 · REPRODUCIBILITY

A professional experiment must be reproducible

Seed, model, prompt, sampler, scheduler, steps, denoise, resolution and effective selector values together define the experiment configuration. If several parameters change at once, you cannot prove which change improved or degraded the result.

  • Lock the seed and effective linked values.
  • Change one variable per test.
  • Save checkpoints, not only the final image.
  • Separate runtime facts from topology-based assumptions.
08 · COURSE ARCHITECTURE

How the complete manual is organized

PartPurpose
PART I · Workflow EngineeringNode literacy, graph language, architecture, BASE CONFIG, contracts and debugging
PART II · Generative SystemsSDXL, FLUX, ControlNet, Florence2, SAM2, masks, compositing and upscale
PART III · Hansen by TimestampsA production-first analysis of the workflow, aligned with the video timeline
PART IV · Practice LabsStandalone JSON exercises for independent branches, practice tasks and QC
PART V · Master BuildReassemble the studied modules into one large, controllable workflow
09 · FIRST PRACTICE

First exercise: learn to read the route before studying the model

  • Open any small ComfyUI workflow.
  • Do not start by looking at model names.
  • Identify the input and output data type of every node.
  • Find the beginning of the data plane and the final output.
  • Split the graph into 3–5 logical modules.
  • Mark at least one checkpoint between modules.
INFERRED

Exercise goal

Learn to see structure before attention shifts to specific models and generation parameters.