Install this extension via the ComfyUI Manager by searching
for comfyui-adaptiveprompts
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter comfyui-adaptiveprompts 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
Comfyui-adaptiveprompts is a modern tool for ComfyUI that enhances dynamic prompts by allowing users to randomize, restructure, and clean them using advanced wildcard and string functionalities.
comfyui-adaptiveprompts Introduction
The comfyui-adaptiveprompts extension is a powerful tool designed to enhance your creative process by allowing you to craft dynamic and adaptive prompts. This extension is particularly useful for AI artists who want to explore a wide range of creative possibilities without manually crafting each prompt. Inspired by the well-known Dynamic Prompts, this extension offers a suite of features that enable you to randomize, control, shuffle, and even program your prompts. Whether you're looking to generate unique art pieces or experiment with different styles and themes, comfyui-adaptiveprompts provides the flexibility and control you need to bring your artistic visions to life.
How comfyui-adaptiveprompts Works
At its core, comfyui-adaptiveprompts operates by using a system of nodes that manipulate text strings to create dynamic prompts. Think of it as a toolkit that allows you to build complex and varied prompts from simple components. The extension uses two primary methods to introduce randomness and variability into your prompts: brackets and wildcards.
Brackets: These are used to randomly select one option from a list. For example, {red|green|blue} will randomly choose between "red," "green," and "blue."
Wildcards: These are placeholders that pull random lines from a specified text file. For instance, __fruit__ might randomly select "apple," "orange," or "banana" from a file named fruit.txt.
By combining these methods, you can create prompts that are both structured and unpredictable, allowing for a high degree of creativity and exploration.
comfyui-adaptiveprompts Features
Prompt Generation Nodes
Prompt Generator: This node creates dynamic prompts based on your input, using brackets and wildcards. It refreshes instantly, meaning changes to wildcard files are immediately reflected without needing to restart ComfyUI.
Prompt Generator (Advanced): Offers additional options like hiding comments and specifying a wildcard category folder.
Prompt Sequencer: Cycles through every possible combination of brackets or wildcards sequentially, which is useful for generating all possible variations of a prompt.
Prompt Repack: Converts natural words, tags, or phrases back into wildcards, allowing for semantic-driven dynamic prompting.
Prompt Replace: A powerful search and replace tool that supports dynamic prompts, allowing for procedural application of changes.
Prompt Alias Swap: Automatically swaps out tags based on an alias file, useful for shorthand prompting.
Prompt Processing Nodes
Weight Lifter: Randomly or procedurally applies weights to phrases, allowing for nuanced emphasis in your prompts.
Prompt Splitter: Removes or isolates sections of a prompt based on various algorithms.
Prompt Mixer: Mixes two prompts together using different methods, useful for adding processed tags or phrases.
Prompt Shuffle: Randomly shuffles phrases, with an advanced version that uses more sophisticated techniques for subtle variance.
Prompt Cleanup: Tidies up prompts by removing unnecessary whitespace, commas, and tags.
Utility Nodes
String Append: Combines multiple strings into one using a specified separator.
String Split: Splits a prompt into parts to isolate specific sections.
Tag Counter: Counts occurrences of tags within a prompt.
Normalize Lora Tags: Normalizes the values of Lora tags for consistent input.
SaveImageAndText: Saves the resulting prompt to a text file alongside the image.
Scaled Seed Generator: Generates random seeds with frequency offsets.
What's New with comfyui-adaptiveprompts
Prompt Sequencer: Added on 16/09/25, this feature generates every possible combination of wildcards sequentially.
Prompt Generator (Advanced): Introduced on 15/09/25, it allows for specifying a wildcard folder and hiding comments.
Chainable Context: As of 12/09/25, context is now chainable, allowing for separate instantiation of variables and fixing newline/whitespace stripping issues.
Troubleshooting comfyui-adaptiveprompts
If you encounter issues while using comfyui-adaptiveprompts, here are some common problems and solutions:
Wildcards Not Refreshing: Ensure that your wildcard files are located in the correct directory (comfyui-adaptiveprompts/wildcards/). The extension should automatically refresh changes without needing a restart.
Prompt Errors: If a prompt fails to generate, check for syntax errors in your brackets or wildcard references. Ensure that all wildcards are correctly defined in their respective text files.
Variable Retrieval Issues: If variables are not being retrieved correctly, ensure they are assigned within a comment space in the prompt generator.
Learn More about comfyui-adaptiveprompts
To further explore the capabilities of comfyui-adaptiveprompts, consider checking out the following resources:
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.