Nodes/comfyui-timesaver/TS Batch Prompt Loader
ComfyUI Node

TS Batch Prompt Loader

Split a multiline text into a list of prompts separated by blank lines, plus their count.

By AlexYez·Created 2 years ago·Updated 3 days ago· 11
TS Batch Prompt Loader
    • prompt
    • prompts_count
    textPrompt 1: cat Prompt 2: dog Prompt 3: bird
    CategoryTS/Text

    Inputs (1)

    NameTypeDefaultDescription
    textSTRINGPrompt 1: cat Prompt 2: dog Prompt 3: birdMultiple prompts separated by one or more blank lines. Each block becomes one prompt in the output list.

    Outputs (2)

    NameTypeDescription
    promptSTRINGList of prompts, one per blank-line-separated block.
    prompts_countINTNumber of prompts found in the text.