Combine Prompt
Three text boxes in, one prompt out — the pack's glue node
- text
Combine Prompt is the most boring node in ComfyUI-PromptWrapper, and that's exactly why it's worth having. It takes up to three text strings and joins them with commas into one prompt. No randomization, no weighting, no datasets - just concatenation with a filter that drops empty or newline-only inputs. If you've ever wired a fixed quality line, a subject, and a style into a single CLIP Text Encode and wished there was a tidy box for it, this is that box.
How it works
Straight from the source: the node collects text_A, text_B, and text_C, throws away any that are empty, and joins the survivors with ",".join(...). The comma has no space after it in the join, which is cosmetic - models tokenize around punctuation anyway, and a raw , between phrases is the standard SDXL tag separator.
The subtle bit is what it doesn't do: it won't apply weighting syntax or reorganize anything. If you feed it (masterpiece:1.2) as one input and 1girl as another, you get (masterpiece:1.2),1girl untouched. That makes it a safe middleman for other PromptWrapper nodes - a Portrait Fashion Prompt output, a translation result, and your own fixed opening line can all converge here before hitting the text encoder.
Inputs and output
- text_A, text_B, text_C - all multiline strings, all optional in practice (default empty). Leave a slot blank and it's simply skipped.
- text - the single joined string output, wired into a CLIP Text Encode or any string input.
Install
ComfyUI Manager → search ComfyUI-PromptWrapper → Install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/clouddreamfly/ComfyUI-PromptWrapper
No models, no extra dependencies.
Where people get burned
Hardly anywhere, honestly - it's two dozen lines of code. The one thing to remember is that this joins raw text, so if one of your inputs is a whole paragraph with commas and line breaks, they'll be flattened into the output. Keep your inputs to clean phrases and you're fine. It's also a strict three-slot node: if you routinely merge five or six strings, the pack's Multi Combine Prompt exists for exactly that, with slots up to text_F.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| text_A | STRING | — | |
| text_B | STRING | — | |
| text_C | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |