Nodes/ComfyUI_Burve_Tools/Burve Prompt Selector 14
ComfyUI Node

Burve Prompt Selector 14

Fourteen prompts in one node, switch with a single integer

By Burve·Created 9 months ago·Updated 6 days ago· 5
Burve Prompt Selector 14
    • selected_prompt
    • selected_index
    prompt_1
    prompt_2
    prompt_3
    prompt_4
    prompt_5
    prompt_6
    prompt_7
    prompt_8
    prompt_9
    prompt_10
    prompt_11
    prompt_12
    prompt_13
    prompt_14
    index1
    error_on_emptytrue

    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_empty defaults 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_1prompt_14 - multiline strings, your variants.
    • index - integer, 1–14, default 1.
    • error_on_empty - boolean, default true.
    • Outputs: selected_prompt (the chosen text) and selected_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.

    CategoryBurveTools/Text

    Inputs (16)

    NameTypeDefaultDescription
    prompt_1STRING
    prompt_2STRING
    prompt_3STRING
    prompt_4STRING
    prompt_5STRING
    prompt_6STRING
    prompt_7STRING
    prompt_8STRING
    prompt_9STRING
    prompt_10STRING
    prompt_11STRING
    prompt_12STRING
    prompt_13STRING
    prompt_14STRING
    indexINT11–14
    error_on_emptyBOOLEANtrue

    Outputs (2)

    NameTypeDescription
    selected_promptSTRING
    selected_indexINT