Nodes/lzits Nodes/String Appender (Suffix)
ComfyUI Node

String Appender (Suffix)

Stick a suffix onto your prompt

By lzitser23·Created 9 months ago·Updated 3 months ago· 0
String Appender (Suffix)
    • STRING
    input_text
    separator
    text_to_append

    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 \n as 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.

    Categorylzits nodes

    Inputs (3)

    NameTypeDefaultDescription
    input_textSTRING
    separatorSTRING
    text_to_appendSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING