Nodes/ComfyUI-CoachBate/CoachBate Batch Prompter
ComfyUI Node

CoachBate Batch Prompter

Outputs one prompt per queue run, iterating through all non-blank lines in a multiline text block. The starting position advances automatically after each run via the frontend; set it back to 1 to restart. Use with ComfyUI Auto Queue to generate one image per prompt line without manual re-queuing.

By CoachBate·Created about a month ago·Updated 27 days ago· 0
CoachBate Batch Prompter
    • prompt
    prepend_text
    multiline_texta beautiful sunset over the ocean a mountain landscape at dawn a city skyline at night
    append_text
    starting_number1
    max_prompts1000
    queue_all_at_oncetrue
    job_index0
    job_total0
    randomizefalse
    CategoryCoachBate

    Inputs (9)

    NameTypeDefaultDescription
    prepend_textSTRINGText prepended to every prompt before it is output.
    multiline_textSTRINGa beautiful sunset over the ocean a mountain landscape at dawn a city skyline at nightOne prompt per line. Blank lines are ignored.
    append_textSTRINGText appended to every prompt before it is output.
    starting_numberINT11–9999Prompt number (1-based) to start from, matching the gutter numbers — blank lines don't count. Advanced automatically during a run; restored to its original value when the batch finishes.
    max_promptsINT10001–9999Maximum number of prompts to run. Blank lines don't count.
    queue_all_at_onceBOOLEANtrueON — Queue All At Once (default): Pressing Queue immediately posts every prompt as a separate job into ComfyUI's queue. All jobs are visible in the queue panel up front and run back-to-back without any delay between them. Fast, but you won't see individual prompts appear in real time — they all land in the queue before the first one even starts. OFF — One At A Time (sequential): Works exactly like the Shot Loader node. Pressing Queue runs a single prompt, then waits for it to fully finish before firing the next one. You see each result appear before the next job starts. Because there is a gap between jobs, you can tweak the workflow — change a sampler setting, swap a LoRA, adjust a prompt — and the change will be picked up by the next job. To restart from the beginning, set Starting Number back to 1. The Stop button halts the sequence at any point.
    job_indexoptINT00–9999Set automatically by Queue All Prompts. 1-based position of this job in the bulk batch.
    job_totaloptINT00–9999Set automatically by Queue All Prompts. Total number of jobs in the bulk batch.
    randomizeoptBOOLEANfalseExecute the prompts in random order — never repeating — until max_prompts is reached. Reshuffled on every Run press. With max_prompts = 1 this runs a single randomly chosen prompt, handy for injecting one random prompt into a workflow. Prompts before starting_number are excluded from the pool.

    Outputs (1)

    NameTypeDescription
    promptSTRING