$git clone https://github.com/ComfyAssets/ComfyUI_PromptManagerA comprehensive ComfyUI custom node that extends the standard text encoder with persistent prompt storage, advanced search capabilities, automatic image gallery system, folder-based organization, LoRA Manager integration, and powerful ComfyUI workflow metadata analysis using SQLi
| 1 | # ComfyUI Prompt Manager |
| 2 | |
| 3 |  |
| 4 |  |
| 5 |  |
| 6 |  |
| 7 |  |
| 8 | |
| 9 | A comprehensive ComfyUI custom node that extends the standard text encoder with persistent prompt storage, advanced search capabilities, automatic image gallery system, folder-based organization, LoRA Manager integration, and powerful ComfyUI workflow metadata analysis using SQLite. |
| 10 | |
| 11 | ## Overview |
| 12 | |
| 13 |  |
| 14 | |
| 15 | ComfyUI Prompt Manager provides two powerful node types for comprehensive prompt management: |
| 16 | |
| 17 | ### **PromptManager** (CLIP Encoding Node) |
| 18 | |
| 19 | A drop-in replacement for ComfyUI's standard `CLIPTextEncode` node with database features: |
| 20 | |
| 21 | - **🔄 Drop-in Replacement**: Works exactly like the standard text encoder |
| 22 | - **🤖 CLIP Encoding**: Outputs CONDITIONING for use with samplers and other CLIP-dependent nodes |
| 23 | |
| 24 |  |
| 25 | |
| 26 | ### **PromptManagerText** (Text-Only Node) |
| 27 | |
| 28 | A text-focused variant that outputs raw STRING for maximum flexibility: |
| 29 | |
| 30 | - **📝 Pure Text Output**: Outputs STRING type for use with any text-accepting node |
| 31 | - **🔗 Text Concatenation**: Built-in prepend/append functionality for dynamic text assembly |
| 32 | - **⚡ Lightweight Processing**: No CLIP encoding overhead for text-only workflows |
| 33 | |
| 34 | ### **PromptSearchList** (Batch Processing Node) |
| 35 | |
| 36 | A search node that outputs prompts as a list for batch processing workflows: |
| 37 | |
| 38 | - **🔍 Database Search**: Search prompts by text, category, tags, and rating |
| 39 | - **📋 List Output**: Uses `OUTPUT_IS_LIST` for native batch processing support |
| 40 | - **🔗 Batch Compatible**: Connect directly to batch processing nodes like String OutputList |
| 41 | - **⚡ Read-Only**: Lightweight search operation without database writes |
| 42 | |
| 43 | This node enables powerful batch workflows by allowing you to search your prompt database and process multiple prompts in a single execution. |
| 44 | |
| 45 | ### **Shared Features** |
| 46 | |
| 47 | Both nodes include the complete PromptManager feature set: |
| 48 | |
| 49 | - **💾 Persistent Storage**: Automatically saves all prompts to a local SQLite database |
| 50 | - **🔍 Advanced Search**: Query past prompts with text search, category filtering, and metadata |
| 51 | - **📁 Folder Filter**: Browse and filter prompts by output subdirectory |
| 52 | - **🖼️ Automatic Image Gallery**: Automatically links generated images to their prompts |
| 53 | - **🏷️ Rich Metadata**: Add categories, tags, ratings, notes, and workflow names to prompts |
| 54 | - **🚫 Duplicate Prevention**: Uses SHA256 hashing to detect and prevent duplicate storage |
| 55 | - **🌐 Advanced Web Interface**: Comprehensive admin dashboard with metadata analysis |
| 56 | - **📊 Analytics**: Track prompt usage patterns and effectiveness over time |
| 57 | - **🔬 Workflow Analysis**: Extract and analyze ComfyUI workflow data from PNG images |
| 58 | - **📋 Metadata Viewer**: Standalone tool for analyzing ComfyUI-generated images |
| 59 | - **🛠️ System Management**: Built-in diagnostics, backup/restore, and maintenance tools |
| 60 | - **🏷️ AI AutoTag**: Automatically tag your image collection using WD14 or JoyCaption vision models |
| 61 | - **🔗 LoRA Manager Integration**: Import LoRA metadata and preview images from [ComfyUI-Lora-Manager](https://github.com/willchil/ComfyUI-Lora-Manager) |
| 62 | |
| 63 |  |
| 64 | |
| 65 | ## Features |
| 66 | |
| 67 | ### Core Functionality |
| 68 | |
| 69 | #### PromptManager (CLIP Encoding) |
| 70 | |
| 71 | - **Text Encoding**: Standard CLIP text encoding for ComfyUI workflows |
| 72 | - **Conditioning Output**: Produces CONDITIONING for samplers and generation nodes |
| 73 | - **Full Compatibility**: Drop-in replacement for CLIPTextEncode nodes |
| 74 | |
| 75 | #### PromptManagerText (Text-Only) |
| 76 | |
| 77 | - **String Output**: Produces STRING for use with any text-accepting node |
| 78 | - **Text Concatenation**: Prepend and append fields for dynamic text assembly |
| 79 | - **L |