ComfyUI Node

Text Input

A Text Box

By ComfyAssets·Created about a year ago·Updated 2 months ago· 19
Text Input
    • text
    text

    Text Input is a text field that outputs text. That's it. No API calls, no AI, no hidden processing - which makes it sound pointless until you realize ComfyUI's stock prompt boxes are glued to specific encoders and this one is a free-floating STRING you can route anywhere. You type, it outputs the same string, you wire it wherever text is accepted.

    How it works

    The node is a single multiline STRING widget wired straight through to a STRING output. The important flag is dynamicPrompts: true, which is set on the field - that's what makes wildcard and dynamic prompt syntax work. Type {red|blue} and a node downstream can expand it; drop a __wildcard__ reference in and the dynamic-prompts machinery sees it. Without that flag, the text would be treated as literal characters. This is the node's quiet superpower: it's a prompt box that behaves like a variable, not like a baked-in constant.

    The multiline field also means you can hold a full paragraph, a tag list, or a template without fighting a single-line input. Unicode and special characters pass through untouched - useful when a prompt has emoji, CJK text, or the sort of punctuation that chokes less careful nodes.

    Inputs and outputs

    • text - multiline STRING. That's the only input, default empty.

    Output: text, a STRING. Wire it into a CLIP text encoder, a text-display node, a prompt-concatenation node, or anything else that eats strings.

    Where it fits

    Three honest uses. First, prompts: it's a clean way to keep a positive or negative prompt as a named, reusable node instead of burying it in an encoder. Second, templates and configuration: if a workflow needs a string somewhere - a filename prefix, a style tag, an API prompt - this is the least surprising way to provide it. Third, prompts with dynamic syntax, where the dynamicPrompts flag earns its keep and lets the same node produce variations across runs.

    Installing it

    ComfyUI-KikoTools pack: ComfyUI Manager"ComfyUI-KikoTools" → Install → restart, under ComfyAssets → Text. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/ComfyAssets/ComfyUI-KikoTools.git
    cd ComfyUI-KikoTools
    pip install -r requirements.txt
    

    Restart ComfyUI.

    Gotchas

    There isn't much to trip on with a text box, but two things: don't expect it to do anything to the string - if you need concatenation, trimming, or substitution, that's a different node (the pack's other text utilities or any of the community string tools), not this one. And dynamicPrompts only expands if your ComfyUI has dynamic-prompts enabled and the downstream node actually processes the syntax - if you paste __wildcard__ and get it back literally, that's the expansion pipeline, not the field. Keep it simple and it's the most dependable node in the pack.

    Category🫶 ComfyAssets/📝 Text

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING