Doom Multi Prompt Loader
Doom Multi Prompt Loader
- prompt
- filename
- filepath
- new_index
- status
Testing twenty prompts one at a time by hand is how you spend an afternoon re-typing text. Doom Multi Prompt Loader is the node that lets you queue them all up and let the graph chew through them: it pulls prompts from a folder, from a comma-separated file list, or from one big file, and hands them to your sampler in sequence, at random, or shuffled until you've seen all of them.
It's the kind of node you reach for the moment your prompt work stops being "one idea" and starts being "a list of ideas" - model testing, style comparison, wildcard farming, or just generating a batch where every image is allowed to be different.
How it works
Three input modes cover the realistic cases:
- folder - every text file in a directory becomes a source.
- files - a comma-separated list of specific paths.
- single_file - one file containing multiple prompts, split on the
separator(default isdouble_newline, i.e. a blank line between prompts).
Then select_mode decides the order: sequential advances by index, random picks at random (repeatable if you keep the seed stable), shuffle walks a shuffled deck so nothing repeats until you've seen everything.
The one bit of wiring you have to do is the loopback. The node outputs a new_index alongside the chosen prompt, and in sequential mode you feed that back into the current_index input. That's what makes it advance run after run instead of sitting on prompt zero forever. There's a reset_index toggle to zero it (and to reshuffle) when you're ready to start over, and a status output that summarizes mode, position, and total - handy for a DoomTextShow so you can see where the batch is.
The inputs that matter
- input_mode - folder / files / single_file. Decide this first; it changes which other fields mean anything.
- base_path - the folder, or the single file path (used by
folderandsingle_file). - file_list - used by
filesmode only. - select_mode - sequential / random / shuffle.
- current_index - where the next prompt comes from. Wire
new_indexback here. - sort_by - file sort order when reading a folder.
Outputs are prompt, filename (the source file's name), filepath (full path), new_index, and status. The prompt goes straight into your text encoder or sampler; filename can be fed to DoomSaveUltimate's prompt_filename if you want each image saved under its source prompt's name.
Setup and the catches
Standard pack install:
cd ComfyUI/custom_nodes
git clone https://github.com/PeterMikhai/Doom_Flux_NodePack
Restart ComfyUI (or search "DoomAI Nodes" in Manager). No extra dependencies.
Three things trip people up:
- Forgetting the loopback. Without wiring
new_indexintocurrent_index, sequential mode is just "prompt 0 forever." This is the single most common mistake with this node. - Shuffle state survives restart. The shuffled order is persisted, so a restart doesn't re-randomize - which is good for resuming a batch, but confusing if you expected a fresh deck. Use
reset_indexto force one. - Paths are real filesystem paths. The node doesn't browse your system for you; a typo in
base_pathjust silently yields no prompts. Double-check the path exists before blaming the node.
It's from a small, single-maintainer pack, so treat the state file that survives restarts as a feature you should understand rather than fight. Once the loopback is in, this node turns "test every prompt in my notes" into a queue you can walk away from.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| input_mode | COMBO | folder | folder — все файлы папки; files — список через запятую; single_file — один файл |
| base_path | STRING | Папка или одиночный файл | |
| file_list | STRING | Список путей через запятую (mode=files) | |
| sort_by | COMBO | name | 2 options: name, date |
| separator | COMBO | double_newline | Разделитель промптов внутри файла |
| select_mode | COMBO | sequential | sequential — по индексу; random — случайно; shuffle — без повторов |
| current_index | INT | 0 | Текущий индекс (прокидывай выход new_index сюда) |
| reset_index | COMBO | false | true — сбросить индекс/порядок shuffle |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| prompt | STRING | Выбранный промпт |
| filename | STRING | Имя файла-источника |
| filepath | STRING | Полный путь файла-источника |
| new_index | INT | Новый индекс (прокидывай в current_index) |
| status | STRING | Сводка: режим, позиция, всего |