ComfyUI Node

Text Input

A plain text box that outputs plain text — that's the whole node

By Moeblack·Created 9 months ago·Updated 7 months ago· 8
Text Input
    • text
    text

    Text Input is the pack's most boring node and that's the point. It's a multiline text box with exactly one job: output whatever you typed, as a STRING. No formatting, no templating, no API call. In a pack full of chat and JSON machinery, this is the plain string utility that the whole prompt side of the pipeline hangs off.

    You'd think ComfyUI doesn't need this - it has text boxes everywhere. But most built-in text nodes are CLIPTextEncode, which exists to shove text into a CLIP encoder and hand back conditioning. If you want a raw string to feed a chat node's prompt, a Mustache template, or any forceInput STRING port, you've got few native options. This node is that missing primitive.

    What you set

    One input, text (multiline, default empty). One output, text, a plain STRING. That's the entire contract.

    The useful habit is treating it as a named reference. Type a base prompt, a system persona, a rules block once, then wire its output to several nodes - change it in one place and every consumer updates. In the SimpleChat world it slots in front of anything with a STRING input, including SimpleChatText.prompt, SimpleChatText.system, or SimpleChatMustacheRender.text.

    Installing it

    It ships in the pack, so:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Moeblack/ComfyUI-SimpleChat
    

    Restart ComfyUI, or use Manager and search "ComfyUI-SimpleChat". The pack's only dependency is aiohttp; this node is a pass-through, so install it once and it costs nothing to run.

    Gotchas

    Honestly, not much to trip on. The output is a plain string, so if you type {{var}} it comes out literally as {{var}} - substitution only happens downstream in a node that renders Mustache. And it's not an output/terminal node, so if you want the text displayed on run rather than consumed, you want Markdown Preview or a preview node instead. If you need to sweep a list of texts (one per line, fanning out to batch runs), use Text List (Batch) from the same pack - that's this node's batch-minded cousin.

    CategorySimpleChat/Utils

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING