Files

14 KiB

This documentation is ongoing and will continue to improve

Prompt Manager

Allows for Saving and Loading prompts quickly using the Prompt Browser UI.

  • Clicking the Blue Prompt Name button, under the text area, will open the Prompt Browser.
  • Pressing the < > on each side of the button will quickly switch to the next prompt.
  • In Prompt Browser mode:
    • Click the + to create new Categories.
    • Generate Thumbnails for Prompts or Categories (Right Click)
      • If not set, a Pop Up will ask you to select the model to use for generation.
    • Enable Edit mode to enable writing Prompts directly in the Browser.
      • Be sure to save the prompt before generating its thumbnail
    • Right click provides other options such as:
      • Tagging as NSFW (filtering by default can be enabled in prefs)
      • Moving or Renaming
      • Pasting an image in as a Prompt
      • Generating a thumbnail for a Prompt
    • It is also possible to simply drag an image over a prompt to replace its Thumbnail.
  • On the node's Main UI:
  • Use Prompt input toggle to display incoming prompt (from Prompt Generator for example).
    • Toggling off allows editing that new prompt.
  • Use LoRA input allows choosing which LoRAs are used:
    • Prompt LoRAs Only: This turns off any LoRAs connected to our node.
    • Combine LoRAs: This uses both the prompt and incoming LoRAs, but will remove duplicates.
    • Input LoRAs Only: For those times when you want just the Prompt but use your own new recipe.
    • Do note: If a prompt is saved again, this can change the LoRAs assigned to the Prompt
  • LoRA Support:
    • Supports the Add-On LoRA Manager to display LoRA Thumbnails on Hover.
    • LoRA input supports either Traditional LoRA Stackers or the new included Multi LoRA Stack.
    • Using normal LoRA Stackers, two stacks of LoRAs can be used and will be displayed in our UI.
    • Connecting Multi LoRA Stack instead allows up to four stacks to be displayed.
      • Multi LoRA Stack uses the LoRA Manager add-on at its core and is needed for it to work.
    • When LoRAs are used, the UI will display them as tags, allowing strength editing or toggling On or Off.
    • A list of Trigger words can be connected and will be displayed as Tags that can be toggled On or Off.
    • LoRAs are saved with prompt entries; this includes their state (On or Off) as well as their Strength.
    • Missing LoRAs will be displayed as Red.
  • The Save Button opens up the Prompt Browser, allowing saving under any category.
  • The New Prompt Button is practical when you want to clear everything, including LoRAs, and start fresh.
  • The More button allows access to Exporting your Saved Prompt, but also merging another JSON. Be careful.

Prompt Manager (Basic)

A simpler no frills version that supports only Prompts. (This is the OG node)

  • Select category and prompt using a purely comfy UI.
  • If saving over an existing prompt, LoRAs and Thumbnails will be preserved.
  • If NSFW filtering is enabled, NSFW Prompts will be hidden.
  • LLM input toggle works similar to full node.

Prompt Generator

Generates prompts using a local LLM. Supports either Llama.cpp or Ollama, but can also be used directly with Comfy's Text encoders. Allows downloading of 3 different sizes of Unsloth's Qwen 3.5, but users are free to add more models in models/gguf. If found, the add-on will list them. (Refresh when adding new ones)

  • Comes with a bundle of pre-made System Prompts.
  • Use the arrows beside the system prompt name to cycle through saved prompts across categories, or click the name to open Prompt Browser on System Prompts. When loading workflows, legacy names such as Enhance Prompt (Image) are matched to current entries. Missing prompts fall back to Image / Enhance Prompt (or the first available entry if that default was removed), without changing other widget values.
  • Create your own system prompts with the Prompt Library Hub (sidebar) or by clicking the system prompt name
  • I highly recommend using the rgthree add-on and enable "Auto Nest Subdirectories in Menus". This will display categories as submenus.
  • Options to output in JSON format and enable Thinking mode.
  • The stop_server_after toggle:
    • Kills Llama.cpp after generating the prompt
    • Tries to force Ollama to unload the current model
  • The clear_vram_on_run toggle:
    • Unloads Comfy's model from memory before generating the prompt
    • Clears Vram again once the prompt is generated.
    • It is recommended to leave on, unless you are using small models
  • Both Stop_server and clear_vram are ignored when using Text encoders, as we instead let Comfy manage the VRAM.
  • Expected llama.cpp startup failures log one actionable summary without a console traceback. Enable Show everything in Console in Prompt Generator Options and retry to see the traceback, full launch command, and server stderr. The workflow still fails normally, and unexpected errors retain their tracebacks.
  • Lastly, the Model Selection:
    • (Use Default): Uses the default model set in preferences, or the first found, if not set.
    • Missing saved model selections fall back to the default selection with a console warning. If no suitable model is available, generation still reports an error.
    • 3 Different Quant size of Qwen 3.5 can be automatically downloaded.
    • Any models you add in models/gguf, or any custom folder if set in preferences.
    • If you no longer want to see the built-in download entries, enable the Hide downloadable built-in models preference under Prompt Manager settings.
  • For Multi-image support, connect the Generator Option node.
  • Use the Prompt Generator Options node for controlling model parameters.

Prompt Generator Options

This node provides extra control to Prompt Generator and is NOT mandatory.

  • Modify the selected system prompt, by either appending extra instructions or replacing it entirely.
  • Provides extra images input for a Total of 5.
  • Change the System settings for the model
  • Change the GPU used by the LLM

Prompt Library Hub

The Prompts button in ComfyUI's left sidebar opens the Prompt Library Hub (hide it with Settings > Prompt Manager > 4. Advanced Preferences > Show Prompts Sidebar Button): one place to browse, edit, import and export every Prompt Manager library. It has three sections:

  • Saved Prompts: pick the type with the Prompt Manager / Prompt Composer / Prompt Layout / Prompt Recipe buttons (saved through Prompt Manager or Library Manager).
  • Saved Snippets: the snippets used by Prompt Composer.
  • Saved System Prompts: the system prompts used by Prompt Generator.

Every section has the same three buttons:

  • Browse & Edit: opens the Prompt Browser on that library with the Edit tab on.
  • Import: merge a file; when entries already exist you choose to keep or overwrite them. Snippets and System Prompts can also be replaced from a file, and System Prompts can restore the built-in defaults (adds back missing built-in prompts without touching yours). Saved Prompt types share one file, so they only merge.
  • Export: pick the categories to export as one JSON file (Snippets export selected prompt groups as a ZIP).

The Prompt Generator's system prompts are stored in prompt_generator_data.json, so you can author your own. Built-in prompts added by updates can be brought into your saved system prompts with Restore defaults.

Prompt Extractor

Extract prompt, model, and LoRA info out of images, videos, and JSON workflow files.

  • Supports ComfyUI, A1111/Forge, and WebP metadata formats.
  • Grabs the frame of your choice from videos using a time slider.
  • Dual LoRA stack extraction for compatible workflows.
  • Can browse from either the input or output folders directly.
  • Can also be used as an advanced media loader with metadata awareness

Prompt Layout Builder

Draw a layout of boxes over a scene prompt, or load one from an LLM, and output it as a layout prompt for MOSS-Image, Ideogram 4 or Krea 2.

  • The canvas follows the aspect ratio and megapixels, or a connected image's ratio with Use Reference Ratio. A connected image is also shown behind the boxes.
  • Draw, move and resize boxes on the canvas, or type exact x/y/width/height values. Each box is an Object, Character, Text (with the exact words to render) or Panel (shown in Krea 2 mode), with a description and an optional color palette.
  • The thumbnail button beside a description picks a Prompt Composer snippet for the box.
  • Full screen editor, grid overlay, canvas text size, undo/redo (Ctrl/Cmd+Z), duplicate (Ctrl/Cmd+D) and delete (Del).
  • A hint lists what is missing, such as a box without a description.
  • Output formats:
    • MOSS: MOSS-Image layout JSON (the same format as the core MOSS-Image Layout Prompt), with meta tags, canvas type and palettes.
    • Ideogram: Ideogram 4 JSON caption (the same format as Build JSON Prompt (Ideogram)), with background, photo or art style, aesthetics, lighting, medium and a style palette.
    • Krea 2: Krea 2 grounding lines: a one-sentence summary, @style; medium, ~background, then one line per box (panels first). Character boxes get a Person / Anime character / Furry tag and an optional ID; reuse the ID to keep the same character across panels. Requires the krea2-turbo-bbox model or LoRA, found here: jimmycarter/krea2-turbo-bbox. See its PROMPTING.md for the prompt format and sampler settings.
  • Use import_json reads the layout from import_json and locks the editor. It accepts layout JSON (percent, 0-1000 or MOSS-native boxes), Ideogram 4 captions, Krea 2 grounding lines, Create Bounding Boxes elements, or a saved layout's manager_data from Library Manager. Turn it off to keep editing the imported boxes.
  • Prompt Generator system prompts for layouts (Bbox category): MOSS Layout, Ideogram Layout and Krea 2 Layout, each with Create and From Image versions. If they are missing, use Restore defaults for System Prompts in the Prompt Library Hub.
  • Outputs: prompt, preview (the boxes drawn over the canvas), width, height and manager_data (save it with Library Manager).
  • Bbox Converter converts layouts to and from ComfyUI's bounding-box types, so the builder can be chained with other box nodes. Connect a layout_json (any format the builder imports) or bboxes (bounding boxes, Create Bounding Boxes elements or their JSON); with both connected, a toggle picks the source. It outputs layout_json (passed through, or a percent layout when converting bboxes, without a prompt), pixel bboxes and elements.

Recipe Toolset (Experimental)

The Recipe Toolset are a set of experimental nodes to lets you build, manage, and rerun reusable pipelines. You can write recipes from scratch in Builder, combine them with Prompt Manager / Prompt Manager Advanced to reuse saved prompts, or import existing metadata through Extractor when you want to bootstrap from something you already made. Then saved them as complete Recipes.

As Stated these were an experiment into improving Manager, but as been put aside a bit. The technology behind it is what allowed for Thumbnail Generation in Prompt Browser. The Recipe Relay node is great when creating slick workflows with a single link between subgraph, as it can stack 4 workflows of data in a single connection.

Recipe Builder

The main place to create or tweak recipes.

  • Build or modify recipes from scratch in one central spot.
  • Inspect and adjust recipe fields without wiring every parameter by hand.
  • Use it standalone, or connect it with other recipe/prompt nodes.
  • Works well with Prompt Manager so saved prompts can be slotted into recipe-driven pipelines.
  • Great for iterative tuning: extract once, keep tweaking values and rerendering until the pipeline feels right.
  • Helps standardize presets so repeated jobs start from the same known-good setup.

Recipe Extractor

Reads and normalizes workflow metadata into reusable recipe data.

  • Converts raw generation metadata into a cleaner recipe format that's easier to edit and pass between nodes.
  • Keeps important settings intact when moving from one-off runs to reusable setups.
  • Useful when you want to recreate a look/style from an existing output and iterate from there.

Recipe Renderer

Runs recipe-driven generation so you can rerun pipelines quickly.

  • Interprets recipe data during execution to reproduce prior results or batch variants with minimal manual work.
  • Cuts down setup time for repeated jobs by moving configuration into reusable recipe data.
  • Especially handy when testing different prompts or inputs while keeping the same core recipe.

Recipe Relay

A clean handoff point for recipe data between nodes.

  • Passes recipe data and compatible context across the graph.
  • Keeps larger graphs modular and easier to follow.
  • Preserves context through the pipeline, so you don't lose recipe continuity when splitting graphs into stages.

Recipe Model Loader

Loads models/checkpoints based on recipe data.

  • Resolves model selections encoded in recipes so execution follows the intended model path automatically.
  • Supports model slot selection and loader-specific behavior.
  • Makes recipe playback more reliable across sessions by tying loader behavior to the saved recipe, not memory.
  • Useful for multi-model pipelines where model choice is part of the recipe itself.

Saving Recipes (Library Manager)

Recipe nodes pass their data as manager_data, the same type used by Prompt Manager, Prompt Composer and Prompt Layout Builder. Save, browse, and reuse recipes with the Library Manager (it replaces the former Recipe Manager).

  • Persistent recipe storage so successful setups can be cataloged and recalled quickly.
  • Works with Builder for quick review and updates.
  • Encourages a library-style workflow: capture working recipes, name/tag them, and reapply them across projects.
  • Good for keeping repeatable production presets while still allowing safe edits over time.

Model Family Support

Built-in support includes:

  • Flux 1
  • Flux 2
  • Ernie
  • SDXL
  • Wan
  • Qwen
  • Z-Image
  • Wan Image
  • Wan Video (I2V and T2V)