Nodes/comfyui-prompt-composer/Prompt Composer Merge
ComfyUI Node

Prompt Composer Merge

The plain glue node that joins two prompt strings

By florestefano1975·Created 3 years ago·Updated 6 months ago· 305
Prompt Composer Merge
    • text_out
    text_a
    text_b

    This is the plumbing node of the pack, and it's about as simple as a custom node gets: two string inputs in, one string out. No weight slider, no active switch, no text_in_opt, no typing box. Its entire job is joining text_a and text_b into a single string. You reach for it when you've built two separate chains - say, a character description built out of Single Text and Grouping nodes, and a background description built the same way - and you need to stitch them into one string before it hits your CLIP Text Encode.

    How it works

    There's genuinely not much mechanism to explain. text_a and text_b go in, they get joined, text_out comes out. It doesn't insert a comma or a space for you - it joins exactly what you give it, so if you want a separator between the two halves, put it at the end of text_a or the start of text_b yourself before it reaches this node.

    The inputs and outputs that matter

    • text_a (string, required) - the first chunk.
    • text_b (string, required) - the second chunk.
    • text_out - text_a and text_b, joined.

    That's the entire schema. No optional inputs, nothing else to configure.

    Where it fits

    Everywhere else in Prompt Composer, chaining happens one node at a time via text_in_opt, feeding one accumulated string forward. Merge is for when your prompt isn't a single line - it's two (or more, chained through multiple Merge nodes) independent branches that need to become one string at a specific point in the graph, rather than one long sequential chain. Think two sub-prompts converging, not one prompt growing.

    How to install it

    ComfyUI Manager: search florestefano1975, install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/florestefano1975/comfyui-prompt-composer
    

    restart ComfyUI. Nothing to download beyond the code - no checkpoints, no heavy Python requirements, so this is a fast, low-stakes install.

    Common issues & troubleshooting

    Your merged prompt reads like two words mashed together. That's on you, not a bug - Merge doesn't add a separator. If text_a ends in "…knee length" and text_b starts with "standing in…", you'll get "…knee lengthstanding in…" unless you've put a comma and space at the seam yourself.

    You want to temporarily remove it from the graph. Unlike every other node in this pack, Merge has no active bypass switch - it's the one node in the family without one, because it has nothing to weight or toggle in the first place. To pull it out, you'll actually need to rewire around it rather than flipping a checkbox.

    Wrong node for weighting. If what you actually want is to combine two chunks and apply a group weight to the result, this isn't it - chain the output into Grouping instead. Merge only concatenates.

    CategoryAI WizArt/Prompt Composer Tools

    Inputs (2)

    NameTypeDefaultDescription
    text_aSTRING
    text_bSTRING

    Outputs (1)

    NameTypeDescription
    text_outSTRING