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.
GPrompts
- text
- dynprompt
- computed_prompt
- seed
◄text►
◄delimiter_stylecurly { }►
◄seed0►
◄iteration-1►
◄computed_prompt►
Categorytext
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | Input 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_styleopt | COMBO | curly { } | 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. |
| seedopt | INT | 00–18446744073709550000 | Seed for random generation (combined with iteration for reproducibility) |
| iterationopt | INT | -1 | Iteration counter (-1 for auto-increment, 1+ for fixed iteration) |
| computed_promptopt | STRING | Output of the processed prompt (read-only) |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| dynprompt | DYNPROMPT | — |
| computed_prompt | STRING | — |
| seed | INT | — |