Nodes/ComfyUI-PromptsO/💀Prompts Combine
ComfyUI Node

💀Prompts Combine

Screw two prompts together with 💀Prompts Combine

By S4MUEL-404·Created 11 months ago·Updated 10 months ago· 3
💀Prompts Combine
    • combined_prompt
    prompt_1
    prompt_2
    prompt_3
    prompt_4
    separator,

    💀Prompts Combine is the glue node of the ComfyUI-PromptsO prompt family: it takes up to four prompt strings and merges them into one, with a separator you control. That's the whole job, and it's a job that comes up constantly once you start building modular workflows instead of typing one giant prompt into a text box.

    The mental model: keep your prompts as reusable parts - a subject block, a style block, a lighting block - and assemble them at the end. This is exactly the "block structure" that prompt engineering has moved toward on the newer chat-template models: a clean tag block for subject and setting, then a natural-language paragraph, joined with whatever separator your target model expects. Comma for the SDXL-lineage models, a newline for the instruction-following ones. One node, four sockets, problem solved.

    How it works

    Simple string concatenation. prompt_1 and prompt_2 are required; prompt_3 and prompt_4 are optional. Every part gets joined by the separator string, which defaults to ", ". The node returns a single combined_prompt (STRING) that drops straight into a CLIP Text Encode, another Combine, or a 💀TextWithGrok system prompt - whatever eats a string.

    Two behaviors to know. First, only connected parts get joined; leave socket three dangling and the output is just parts one and two with the separator between them. No stray empty strings, no trailing commas from unconnected sockets. Second, the separator is a literal string, so you can use ", " for tags, "\n\n" if your model likes block separation (that's the empty-line-between-blocks trick from the prompt-engineering playbook), or anything else your encoder is happy with. You're not limited to comma.

    The inputs that matter

    • prompt_1, prompt_2 - required. The order matters: earlier tokens get stronger attention on most models, so put the subject in first.
    • prompt_3, prompt_4 - optional extra parts.
    • separator - the join string. Default ", "; change it freely.

    Output: combined_prompt, a single STRING.

    Install

    Same pack as the rest of the 💀 PromptsO nodes:

    cd ComfyUI/custom_nodes/
    git clone https://github.com/S4MUEL-404/ComfyUI-PromptsO.git
    cd ComfyUI-PromptsO
    pip install -r requirements.txt
    

    Restart ComfyUI, or use ComfyUI Manager and search "PromptsO". The requirements file drags in torch/transformers/the Janus repo for the pack's other nodes - heavy for this one, but it's a shared install and pip does it once.

    Common issues

    • Output is missing parts - you didn't connect them. Only connected sockets are included.
    • Things run together / no separator - the separator field is blank or a single space. Set it to ", " and move on.
    • Order wrong in the result - Combine joins in socket order, so rewire rather than fight it.

    Is this node worth installing a whole pack for on its own? No - ComfyUI's built-in text concatenation exists. But if you're already in this pack, or you want the four-socket convenience without a regex node, it's a perfectly good way to keep prompt parts separate and legible. The real win is workflow hygiene: read the graph and know exactly what block feeds what.

    Category💀PromptsO

    Inputs (5)

    NameTypeDefaultDescription
    prompt_1STRINGFirst prompt to combine
    prompt_2STRINGSecond prompt to combine
    prompt_3optSTRINGOptional third prompt to combine
    prompt_4optSTRINGOptional fourth prompt to combine
    separatoroptSTRING, Separator string between prompts

    Outputs (1)

    NameTypeDescription
    combined_promptSTRING