Nodes/komojini-comfyui-nodes/FlowBuilder (adv)
ComfyUI Node

FlowBuilder (adv)

FlowBuilder (adv) — the same flow trick, now with batch looping

By komojini·Created 3 years ago·Updated 2 years ago· 77
FlowBuilder (adv)
  • value
  • value
batch_size1

FlowBuilder (adv) is the "advanced" UI version of the komojini pack's FlowBuilder. Same core idea - place it before an output node, and its Queue button runs only the subgraph feeding that output instead of the whole workflow - but the advanced variant swaps the plain single-run button for a proper little run-control panel: batch looping, auto-queue, and a toggle for whether unrelated nodes get disabled at all.

Don't overthink the naming. Both FlowBuilder (adv) and FlowBuilder (advanced) map to the same underlying class; the difference is entirely in the UI layer the pack's JavaScript attaches. If the node's name contains "adv" (which "advanced" does), it gets the advanced widgets. So this page and the 🔥(adv) FlowBuilder page describe the same node - this one is the variant as it appears in the add-node menu.

What the advanced panel adds. Three things, on top of the pass-through value input and the optional batch_size:

  • Batch size loop. With batch_size set above 1, the Queue button runs the flow that many times in sequence - each pass only executing the relevant subgraph. Useful when you want N variations of a step before moving on.
  • Auto Queue toggle. Flip it on and the loop runs continuously (it sets the batch counter to "keep going") - for watching a stage iterate until you stop it. This is the "render until I hit stop" mode, so don't leave it running unattended on long video jobs.
  • Disable Unrelated Nodes toggle. This controls the core behavior: when on (default), nodes that don't feed the flow get muted for the run and restored after; when off, the entire graph runs. Turning it off effectively makes the advanced FlowBuilder a plain "queue with a button" node.

The panel also shows a small status preview ("Flow Starting..." → "Queue finished!"), which is nice feedback on long runs.

When to use it. The plain FlowBuilder is enough for "I changed the tail, rerun just the tail." Reach for the adv variant when a single stage needs to run repeatedly - generating several candidate frames from one subgraph before you pick a winner, for example. If you don't need looping, the plain version has fewer moving parts and is less likely to confuse you later.

Install. Same one-pack install as everything else:

ComfyUI Manager → search "komojini-comfyui-nodes" → Install → restart

or cd ComfyUI/custom_nodes && git clone https://github.com/komojini/komojini-comfyui-nodes. No models. Caveat to keep in your back pocket: it's a Feb-2024 pack, and the mute/restore machinery this node depends on is exactly the kind of JS that ComfyUI's 2025 Nodes 2.0 frontend rewrite has already broken in better-maintained packs. Test the toggle behavior on a throwaway workflow before trusting it with something important.

Categorykomojini/flow

Inputs (2)

NameTypeDefaultDescription
value*
batch_sizeoptINT11–10000

Outputs (1)

NameTypeDescription
value*