AD Prompt Saver
Log every prompt to a CSV paired with its image filename
- status
Appends your prompt to a CSV, paired with the image filename it belongs to. Run a batch and you end up with a prompts.csv that maps every generated image back to the prompt that made it. It's the reproducibility log you always wish you'd started keeping three hundred images ago.
Why keep a prompt log
Two reasons, and both are real. First, reproducibility: when one image out of a batch is the keeper, you want to know exactly what prompt produced it - a CSV that pairs filename to prompt answers that instantly. Second, datasets: if you're building an image/caption set for training, a CSV mapping each image name to its text is precisely the format you need. Prompt Saver writes that log as a side effect of generating, so the record builds itself instead of you reconstructing it later from memory.
How it works
It takes your prompt text and appends a row to the CSV named by csv_filename, in the folder you specify. The clever part is the filename pairing: it constructs the image filename from filename_prefix, filename_delimiter, and filename_number_padding using the same auto-numbering scheme as the pack's savers - so the name it logs lines up with the name your Image Saver writes. Wire both with matching prefixes and the CSV's filenames match the actual image files on disk.
The inputs that matter
- prompt - the text to log. Wire this from the same prompt you send to your encoder.
- csv_filename - the log file, default
prompts.csv. - folder - where the CSV lives. Point it at the same folder as your images.
- filename_prefix / filename_delimiter / filename_number_padding - the naming scheme, e.g.
Image_0001. Match these to your Image Saver so the logged names match the saved files.
The single output is status, a message confirming the write.
Common issues
The whole value hinges on the filename scheme matching your actual saver. If Prompt Saver logs Image_0001 but your Image Saver writes ComfyUI_00001, the CSV points at files that don't exist - set filename_prefix, filename_delimiter, and filename_number_padding to the same values on both nodes. Since it appends, the CSV grows across runs (that's the point), but it also means old rows stick around - start a fresh file for a new project rather than mixing runs. And make sure folder is writable and, ideally, the same directory as your images so the log and the files stay together.
Installing ComfyUI-Addoor
ComfyUI-Addoor (葵花宝典) is a utility pack from developer Eagle-CN. ComfyUI Manager: Install Custom Nodes → search "ComfyUI-Addoor" → install → restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/Eagle-CN/ComfyUI-Addoor.git
cd ComfyUI-Addoor
pip install -r requirements.txt
Restart and find it under 🌻 Addoor / prompt. Pair it with Image Saver (matching naming) to get a clean image-plus-prompt dataset.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| csv_filename | STRING | prompts.csv | — |
| folder | STRING | — | |
| filename_prefix | STRING | Image | — |
| filename_delimiter | STRING | _ | — |
| filename_number_padding | INT | 40–9 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| status | STRING | — |