String Appender (Suffix)
Stick a suffix onto your prompt
- STRING
Sometimes you don't want to hand-edit a prompt - you want to append to one coming from somewhere else. String Appender (Suffix) is the node for that: it takes an input string, a separator, and a fixed suffix, and returns the joined result. That's it, and that's exactly what you need when the same trailing tags should land on every prompt in a batch.
Inputs
- input_text - a string input from another node (it's marked
forceInput, so you can't accidentally convert it into a widget - it wants a wire). - separator - what goes between the two parts. Default is a single space. If you type
\nas the literal two characters, it becomes a real newline. - text_to_append - the suffix.
Output: a single STRING.
Where it fits
- Batch prompting: run your base prompts through String Splitter, append a shared quality suffix to each, and re-feed. Since the appender is a single-string node, ComfyUI iterates it over the list for you.
- LoRA trigger phrases that live at the end of a prompt (some trigger words are written to be trailing).
- Adding camera or lighting tags to a prompt that arrives from another node or a file.
Gotchas
Note the default separator difference between the two siblings in this pack: the Appender defaults to a space ( ), while the Prepender defaults to , . If you're building symmetric workflows, set them deliberately or you'll get "dogphotorealistic" instead of "dog photorealistic".
Also worth remembering: it's one input string in, one string out. If you're appending the same suffix to many prompts, either put the splitter upstream (ComfyUI handles the fan-out) or reach for the splitter-based pattern.
Installing this node
One of the 16 nodes in the lzits Nodes pack (Lior Zitser, MIT). Install via ComfyUI Manager (search "lzits Nodes") or:
cd ComfyUI/custom_nodes
git clone https://github.com/lzitser23/lzits-nodes.git
Restart ComfyUI. No dependencies.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| input_text | STRING | — | |
| separator | STRING | — | |
| text_to_append | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |