ComfyUI > Nodes > ComfyUI-Prompt-Wildcards

ComfyUI Extension: ComfyUI-Prompt-Wildcards

Repo Name

ComfyUI-Prompt-Wildcards

Author
Makki_Shizu (Account age: 976 days)
Nodes
View all nodes(5)
Latest Updated
2025-08-16
Github Stars
0.02K

How to Install ComfyUI-Prompt-Wildcards

Install this extension via the ComfyUI Manager by searching for ComfyUI-Prompt-Wildcards
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Prompt-Wildcards 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

ComfyUI-Prompt-Wildcards Description

ComfyUI-Prompt-Wildcards enhances ComfyUI by introducing optional wildcards, allowing dynamic prompt variations. This extension enables users to create diverse and flexible UI prompts efficiently.

ComfyUI-Prompt-Wildcards Introduction

ComfyUI-Prompt-Wildcards is an extension designed to enhance your creative workflow by introducing the concept of wildcards into the ComfyUI environment. This tool allows you to incorporate random elements into your prompts, making it easier to generate diverse and unique outputs. By using wildcards, you can specify parts of your prompt that should be randomly selected from a predefined list, adding an element of surprise and creativity to your AI-generated art. This extension is particularly useful for AI artists looking to explore a wide range of artistic possibilities without manually altering their prompts each time.

How ComfyUI-Prompt-Wildcards Works

At its core, ComfyUI-Prompt-Wildcards operates by allowing you to define sections of your prompt that can be replaced with random selections from a list. Imagine you have a list of colors, and you want your AI to randomly choose one each time it generates an image. By using wildcards, you can set up your prompt so that the AI picks a different color from your list every time, without you having to change the prompt manually.

The extension uses a folder named "wildcards" where you can store text files. Each file contains a list of options, and the extension will randomly select a line from these files based on your settings. This randomness can be controlled using parameters like seed and randoms, which determine how the selection process behaves.

ComfyUI-Prompt-Wildcards Features

makiwildcards

  • wildcards_count: This parameter lets you decide how many wildcards you want to use in your prompt. For instance, if you have multiple lists and want to incorporate elements from each, you can specify the number here.
  • randoms: This setting controls whether the selection is truly random or based on a seed value. Setting it to false means the selection will be consistent for the same seed, while true allows for random selection each time.
  • seed: The seed value is crucial for controlling randomness. By using the same seed, you can reproduce the same results, which is helpful for testing and refining your prompts.
  • wildcardname{n}: This allows you to select specific wildcard files from which to draw random lines.
  • text: Any text you input here will be prepended to the wildcards, separated by commas, allowing for more complex and structured prompts.

makitextwildcards

This feature works similarly to makiwildcards but focuses on text content that requires randomization. It uses the same randoms and seed logic to select specific lines from your text files.

textconcatenate

  • text_count: Determines how many text elements you want to combine.
  • delimiter: Specifies the character or string that separates each text element.
  • clean_whitespace: Automatically removes any unnecessary spaces from the beginning and end of your text.
  • replace_underscores: Converts underscores in your text to spaces, ensuring a cleaner output.

What's New with ComfyUI-Prompt-Wildcards

As of March 20, 2025, the extension has been updated to improve the randomization method. This change ensures that even with the same seed value, different content is retrieved for each distinct count, enhancing the diversity of outputs. This update is particularly beneficial for artists who rely on consistent seed values but still want varied results.

Troubleshooting ComfyUI-Prompt-Wildcards

If you encounter issues while using ComfyUI-Prompt-Wildcards, here are some common problems and solutions:

  • Problem: Wildcards are not being replaced in the prompt.
  • Solution: Ensure that your wildcard files are correctly placed in the "wildcards" directory and that they contain valid entries.
  • Problem: Outputs are not random despite setting randoms to true.
  • Solution: Check if the seed value is set. If you want true randomness, ensure that the seed is not fixed.
  • Problem: Text concatenation is not working as expected.
  • Solution: Verify that the delimiter is correctly set and that there are no syntax errors in your text inputs.

Learn More about ComfyUI-Prompt-Wildcards

To further explore the capabilities of ComfyUI-Prompt-Wildcards, consider visiting community forums and tutorials where you can connect with other AI artists and share experiences. Engaging with the community can provide valuable insights and tips for maximizing the potential of this extension in your creative projects.

ComfyUI-Prompt-Wildcards Related Nodes

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.

ComfyUI-Prompt-Wildcards detailed guide | ComfyUI