ComfyUI Node

Simple Text Insert

Simple Text Insert

By KLL535·Created 9 months ago·Updated about 20 hours ago· 85
Simple Text Insert
    • text
    text
    placeholder$1
    insert

    Here's the workflow shape that begs for this node: you have a template - "Describe this image of a {subject} taken at {time}" - and the actual values come from elsewhere in the graph, a dropdown, a batch item, a previous LLM output. Simple Text Insert is the fill-in-the-blank node: it takes a template, finds a placeholder, and drops your text in. That's the whole job.

    It's one of the pack's late additions (arrived alongside the batch and replace utils in V3.8), and it's aimed squarely at the "assemble a user prompt from parts" problem that keeps coming up once you're captioning with Qwen. The main node's variables input does a fancier version of this with {placeholders}, but that system is disabled by default and requires JSON - this node is the blunt, always-on version for a single substitution.

    Inputs and outputs

    • text - your template, e.g. Describe this image of a $1.
    • placeholder - the marker to replace. Default is $1 (so you don't fight with {} syntax meant for the variables system).
    • insert - the value to substitute in place of the placeholder.

    Output: text, the template with the placeholder replaced.

    Wire it like this: text from a prompt-template node, insert from a dropdown or batch value, and the output straight into the Qwen node's user_prompt. The placeholder can appear multiple times - every occurrence gets replaced.

    Install

    It ships in KLL535/ComfyUI_Simple_Qwen3-VL-gguf, same as the main node:

    cd ComfyUI/custom_nodes
    git clone https://github.com/KLL535/ComfyUI_Simple_Qwen3-VL-gguf
    

    or ComfyUI Manager (search ComfyUI_Simple_Qwen3-VL-gguf), restart, F5.

    The honest take

    This is a deliberately small tool. If you need a single substitution, it's the simplest thing that works, and it's sitting in the same category as the Qwen nodes, so it's right there. If you need multiple placeholders replaced at once, or you want auto-fill of things like image dimensions, the main node's variables input is the more powerful route (feed it {"subject": "a red car"} JSON and use {subject} in your prompts). And if you need find-replace on arbitrary text rather than a named placeholder, the pack's Simple Text Replace node is the sibling for that. Simple Text Insert occupies the exact middle: one template, one value, no learning curve, no surprises. Sometimes that's precisely what you want at 2am when the prompt isn't coming out right.

    Category🌐 SimpleQwenVL

    Inputs (3)

    NameTypeDefaultDescription
    textSTRING
    placeholderSTRING$1
    insertSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING