ComfyUI > Nodes > comfyui-adaptiveprompts > Prompt Generator 💡

ComfyUI Node: Prompt Generator 💡

Class Name

PromptGenerator

Category
adaptiveprompts/generation
Author
Alectriciti (Account age: 5005days)
Extension
comfyui-adaptiveprompts
Latest Updated
2025-11-05
Github Stars
0.05K

How to Install comfyui-adaptiveprompts

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

  • 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 Generator 💡 Description

Versatile tool for generating adaptive prompts with dynamic elements for AI artists, including complex structures and user preferences.

Prompt Generator 💡:

The PromptGenerator node is a versatile tool designed to enhance the creative process by generating adaptive prompts. It is particularly useful for AI artists who wish to incorporate dynamic and context-sensitive elements into their work. This node allows you to create prompts that can adapt based on specific parameters, such as random seeds and contextual information, making it ideal for generating varied and unique outputs. The PromptGenerator is capable of processing complex prompt structures, including those with embedded wildcards and comments, which can be resolved or hidden based on user preferences. This flexibility enables you to produce prompts that are not only rich in content but also tailored to specific creative needs, thereby enhancing the overall artistic output.

Prompt Generator 💡 Input Parameters:

prompt

The prompt parameter is a string input that serves as the base text for the prompt generation process. It can include wildcards and comments, which the node will process to generate the final output. This parameter supports multiline input, allowing for complex and detailed prompt structures. The content of the prompt directly influences the generated output, making it a crucial component of the node's functionality.

seed

The seed parameter is an integer that initializes the random number generator used in the prompt generation process. By setting a specific seed value, you can ensure that the generated prompts are reproducible, which is useful for consistency in creative projects. The default value is 0, and it can range from 0 to 0xffffffffffffffff, providing a vast space for randomization.

hide_comments

The hide_comments parameter is a boolean that determines whether comments within the prompt should be hidden in the final output. When set to true, any text enclosed in comment blocks (e.g., ##comment##) will be removed from the generated prompt. This feature allows you to include notes or instructions within the prompt without affecting the final output. The default value is true.

category

The category parameter allows you to specify a category for the prompt generation process. It maps to a directory containing custom wildcards, enabling you to tailor the prompt generation to specific themes or topics. The available options are determined by the categories defined in the system, with a default value set to "Default" if no specific category is chosen.

context

The context parameter is an optional dictionary that provides additional contextual information for the prompt generation process. It can be in the form of a dict-of-dicts, dict-of-lists, or dict-of-single-values, which the node will normalize to a dict-of-dicts format. This context is used to resolve wildcards and enhance the adaptability of the generated prompts.

Prompt Generator 💡 Output Parameters:

prompt

The prompt output is a string that represents the final generated prompt after processing the input parameters and resolving any wildcards or comments. This output is the primary result of the node's operation and serves as the basis for further creative work or integration into other systems.

context

The context output is a dictionary that reflects the normalized context used during the prompt generation process. It provides insight into the variables and values that influenced the final prompt, allowing for better understanding and potential reuse in subsequent operations.

Prompt Generator 💡 Usage Tips:

  • To achieve consistent results, use a fixed seed value when generating prompts. This ensures that the same input will produce the same output, which is useful for iterative creative processes.
  • Utilize the category parameter to organize and manage different sets of wildcards, allowing for thematic or stylistic variations in the generated prompts.
  • Leverage the context parameter to introduce dynamic elements into your prompts, enabling more personalized and context-aware outputs.

Prompt Generator 💡 Common Errors and Solutions:

Invalid seed value

  • Explanation: The seed value provided is outside the acceptable range.
  • Solution: Ensure that the seed value is an integer between 0 and 0xffffffffffffffff.

Missing or malformed prompt

  • Explanation: The prompt input is either missing or not formatted correctly.
  • Solution: Verify that the prompt is a properly formatted string and includes any necessary wildcards or comments.

Category not found

  • Explanation: The specified category does not exist in the system.
  • Solution: Check the available categories and ensure that the category parameter matches one of them.

Context normalization error

  • Explanation: The context input could not be normalized to a dict-of-dicts format.
  • Solution: Review the context input to ensure it is in a compatible format, such as a dict-of-dicts, dict-of-lists, or dict-of-single-values.

Prompt Generator 💡 Related Nodes

Go back to the extension to check out more related nodes.
comfyui-adaptiveprompts
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.