Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-Bricolage > Simple Wildcards

ComfyUI Node: Simple Wildcards

Class Name

SimpleWildcards

Category
Bricolage
Author
sheldongriffin (Account age: 5393days)
Extension
ComfyUI-Bricolage
Latest Updated
2026-06-09
Github Stars
0.0K

How to Install ComfyUI-Bricolage

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

Simple Wildcards Description

Randomly replaces each {option|option} group in text to generate varied prompt combinations.

Simple Wildcards:

SimpleWildcards adds variation to text by replacing choices written inside curly braces with one randomly selected option. For example, a `{red|blue}` sky can become a red sky or a blue sky. It is useful for trying prompt variations without writing a separate prompt for every combination. Each matching set of choices is selected independently, while text outside those sets remains unchanged.

Simple Wildcards Input Parameters:

text

The required, multiline STRING containing the text to process. Write alternatives inside curly braces and separate them with vertical bars, such as a portrait in {watercolor|oil paint|charcoal}. The node randomly selects one alternative from each matching set and removes surrounding spaces from the selected alternative; any text outside matching sets stays as written. The source specifies no default value, minimum or maximum length, or preset options.

Simple Wildcards Output Parameters:

string

The STRING containing the processed text. Each recognized set of alternatives is replaced by one randomly selected choice, so the result may differ between executions. If the text contains no matching set, the output is the same as the input. This is the text you can pass to the next node in a prompt workflow.

Simple Wildcards Usage Tips:

  • Use {choice one|choice two|choice three} to vary a specific part of a prompt while keeping the rest consistent. For example, a `{fox|owl}` in a {forest|garden} makes a separate random selection for each set.
  • Keep every alternative meaningful. An extra separator, as in {red|}, creates an empty option that can remove that part of the prompt when selected.
  • Use complete, compatible phrases when alternatives have different grammar. For example, {a fox|an owl} avoids producing an awkward article.
  • Do not rely on this node to provide a fixed or repeatable selection. Its source makes random choices and provides no seed setting.

Simple Wildcards Common Errors and Solutions:

No replacement appears

  • Explanation: The text may not contain a matching pair of curly braces with content inside. For example, {} is not replaced. The node source does not define a specific error message for this situation.
  • Solution: Add content between the braces, such as {red|blue}, and check that the closing brace is present.

Part of the prompt is sometimes missing

  • Explanation: An empty alternative, such as the one after the separator in {red|}, can be randomly selected. This is a possible result, not a reported error.
  • Solution: Remove the extra separator or replace the empty alternative with a word or phrase.

A vertical bar is treated as a choice separator

  • Explanation: Inside a matching set of braces, the node splits the content at every |. It has no special handling for a vertical bar intended as literal text.
  • Solution: Keep literal vertical bars outside wildcard braces, or reword the alternatives so they do not need one.

Results differ between executions

  • Explanation: The node selects alternatives randomly, and its source provides no seed or fixed-choice option. It also signals that its result may change between evaluations.
  • Solution: Use only one alternative when you need fixed wording, or use the resulting text elsewhere in your workflow when you need to retain a particular selection.

Simple Wildcards Related Nodes

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

Simple Wildcards