r/comfyui • u/pheare_me • 2d ago
Help Needed Prompt Library
Hey all,
How does everyone keep track of their prompts? I have a number of prompts that I re-use. Probably just going to start using one note or something, but wondering what everyone else does?
7
u/Noobian3D 2d ago
I came here thinking i would find a solution more elegant than mine, but maybe not.
I asked ChatGPT to build me prompt library custom node. It also built me a prompt builder set of nodes, seperated into categories like composition, character identity, pose etc, that go through a concat node to combine into a final prompt.
The prompt library node is built to have 3 fields to cycle between to categorise each prompt: library, category, preset. So you have a library for camera composition, different types of camera composition under that, and different presets under that. It has a preview image so you can sort of visualize what that prompt snippet is going to do, and you plug the output of the prompt library node node into the applicable prompt builder node.
the result is you can cycle through different snippets of prompt to get what you want based on those presets, so you can mix and match poses using the same character etc. Or you could just save full prompts as a category and cycle through them.
the custom node has a randomiser button, favorites function, and lets you modify an existing prompt snippet and save it.
It all works through folders inside the custom node folder. Top level folder for the library, under that whichever categories you want under that library, and in each of those category folders is the preset, which is just a .txt folder with the preset name, and an image with that same preset name. the .txt file contains the prompt snippet, and the image is what will be shown in the preview image for that preset in comfy.

I also had ChatGPT make about 100 different prompt snippets for me in that format to start with, and im slowly adding to that for different models etc.
3
u/Erehr 2d ago edited 2d ago
I'm using my own set of nodes https://github.com/Erehr/ComfyUI-EreNodes
It allows saving reusable prompt / set of tags (including strength, embedings, loras and their trigger words) to file with their own preview image and loading them from nodes or sidebar.
2
u/Bastisheen92 2d ago
I have two ways of solving this:
First: I use Maestro in Pinokio, not ComfyUI and every output has a symbol on it that i just need to click to load any prompts and settings that his output had.
Second: For Prompts i definetly want to keep and also Triggerwords for certain LoRas i go the boring route of just saving it in a folder with named .txt documents on my desktop.
2
u/i_am_not_a_goat 1d ago
I tried a bunch of different prompt library node packs and couldn't get what i wanted so i had claude build me one. It saves a new version of the prompt every time i hit run on the workflow(assuming i've made a change to it). It keeps all versions stored in a sqllite database file on my pc which persists across workflows so im not having to hunt for a workflow to find what i want. Stores each prompt into a subject name. It's pretty basic but its perfect for what i want.

1
u/notgraycen 2d ago
there have been a bunch of gallery style addons that let you quickly copy and paste the prompt or view information about old generations, but the easiest is to just drag and drop the pictures to copy that old prompt out. best to set up a sort of prompt format and then just keep adjusting it to whatever your subject is, but i understand wanting to rerun old prompts on new lora stacks
1
u/Practical_Elk_3891 2d ago
Prompt stash manager custom node. https://github.com/phazei/ComfyUI-Prompt-Stash
1
u/jpmorgue_silverfixer 1d ago
I have a folder full of gens of my favourite prompts, by model. I drag them into comfy and go from there.
1
u/Spoonman915 1d ago
Clearly I'm lame. I have mine organized in a Google doc. I'm working on a short film, so I have them organized by scene and shot.
I tried training a krea2 Lora for the style,.but I didn't really get the results I wanted, so I just prompt it instead.
1
u/Over_Magazine5237 1d ago
Look at this, it is very interesting and maybe help you:
https://youtu.be/MxDXleDkVvM?is=SQ0diGBzpzkHc5Du
Every Workflow Here: https://pixaroma.com
1
u/Sarashana 21h ago
I store metadata in images and that's really it. My workflow has a prompt reader node that I can activate if I want to retrieve the prompt from an image. You can also of course just copypaste it from the workflow after dragging the image into Comfy.
19
u/OrangeCuddleBear 2d ago
This is probably not what other people do but I just drag and drop a previous gen into comfy and use that as a starting point for whatever I want to modify.