Nodes/ComfyUI_AnimeCharacterSelect/Combine Prompt Strings
ComfyUI Node

Combine Prompt Strings

The Glue That Turns Character + Action Selects Into a Real Prompt

By Icyman86·Created about a year ago·Updated 3 days ago· 5
Combine Prompt Strings
    • prompt
    character_1
    character_2
    character_3
    action_prompt
    extra_prompt

    The honest pitch

    Every picklist-based prompt builder needs one place where the pieces stop being separate strings and become a single prompt. That's this node. The other nodes in ComfyUI_AnimeCharacterSelect hand you a character string and an action string; CombinePromptStringsNode is where you mash them together with anything you want to add and hand the result to a text encoder. It's the boring, necessary endpoint of the whole pack - and boring is exactly the right quality here.

    How it works

    Three multiline STRING inputs in, one STRING out. The run function strips whitespace off each part, silently drops any part that's empty, and joins the survivors with ", ". That's the entire node. No weight syntax, no separator option, no reordering, no logic. You always know exactly what's coming out, which is precisely what you want from glue code.

    The pack's own example workflow shows the intended wiring: a couple of CharacterPromptNodes feeding into this node, and its prompt output going straight into CLIPTextEncode. Add ActionPromptNode into the middle input and you've got the complete character-selector pipeline.

    The inputs and the output

    • character_prompt - the string from CharacterPromptNode (or your own pasted tags).
    • action_prompt - the string from ActionPromptNode, or a hand-written action tag list.
    • extra_prompt - the one you'll actually want to keep typing yourself. This is where your quality prefix and style tags go. On the WAI / Illustrious / NoobAI SDXL lineage the comma-join makes sense - that family still runs on Danbooru-style tag prompting, and a short quality prefix like masterpiece, best quality is still genuinely alive there.

    The single output, prompt (STRING), feeds a CLIPTextEncode positive. Simple enough that you can also use this node standalone as a three-string joiner in unrelated workflows - it doesn't care where the strings come from.

    Installing

    Same pack, same steps as its siblings: ComfyUI Manager (search AnimeCharacterSelect), or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Icyman86/ComfyUI_AnimeCharacterSelect
    

    Restart ComfyUI afterward. No requirements.txt, no model downloads - this node is plain Python string handling. Note the README's install blurb about "the settings tab of stable-diffusion-webui" is a leftover from the original A1111 extension; ignore it.

    Common issues

    • Prompt comes out short. Empty parts are silently dropped - that's a feature for templates, but it also means an accidentally-blank action box won't error, it'll just quietly shorten your result. Check the upstream boxes if the output looks thin.
    • Double commas. The node strips whitespace but not trailing commas, so if a part ends in , you can get ,, artifacts in the middle of your prompt.
    • Tag style mismatch. The comma-join presumes the tag-prompting habits of the anime SDXL family. If your checkpoint is an LLM-encoded model, this concatenation is far less meaningful - those want structured sentences, not a comma bag.

    For what it is - a small, dependable string joiner inside a niche anime-tooling pack - it does its one job without surprises.

    CategoryPrompting/Anime Character

    Inputs (5)

    NameTypeDefaultDescription
    character_1STRING
    character_2STRING
    character_3STRING
    action_promptSTRING
    extra_promptSTRING

    Outputs (1)

    NameTypeDescription
    promptSTRING