Nodes/ComfyUI-Helper-Nodes/Positive/Negative Prompts
ComfyUI Node

Positive/Negative Prompts

The two text boxes you actually live in, bundled

By teward·Created 2 years ago·Updated 2 years ago· 9
Positive/Negative Prompts
    • PROMPT
    • NEGPROMPT
    prompt
    neg_prompt

    Most of your ComfyUI life is spent typing into a prompt box. This node is that box, on a wire - with the negative prompt bundled in so the two travel together.

    HelperNodes_Prompt gives you two multiline text fields and two outputs, PROMPT and NEGPROMPT. Type once, and both strings ride wires to wherever they're needed: into CLIP Text Encode for conditioning, or into HelperNodes_SaveImage, which stamps them into your image metadata so every output remembers exactly what you asked for.

    How it works

    Dead simple, which is the appeal. prompt is required and multiline; neg_prompt is optional and multiline. The node returns both as plain strings, and if you leave the negative empty it coerces to "" rather than passing through something that might surprise a downstream node. There's no parsing, no tag sorting, no prompt weighting magic - that's not this node's job, and if you need weighted syntax (word:1.2) or [word] you can type it in here and the CLIP encoder will still interpret it downstream, because you're just passing text.

    One honest clarification, because it trips people up: this node does not encode anything. It outputs STRING, not CONDITIONING. You still need a CLIP Text Encode node between this and your sampler. What you get here is a convenient place to hold the text, plus outputs named clearly enough that your workflow reads like a sentence.

    Inputs and outputs

    • prompt - required, multiline. Your positive prompt.
    • neg_prompt - optional, multiline. Your negative prompt; empty is fine.
    • PROMPT and NEGPROMPT - both STRING outputs, in that order. PROMPT goes to the positive CLIP Text Encode, NEGPROMPT to the negative one.

    The honest take

    Is it essential? No. You can type into CLIP Text Encode's own widget and Save Image's prompt fields and be fine. What you get here is a single source of truth: one place for the text, one wire feeding both the graph and the metadata. If you swap prompts often or share workflows, that's worth a lot more than the five seconds it takes to add the node. If you never look at metadata, you might not need it - but then you're probably not using this pack anyway.

    Install

    Via ComfyUI Manager, search ComfyUI-Helper-Nodes. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/teward/ComfyUI-Helper-Nodes
    

    Restart ComfyUI. The pack pulls in piexif and whratio beyond ComfyUI's built-ins; Manager installs them automatically. No models to download.

    Troubleshooting

    If you wire PROMPT straight into a KSampler expecting conditioning, you'll get a type mismatch - remember the CLIP Text Encode step. Otherwise this node is about as failure-proof as a text box gets. If the negative comes back empty, that's correct behavior, not a bug.

    CategoryComfyUI-Helper-Nodes

    Inputs (2)

    NameTypeDefaultDescription
    promptSTRING
    neg_promptoptSTRING

    Outputs (2)

    NameTypeDescription
    PROMPTSTRING
    NEGPROMPTSTRING