Nodes/ComfyUI-iTools/Prompt Builder πŸ›–
ComfyUI Node

Prompt Builder πŸ›–

A full prompt editor packed into one node

By MohammadAboulElaΒ·Created 2 years agoΒ·Updated 13 days agoΒ· 237
Prompt Builder πŸ›–
    • prompt
    • negative

    This is the most ambitious node in the pack, and it shows up in the schema as almost nothing - no declared inputs, two outputs. That's not a documentation gap; it's genuinely how it's built. Everything about how you use Prompt Builder happens inside its own custom on-canvas interface rather than through standard ComfyUI widgets, so there's nothing to enumerate as a typed input. If you've ever wished a text-encode setup came with a real editor attached instead of two bare textboxes, this is that.

    What it actually gives you

    Per the pack's own README, the node combines a dual-prompt workspace (separate, auto-resizing text areas for positive and negative) with a direct connection into the same .yaml style libraries that power Prompt Styler - you can browse categories and templates and merge them into your text with one click, right from inside the node, instead of wiring up a separate styler node.

    The one control worth understanding before you touch it is the NEG toggle, a three-state button cycling through πŸŒ• β†’ πŸŒ” β†’ πŸŒ“. Off (πŸŒ•) gives you a plain positive-only node. The middle state (πŸŒ”) adds a negative output pin without showing a negative textarea - it pulls a default negative straight out of the active .yaml file automatically. Full UI (πŸŒ“) shows the negative textarea too, so you can add to that default rather than just accepting it. There are also two merge modes for applying a style - blending it into your existing text server-side, or just appending the style's keywords to the end - plus a reset/undo button that steps back through your edit history or clears the field outright.

    The inputs and outputs that matter

    There's nothing in required or optional - this node's interface lives entirely in its custom widget, not in typed sockets.

    Outputs: prompt and negative, both STRING, both feeding wherever your CLIP Text Encode nodes normally take text. negative is only meaningfully populated once you've moved the NEG toggle out of the off state.

    Installing it

    Via ComfyUI Manager: search "iTools" or "ComfyUI-iTools," install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/MohammadAboulEla/ComfyUI-iTools
    

    then restart. This node shares the same YAML style files as Prompt Styler, so no separate setup is needed beyond having the pack installed.

    Troubleshooting

    Negative output isn't connected or doesn't seem to do anything. Check the NEG toggle first - it starts in the off state (πŸŒ•), where there's no negative output pin at all. Click through to at least the middle state before wiring anything to negative.

    A style merge didn't do what you expected. The two modes behave differently on purpose: "merge" blends your existing text with the style server-side, while "append" just tacks the style's keywords onto the end of whatever you already wrote. If a merge result looks garbled or reordered, try append instead for something more predictable.

    You can't find a template you know exists in one of the YAML files. This node draws from the same styles folder as Prompt Styler and Prompt Styler Extra, so if a template is missing here it's worth checking whether it's actually present in the underlying .yaml file rather than assuming this node's browser is incomplete.

    Undo doesn't go back as far as you expected. The reset/undo button steps back through recent changes rather than keeping unlimited history - for anything you genuinely can't afford to lose, save it out with Prompt Saver rather than relying on in-node undo.

    CategoryiTools

    Inputs (0)

    No inputs

    Outputs (2)

    NameTypeDescription
    promptSTRINGβ€”
    negativeSTRINGβ€”