ComfyUI Node

Lazy Prompt Saver

A named prompt library that lives next to your graph

By vsaan212·Created 10 months ago·Updated 9 days ago· 1
Lazy Prompt Saver
    • prompt_text
    prompt_name
    prompt_text
    saved_prompts

    Lazy Prompt Saver is the pack's answer to one of ComfyUI's oldest annoyances: there's no built-in way to keep a library of prompts and reuse them across graphs. Every workflow either embeds the prompt as a hard-coded string or you keep a notes file and paste. This node gives you a named store - type a name, type the text, save it to a JSON file, and pull it back from a dropdown anywhere you drop the node.

    It's the "no LLM needed" sibling of LazyPrompt Engineer. Where LazyPrompt expands a rough idea with an LLM, this is for the prompts you've already perfected and don't want to retype. Think of it as a text bank for the pack's other pieces - a saved prefix for prepend_text, a fixed override for prompt_override_input, a scene description you reuse across projects.

    How it works

    Three widgets, one output:

    • prompt_name - what you're calling this entry.
    • prompt_text - the prompt itself (multiline).
    • saved_prompts - a dropdown of everything already stored; pick one to load it into the text field.

    The node's UI adds the management buttons - Save writes the current name+text to disk, Clone duplicates the current entry with a _copy suffix so you can edit without clobbering the original, Delete removes the selected entry. Everything persists to a lazy_prompts.json file sitting next to the node's code, not in your workflow JSON - which is exactly the point. Your workflows stay portable, and the library stays yours.

    The single output is prompt_text - the currently loaded text, wired to CLIP Text Encode, a conditioning input, or any string socket. Whatever you've selected or typed is what flows out.

    Install and the fine print

    Install the pack once (ComfyUI Manager → search vsaan212/Vsaan212-workflow-utilities, or clone into custom_nodes and restart). No extra dependencies, no models, no API. Menu: vsaan212/utilities.

    Things worth knowing before you build a life around it:

    • Back up lazy_prompts.json. It's a plain JSON file in the pack folder, which means a ComfyUI update, a pack reinstall, or a machine move can orphan it if you're not careful. Copy it when you update the pack.
    • The dropdown refreshes after each save/delete - the pack re-reads the file, so you don't need to restart to see new entries.
    • Naming discipline pays. This is the node where portrait_neutral beats p1. A flat list of saved prompts gets unwieldy fast without consistent names.

    It's not glamorous, but it's genuinely useful - if you find yourself repeatedly wiring the same opening phrase or the same negative-ish tail into graphs, this is the node that makes it a dropdown instead of a hunt.

    Categoryvsaan212/utilities

    Inputs (3)

    NameTypeDefaultDescription
    prompt_nameSTRING
    prompt_textSTRING
    saved_promptsCOMBO1 options: -- None --

    Outputs (1)

    NameTypeDescription
    prompt_textSTRING