ComfyUI > Nodes > ComfyUI_PromptManager > Prompt Manager

ComfyUI Node: Prompt Manager

Class Name

PromptManager

Category
PromptManager/Text
Author
kiko9 (Account age: 205days)
Extension
ComfyUI_PromptManager
Latest Updated
2025-12-09
Github Stars
0.09K

How to Install ComfyUI_PromptManager

Install this extension via the ComfyUI Manager by searching for ComfyUI_PromptManager
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_PromptManager in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Prompt Manager Description

Enhances text encoder with prompt storage, search, metadata, and duplicate detection for efficient AI prompt management.

Prompt Manager:

The PromptManager is a custom node designed to enhance the functionality of the standard text encoder in ComfyUI by integrating persistent prompt storage and advanced search capabilities. It serves as a powerful tool for managing and organizing prompts, allowing you to store all prompts in an SQLite database for easy retrieval and management. This node is particularly beneficial for AI artists who frequently work with text prompts, as it offers features such as metadata management, including categories, tags, ratings, and notes, as well as duplicate detection through SHA256 hashing. By extending the capabilities of the CLIPTextEncode, the PromptManager ensures that your creative process is streamlined, organized, and efficient, enabling you to focus more on the artistic aspects of your work.

Prompt Manager Input Parameters:

text

The text parameter is the core input for the PromptManager, representing the text prompt you wish to encode and manage. This parameter is crucial as it forms the basis of the prompt storage and retrieval process. The text is processed to generate a unique hash for duplicate detection and is stored in the database along with any associated metadata. There are no explicit minimum or maximum values for this parameter, but it should be a non-empty string to be valid.

category

The category parameter allows you to categorize your prompts, making it easier to organize and search for them later. This optional parameter can be used to group similar prompts under a common theme or subject, enhancing the retrieval process. While there are no strict constraints on the values, it is recommended to use meaningful and consistent categories to maximize the utility of this feature.

tags

The tags parameter is a list of keywords or phrases that you can associate with a prompt to further refine its categorization and searchability. Tags provide an additional layer of metadata that can be used to filter and locate prompts quickly. There is no limit to the number of tags you can assign, but using relevant and concise tags will improve the effectiveness of this feature.

rating

The rating parameter allows you to assign a numerical or descriptive rating to a prompt, providing a way to evaluate and prioritize prompts based on their quality or relevance. This optional parameter can be particularly useful for sorting and filtering prompts during the retrieval process. The specific values for ratings are not defined, allowing you to customize the rating system to suit your needs.

notes

The notes parameter is an optional field where you can add additional information or comments about a prompt. This can include insights, ideas, or any other relevant details that you want to associate with the prompt. Notes are stored alongside the prompt in the database, providing a convenient way to document and recall important context or thoughts related to the prompt.

Prompt Manager Output Parameters:

prompt_id

The prompt_id is a unique identifier assigned to each prompt stored in the database. It serves as a reference point for retrieving and managing prompts, ensuring that each prompt can be uniquely identified and accessed. The prompt_id is crucial for operations such as updating metadata or tracking prompt usage, and it is automatically generated by the PromptManager upon successful storage of a prompt.

is_duplicate

The is_duplicate output parameter indicates whether the input prompt is a duplicate of an existing prompt in the database. This boolean value helps you understand if the prompt you are working with has already been stored, allowing you to update its metadata if necessary. The is_duplicate parameter is particularly useful for maintaining a clean and organized prompt database by preventing unnecessary duplication.

Prompt Manager Usage Tips:

  • To maximize the effectiveness of the PromptManager, consistently use meaningful categories and tags for your prompts. This will enhance the search and retrieval capabilities, making it easier to find specific prompts when needed.
  • Regularly update the metadata of your prompts, such as ratings and notes, to keep your database organized and reflective of your current preferences and insights.
  • Utilize the duplicate detection feature to avoid storing redundant prompts, which can clutter your database and make it harder to manage.

Prompt Manager Common Errors and Solutions:

ERROR: Failed to import Prompt Manager class

  • Explanation: This error occurs when the PromptManager class cannot be imported, possibly due to missing dependencies or incorrect file paths.
  • Solution: Ensure that all required dependencies are installed and that the file paths are correctly configured. Check the import statements for any typos or errors.

Failed to save prompt - no ID returned

  • Explanation: This error indicates that the prompt could not be saved to the database, and no prompt_id was generated.
  • Solution: Verify that the database connection is properly established and that there are no issues with the database operations. Check the input parameters for any inconsistencies or errors.

Text is required

  • Explanation: This error occurs when the text parameter is empty or missing, which is essential for the PromptManager to function.
  • Solution: Ensure that the text parameter is provided and contains a valid string before attempting to store or process the prompt.

Prompt Manager Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_PromptManager
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.