Nodes/SimpleSyrup/Prompt Encode Style
ComfyUI Node

Prompt Encode Style

The tiny node that writes Prompt Control's STYLE(...) tag for you

By Artificial-Sweetener·Created 3 months ago·Updated 12 days ago· 2
Prompt Encode Style
    • encode_style
    encode_styleA1111

    Some nodes are entire workflows. This one outputs a single string that says STYLE(A1111) . That's the whole node, and it's still genuinely useful if you're one of the people using ComfyUI Prompt Control for scheduled and regional prompts.

    Prompt Control has a STYLE(...) tag you drop into a prompt to tell it how to encode - STYLE(A1111), STYLE(comfy), STYLE(compel), and so on. The trouble is remembering the exact vocabulary and typing it by hand, and then repeating it across every prompt that should behave the same way. SimpleSyrup.PromptEncodeStyle replaces the remembering with a dropdown: pick the encoding style and the node emits the correctly-formatted tag as a string you can wire anywhere your prompt is assembled. One dropdown, encode_style (default A1111), one string output, also called encode_style.

    The style choices on offer, from the pack source: A1111, Comfy, Comfy++, Compel, Down Weight, and Perp. If you don't know what those mean, that's expected - this is a compatibility knob, not a creativity knob. They tell Prompt Control which prompt-weighting dialect to interpret the prompt with. A1111 is the WebUI-flavored default (and the pack author came from WebUI, so it's a natural default), Comfy matches core ComfyUI behavior, Compel is the compel-style syntax, and the others are more esoteric weight handling. If a workflow's prompt syntax looks wrong when it renders, the encode style is one of the first things to suspect.

    Context that matters: this node is a thin helper for Prompt Control. If you haven't installed ComfyUI Prompt Control, the tag it emits won't be interpreted by anything, and the node is inert. The pack treats Prompt Control as an optional integration - SimpleSyrup loads fine without it, and its Encode Prompt Batch nodes get extra scheduling and LoRA-hook features when Prompt Control is present. So the honest workflow is: you're using Prompt Control's scheduling, you want a consistent encode style across several regional or scheduled prompts, and you wire this node's string into each one rather than hand-typing STYLE(A1111) and typos.

    Install: the pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Artificial-Sweetener/SimpleSyrup
    cd SimpleSyrup && pip install -r requirements.txt
    

    or ComfyUI Manager → search SimpleSyrup → Install → restart, with a current ComfyUI (v3 extension API). No models, no dependencies beyond the pack. Troubleshooting is a single sentence: if the output tag does nothing, Prompt Control isn't in your graph, because nothing else in ComfyUI interprets STYLE(...).

    CategorySimpleSyrup/Prompt

    Inputs (1)

    NameTypeDefaultDescription
    encode_styleCOMBOA1111Prompt Control encoding style to write into the STYLE tag.

    Outputs (1)

    NameTypeDescription
    encode_styleSTRINGPrompt Control encode style text for prompt workflows.