Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile tool for generating adaptive prompts with dynamic elements for AI artists, including complex structures and user preferences.
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.
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.
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.
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.
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.
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.
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.
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.
seed value when generating prompts. This ensures that the same input will produce the same output, which is useful for iterative creative processes.category parameter to organize and manage different sets of wildcards, allowing for thematic or stylistic variations in the generated prompts.context parameter to introduce dynamic elements into your prompts, enabling more personalized and context-aware outputs.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.