Burve Prompt Selector 14
Fourteen prompts in one node, switch with a single integer
- selected_prompt
- selected_index
A prompt bank in a single node: fourteen multiline prompt slots, and an index input that picks which one comes out. Change the index from 1 to 7 and the node hands you a completely different prompt. It's the ComfyUI equivalent of a wildcard, except the selection is explicit and data-driven instead of randomized at parse time.
Where this earns its keep is variation sweeps. Instead of duplicating a CLIP-encode or a generation node fourteen times, you store the variations here, drive the index from anything that produces an integer - a batch iterator, a frontend widget, another node's output - and one graph explores all fourteen prompts. It's a clean way to keep prompt variants in one place and to make the "which prompt" part of your workflow a number you can automate.
A quick sanity note: this node is a quiet member of the pack - it's in the shipped source and registered under BurveTools/Text, but the README doesn't mention it. It works fine; it's just not part of the Gemini story the pack leads with.
How it works
Pure lookup. The fourteen prompt_1 through prompt_14 strings are stored on the node, and index selects one by position. Two safety behaviors are worth knowing because they'll bite you:
- Index out of the 1–14 range always errors. There's no wraparound, no clamping to nearest - an out-of-bounds index kills the run. The node author clearly decided a loud failure beats a silent wrong prompt.
error_on_emptydefaults to true, so selecting a prompt slot you left blank also errors. Flip it off if you deliberately keep some slots empty and want them to pass through as empty strings instead.
Inputs and outputs
prompt_1…prompt_14- multiline strings, your variants.index- integer, 1–14, default 1.error_on_empty- boolean, default true.- Outputs:
selected_prompt(the chosen text) andselected_index(echoes the input index back as an integer).
Wire selected_prompt into the prompt input of whatever generates, and feed index from a slider or an upstream node. The selected_index output is handy when you're also selecting a matching weight, seed, or model and want them to move together.
Gotchas
Because an error here cancels the queue (it throws during execution), a mis-set index mid-batch is a hard stop, not a hiccup - if you're sweeping indexes automatically, keep them clamped to 1–14. And remember the default behavior treats an empty selected slot as an error; that's usually the right call, but it's surprising the first time you run a half-populated node. Install is standard for the pack: clone https://github.com/Burve/ComfyUI_Burve_Tools.git into custom_nodes (or use ComfyUI Manager) and restart.
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt_1 | STRING | — | |
| prompt_2 | STRING | — | |
| prompt_3 | STRING | — | |
| prompt_4 | STRING | — | |
| prompt_5 | STRING | — | |
| prompt_6 | STRING | — | |
| prompt_7 | STRING | — | |
| prompt_8 | STRING | — | |
| prompt_9 | STRING | — | |
| prompt_10 | STRING | — | |
| prompt_11 | STRING | — | |
| prompt_12 | STRING | — | |
| prompt_13 | STRING | — | |
| prompt_14 | STRING | — | |
| index | INT | 11–14 | — |
| error_on_empty | BOOLEAN | true | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| selected_prompt | STRING | — |
| selected_index | INT | — |