Nodes/ERPK Collection/Concatenate Strings (ERPK)
ComfyUI Node

Concatenate Strings (ERPK)

Glue your text nodes together

By eRepublik-Labs·Created 11 months ago·Updated 21 days ago· 1
Concatenate Strings (ERPK)
    • STRING
    Delimiter\n
    Include Labelsfalse
    Label on Same Linetrue
    Label 1
    Text 1
    Label 2
    Text 2
    Label 3
    Text 3
    Label 4
    Text 4
    Label 5
    Text 5
    Label 6
    Text 6
    Label 7
    Text 7
    Label 8
    Text 8
    Label 9
    Text 9
    Label 10
    Text 10

    The boring nodes are the ones that save you. This one joins up to ten text inputs into a single STRING, with a configurable delimiter - and once you start wiring LLM nodes together, you'll reach for it constantly. Claude says one thing, a prompt builder says another, your wildcard file says a third; this node is the splice point.

    There's no local-compute drama here: it's a pure string operation, runs instantly, costs nothing, and doesn't touch any API.

    What you set

    • Delimiter - how inputs get joined. Defaults to a newline, and it understands escapes: \n for newlines, \t for tabs. You can also just type a literal separator like ", ".
    • Include Labels - off by default. When on, each text gets prefixed with its matching Label N.
    • Label on Same Line - whether the label sits on the same line as its text or on its own line. Only matters if Include Labels is on.
    • Label 1–10 / Text 1–10 - the actual content. Text inputs are multiline; the UI lets you add and remove slots dynamically (the pack's frontend adds an Add/Remove control and visual separators between the config and input sections).

    Empty text inputs are skipped, so you can leave slots dangling - handy when you're conditionally building a prompt from sources that may or may not fire.

    Output

    One output, STRING - the joined result. Wire it into any node's prompt input, a save-text node, or Preview Anything to sanity-check it.

    Install

    Part of the ERPK Collection:

    cd ComfyUI/custom_nodes
    git clone https://github.com/eRepublik-Labs/comfyui-nodes-erpk.git erpk
    cd erpk && pip install -r requirements.txt
    

    Restart ComfyUI. Or ComfyUI Manager → search erpkERPK Custom Nodes. No API key, no models - it's pure utility.

    The one trap is escape-sequence enthusiasm: if you type \n in the delimiter expecting a literal backslash-n, you'll get newlines (that's the feature), and if that's wrong, use \\n to get the literal two characters. And note the skipped-empty behavior - it's a feature, but it means "delimiter between every slot" isn't what you get if slots are empty; an empty first input won't produce a leading delimiter.

    CategoryERPK/utils

    Inputs (23)

    NameTypeDefaultDescription
    DelimiteroptSTRING\nSeparator between texts. Use \\n for newlines, \\t for tabs.
    Include LabelsoptBOOLEANfalsePrefix each text with its label.
    Label on Same LineoptBOOLEANtruePlace label on same line as text, or on a separate line.
    Label 1optSTRING
    Text 1optSTRING
    Label 2optSTRING
    Text 2optSTRING
    Label 3optSTRING
    Text 3optSTRING
    Label 4optSTRING
    Text 4optSTRING
    Label 5optSTRING
    Text 5optSTRING
    Label 6optSTRING
    Text 6optSTRING
    Label 7optSTRING
    Text 7optSTRING
    Label 8optSTRING
    Text 8optSTRING
    Label 9optSTRING
    Text 9optSTRING
    Label 10optSTRING
    Text 10optSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING