Nodes/Gprompts/GPrompts
ComfyUI Node

GPrompts

Dynamic prompt generator with support for random {}, sequential {{}}, and wildcard __word__ syntax. A delimiter_style toggle switches to <> / <<>> delimiters for use inside JSON prompts. Registers 0-9 let a chosen value be reused: {{0 monkey|dog}} stores the pick and {{0}} recalls it; sequential and random blocks have separate register banks. Perfect for creating variations in prompts, batch processing, and A/B testing different prompt combinations. Supports weighted options and nested wildcards from text/json files.

By GadzoinksOfficial·Created about a year ago·Updated 2 months ago· 2
GPrompts
    • text
    • dynprompt
    • computed_prompt
    • seed
    text
    delimiter_stylecurly { }
    seed0
    iteration-1
    computed_prompt
    Categorytext

    Inputs (5)

    NameTypeDefaultDescription
    textSTRINGInput text with dynamic blocks. Curly style: {option1|option2} random, {{option1|option2}} sequential. Angle style: <option1|option2> random, <<option1|option2>> sequential. __wildcard__ for wildcard files. Registers 0-9 reuse a chosen value: {{0 monkey|dog}} stores the pick, {{0}} recalls it (sequential and random banks are separate).
    delimiter_styleoptCOMBOcurly { }Delimiters for dynamic blocks. 'curly { }' is the classic {a|b} / {{a|b}} syntax (now JSON-safe). 'angle < >' uses <a|b> / <<a|b>> instead, handy when the prompt itself is JSON.
    seedoptINT00–18446744073709550000Seed for random generation (combined with iteration for reproducibility)
    iterationoptINT-1Iteration counter (-1 for auto-increment, 1+ for fixed iteration)
    computed_promptoptSTRINGOutput of the processed prompt (read-only)

    Outputs (4)

    NameTypeDescription
    textSTRING
    dynpromptDYNPROMPT
    computed_promptSTRING
    seedINT