Nodes/ComfyUI-WildPromptor/Data To Prompt List 🔀+📋
ComfyUI Node

Data To Prompt List 🔀+📋

Data To Prompt List (WildPromptor) — turn any text or file into a prompt list

By 1038lab·Created 2 years ago·Updated 9 months ago· 97
Data To Prompt List 🔀+📋
    • prompt_list
    • prompt_combined
    text
    separator
    batch_size1
    count_start_from1
    allow_duplicatestrue
    mode
    seed0
    path

    This is the pack's "bring your own text" node. Hand it a block of text - or point it at a file - and it splits that into a list of prompts you can iterate over: forward, backward, or shuffled. If you've got a list of ideas in a .txt file, a batch of captions, or a pile of prompts you generated elsewhere, this is how you feed them into a ComfyUI batch without pasting them one at a time.

    Data To Prompt List is part of WildPromptor by 1038lab (also the author of ComfyUI-RMBG).

    How it works

    You give it text, tell it how the entries are separated, and it produces a list - one prompt per entry. It can run that list sequentially, in reverse, or randomly, and it can start counting from an offset so you resume where you left off. It's a small, flexible text-to-batch converter - the manual, file-driven counterpart to the pack's dropdown randomizers.

    The inputs and outputs that matter

    Required inputs:

    • text - the raw text to split (multiline)
    • separator - the delimiter between entries (blank has its own default splitting behavior; set it to whatever your file uses, e.g. a newline or a custom marker)
    • batch_size - how many entries to emit per run
    • count_start_from - the starting index, so you can pick up mid-list
    • allow_duplicates - whether the batch may repeat (defaults to true)
    • mode - ⬇️Sequential, ⬆️Reverse, or 🎲Random
    • seed - fixes the random order

    There's also an optional path input - point it at a file instead of pasting text into the box, which is the cleaner way to work with a long external list.

    Two outputs: prompt_list (a STRING list, for batch generation) and prompt_combined (a single STRING with everything joined, if you'd rather have one merged prompt).

    When you'd reach for it

    This is the node for workflows where the prompts live outside ComfyUI. You wrote 50 scene descriptions in a text file? Point path at it, set mode to Sequential, and batch_size to 50, and it runs the whole file. Want to spot-check them in a random order? Switch mode to Random with a seed. It's also handy downstream of an LLM prompt-enhancer that emitted several variations as one blob - split them back into a proper list here.

    It overlaps in spirit with the old wildcard {a|b|c} batching trick, but works at the level of whole prompts from a file rather than inline alternatives.

    Installing it

    ComfyUI Manager: search ComfyUI-WildPromptor, install, restart. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/1038lab/ComfyUI-WildPromptor
    

    then restart. Under 🧪AILab/🧿WildPromptor. No downloads.

    Common issues

    • Everything came out as one giant prompt - your separator doesn't match how the text is actually delimited. Set it to the real separator (often a newline) so entries split correctly.
    • Wrong entries showing - check count_start_from and batch_size; together they decide the window of the list you get.
    • The file isn't loading - verify the path is readable from where ComfyUI runs; a relative path resolves against the server's working directory, not your prompt.
    • Order isn't what I expected - that's mode. Sequential and Reverse are deterministic; Random depends on the seed.
    Category🧪AILab/🧿WildPromptor

    Inputs (8)

    NameTypeDefaultDescription
    textSTRINGDirect text input, will be processed along with file input
    separatorSTRINGSeparator for splitting text. default is empty for newline splitting
    batch_sizeINT10–1000Number of prompts to generate. Set 0 for all
    count_start_fromINT1Starting index for prompt selection
    allow_duplicatesBOOLEANtrueAllow the same prompt to appear multiple times
    modeCOMBOPrompt selection mode: Sequential, Reverse, or Random order
    seedINT00–18446744073709550000Random seed for reproducible results
    pathoptSTRINGFile path input, will be processed along with text input

    Outputs (2)

    NameTypeDescription
    prompt_listSTRING
    prompt_combinedSTRING