Skip to content

I wanted a node to save my prompts and optionally take in an external prompt from a llm and save it, didn't see one, so I made it.

License

Notifications You must be signed in to change notification settings

phazei/ConfyUI-node-prompt-stash-saver

Repository files navigation

Prompt Stash Saver Node for ComfyUI

Overview 📚

Prompt Stash is a simple plugin for ComfyUI that lets you save your prompts and organize them into multiple lists. It also features a pass-through functionality, so you can hook it up to an LLM node (or any text outputting node) and capture its outputs directly—no more tedious copy-pasting! 🙌

I created this because I couldn't find any nodes that would let me cache a prompt or create and save prompts. I wanted an easy way to cache results from the LLM and store them for later use. So, I made this plugin, and I hope others find it useful too. 😊

Workflow Diagram

Features ✨

  • Save Prompts: Easily save prompts with a custom name for quick access.
  • Multiple Lists: Organize your prompts into different lists or categories.
  • Pass-Through Functionality: Connect to LLM nodes and capture their outputs directly into the plugin.
  • Persistent Storage: Your prompts and lists are saved between sessions.
  • Shared Library: All nodes share the same prompt library across your workflow.

How to Use 🛠️

Prompt Stash Saver Node

This node lets you save, load, and manage your prompts.

  1. Add the Node: Place the Prompt Stash Saver node into your graph.

  2. Input Text:

    • Option 1: Type directly into the Prompt Text field.
    • Option 2: Connect another node (like an LLM node) to the input. Toggle Use Input to use the connected input.
  3. Select a List: Use the List dropdown to choose which list you're working with.

  4. Save a Prompt:

    • Enter a name in the Save Name field.
    • Click Save Prompt. 💾
    • If you use an existing name, it'll overwrite the old prompt.
  5. Load a Prompt: Choose a prompt from the Load Saved dropdown to load it.

  6. Delete a Prompt: Select a prompt and click Delete Selected to remove it. 🗑️

Prompt Stash Manager Node

This node helps you manage your prompt lists.

  1. Add the Node: Place the Prompt Stash Manager node into your graph.

  2. Add a New List:

    • Enter a name in the New List Name field.
    • Click Add to create the list. ➕
  3. Delete a List:

    • Select a list from the Existing Lists dropdown.
    • Click Delete to remove it. 🗑️
    • Note: You cannot delete the last remaining list.

Installation 📥

  1. Download the Plugin: Clone or download this repository.

  2. Install in ComfyUI: Place the plugin folder into your custom_nodes directory inside ComfyUI.

  3. Restart ComfyUI: Restart the application to load the new nodes.

License 📝

This project is licensed under the Apache License 2.0.


Thanks for checking out Prompt Stash! If you have any feedback or suggestions, feel free to reach out or contribute. Happy prompting! 🚀


About

I wanted a node to save my prompts and optionally take in an external prompt from a llm and save it, didn't see one, so I made it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published