ComfyUI Node

Aggregator (10)

The glue node that turns the pack into a real workflow

By itom0717·Created 6 months ago·Updated 6 months ago· 0
Aggregator (10)
    • combined_prompt
    text_01
    text_02
    text_03
    text_04
    text_05
    text_06
    text_07
    text_08
    text_09
    text_10

    Every other node in the Prompt String Selector pack is a source of prompt text. This one is the sink. Aggregator (10) takes up to ten text inputs and combines them into a single prompt string, which is the piece that makes the whole "prompts as files" idea actually usable. Without an aggregator you'd be wiring seven dropdowns into seven places; with it, you wire them all into this node and one clean string comes out the other end.

    The mechanism is exactly as boring as you'd want: it joins whatever inputs are connected, in order, with a comma between blocks. Empty or unconnected pins are skipped entirely. That last behavior is the feature - you can wire in a Pose 2 selector, leave it on 01_none, and the aggregator simply doesn't include it. No empty strings polluting your prompt, no dangling commas.

    How it works

    Ten optional inputs, text_01 through text_10, each a STRING with forceInput - meaning you connect wires to them rather than typing. One output: combined_prompt (STRING). It processes inputs in numeric order, strips each one, adds a comma if the block doesn't already end with one, and joins the results with newlines. The selectors in this pack already add trailing commas, so in practice your blocks just line up.

    The order note is worth internalizing: text_01 appears first in the output. In a prompt where block order affects the result - which is very much a thing, especially for multi-subject scenes on modern models - the input numbering is your ordering control.

    Install

    ComfyUI Manager → search "Prompt String Selector", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/itom0717/ComfyUI-Prompt-String-Selector.git
    

    Restart. No dependencies - the pack is the Python standard library, full stop.

    Gotchas

    The output has no trailing comma, but each block does - so the final string reads like character block,\nart style block,\nbackground block,\n … which is fine for a CLIP text encode. Watch the order (input number = output order), and remember that unconnected pins vanish: it's a feature, but it means a selector you thought was included can silently not be, if you left it on a no-op file.

    CategoryPrompt String Selector

    Inputs (10)

    NameTypeDefaultDescription
    text_01optSTRING
    text_02optSTRING
    text_03optSTRING
    text_04optSTRING
    text_05optSTRING
    text_06optSTRING
    text_07optSTRING
    text_08optSTRING
    text_09optSTRING
    text_10optSTRING

    Outputs (1)

    NameTypeDescription
    combined_promptSTRING