Nodes/AUN ComfyUI Nodes/Add-To-Prompt (Multi)
ComfyUI Node

Add-To-Prompt (Multi)

Ten switchable prompt addons on one node

By loz2754·Created 8 months ago·Updated about 15 hours ago· 5
Add-To-Prompt (Multi)
    • prompt
    master_prompt
    num_addons1
    text_to_add1_modeoff
    text_to_add1
    order1prompt_first
    text_to_add2_modeoff
    text_to_add2
    order2prompt_first
    text_to_add3_modeoff
    text_to_add3
    order3prompt_first
    text_to_add4_modeoff
    text_to_add4
    order4prompt_first
    text_to_add5_modeoff
    text_to_add5
    order5prompt_first
    text_to_add6_modeoff
    text_to_add6
    order6prompt_first
    text_to_add7_modeoff
    text_to_add7
    order7prompt_first
    text_to_add8_modeoff
    text_to_add8
    order8prompt_first
    text_to_add9_modeoff
    text_to_add9
    order9prompt_first
    text_to_add10_modeoff
    text_to_add10
    order10prompt_first

    AUNAddToPromptMulti is the big sibling of AUNAddToPrompt, and it exists for the workflow that carries a small fleet of prompt addons - a style tag, a quality preamble, a LoRA trigger phrase, a negative-style corrective phrase - and wants to toggle them independently without a chain of ten nodes. It's displayed as "Add-To-Prompt (Multi)" and it packs up to ten addon slots into one node, each with its own text, its own on/off/random mode, and its own position before or after the main prompt.

    The layout takes a second to get used to because every slot owns three widgets. For addon N you've got text_to_addN_mode (on/off/random, where random is a 50/50 per run), text_to_addN (the multiline text, dynamic-prompt capable), and orderN (place it before or after the main prompt). That's 30 widgets at full stretch, which sounds like a wall - which is why the node ships with a compact mode. Double-click the node body or right-click → "Compact mode" and the config widgets fold away into overlay checkboxes and order selectors, leaving you with a tidy little panel. That compact-mode obsession is the AUN house style; the pack's README pushes it hard.

    Two inputs frame the whole thing. master_prompt is the optional base prompt all the addons get attached to (leave it unconnected if you're feeding the prompt in from elsewhere - wait, actually no: this node takes the master prompt as a widget string, so the base prompt lives here, and the single prompt output flows to your CLIP Text Encode). If you want a separate dynamic base prompt, chain this node after an AUNAddToPrompt or a text switcher instead of fighting the design. num_addons (1-10) controls how many slots are visible, so you only pay canvas space for the addons you actually use.

    The workflow payoff is a prompt-roulette setup: keep three style addons with random mode on, hold a fixed quality preamble with mode = on, and every run produces a different combination - and because each slot records its state into the workflow's aun_pginfo (the pack's PNG-info sidecar), your saved filenames can tell you exactly which combination produced the image. If you're hunting for a style you can't name, that's the feature that makes the node worth it.

    Mechanically it's a string concatenator with per-slot logic and randomness - nothing clever, which is the point; the cleverness is in the UI. Install it with the whole pack: ComfyUI Manager (search "AUN") or cd ComfyUI/custom_nodes && git clone https://github.com/loz2754/AUN-ComfyUI-Nodes, then restart. Dependency-light, no models, and if you cloned manually and see ModuleNotFoundError: piexif or cv2, pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt fixes it.

    CategoryAUN Nodes/Prompts

    Inputs (32)

    NameTypeDefaultDescription
    master_promptSTRINGOptional master prompt to extend.
    num_addonsINT11–10Number of addon slots to show (1-10).
    text_to_add1_modeCOMBOoffMode for addon 1: on=always add, off=never add, random=50/50 chance
    text_to_add1STRINGText to add (addon 1)
    order1COMBOprompt_firstOrder for addon 1
    text_to_add2_modeCOMBOoffMode for addon 2: on=always add, off=never add, random=50/50 chance
    text_to_add2STRINGText to add (addon 2)
    order2COMBOprompt_firstOrder for addon 2
    text_to_add3_modeCOMBOoffMode for addon 3: on=always add, off=never add, random=50/50 chance
    text_to_add3STRINGText to add (addon 3)
    order3COMBOprompt_firstOrder for addon 3
    text_to_add4_modeCOMBOoffMode for addon 4: on=always add, off=never add, random=50/50 chance
    text_to_add4STRINGText to add (addon 4)
    order4COMBOprompt_firstOrder for addon 4
    text_to_add5_modeCOMBOoffMode for addon 5: on=always add, off=never add, random=50/50 chance
    text_to_add5STRINGText to add (addon 5)
    order5COMBOprompt_firstOrder for addon 5
    text_to_add6_modeCOMBOoffMode for addon 6: on=always add, off=never add, random=50/50 chance
    text_to_add6STRINGText to add (addon 6)
    order6COMBOprompt_firstOrder for addon 6
    text_to_add7_modeCOMBOoffMode for addon 7: on=always add, off=never add, random=50/50 chance
    text_to_add7STRINGText to add (addon 7)
    order7COMBOprompt_firstOrder for addon 7
    text_to_add8_modeCOMBOoffMode for addon 8: on=always add, off=never add, random=50/50 chance
    text_to_add8STRINGText to add (addon 8)
    order8COMBOprompt_firstOrder for addon 8
    text_to_add9_modeCOMBOoffMode for addon 9: on=always add, off=never add, random=50/50 chance
    text_to_add9STRINGText to add (addon 9)
    order9COMBOprompt_firstOrder for addon 9
    text_to_add10_modeCOMBOoffMode for addon 10: on=always add, off=never add, random=50/50 chance
    text_to_add10STRINGText to add (addon 10)
    order10COMBOprompt_firstOrder for addon 10

    Outputs (1)

    NameTypeDescription
    promptSTRING