About This
This is a custom node I've made which adds a simple utility for running a whole folder of text prompts automatically. It should work with any model or text to image workflow, so you can use it with Krea2, Flux, SDXL, Illustrious, Pony, or pretty much anything else.
The main part is the custom ComfyUI-FolderPromptLoader node. Instead of manually copying and pasting prompts into your workflow one by one, you simply point the node to a folder containing .txt files. It loads each prompt and sends them through the workflow automatically, creating a queue entry for every text file.
It also sorts the files in natural order, so prompt2.txt runs before prompt10.txt, which makes numbered prompt collections much easier to manage.
Installation & Guide
Unzip ComfyUI-FolderPromptLoader into ComfyUI/custom_nodes/, restart ComfyUI and refresh the browser.
Open the workflow
Set
folderto your prompts folder. Absolute or relative paths both work, and pasted paths with quotes are fine.Click Queue all files. You get one queue entry per text file, in natural order, so
prompt2runs beforeprompt10.
If the button doesn't show up or work, leave control_after_generate on increment, set the Run count to the number of files, and press Queue.
This is mainly designed as a small quality of life utility for anyone working with large prompt collections and wanting to batch run them without manually loading every prompt.
Where to get prompts (tip)
Well, of course, you can copy and paste each prompt from your favorite LLM or write them manually, but there is an easy way to mass produce prompts by using CivitAI itself.
Simply go to the Training a LoRA section of the website, choose any options and any names, then hit Next. In the second step, where you have to source your images, upload as many images as you want and use Auto Label.
It's pretty much free and uncensored. Once it's finished, you don't need to proceed with the actual training. Just use the Download as ZIP file option. It will download both the captions and the images.
Unpack the downloaded file and you'll have a folder full of prompts, ready to be loaded directly into this node.






