ComfyUI Extension: ComfyUI-Wildcard-Prompt
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
A ComfyUI node that resolves wildcard tokens in prompt strings from text files.
README
ComfyUI Wildcard Prompt
Custom node for ComfyUI that resolves wildcard tokens in prompt text.
Features
- Resolves
__wildcard__tokens from.txtfiles - Deterministic output for the same seed and wildcard set
- Supports either the local prompt widget or an incoming
string_in - Returns both the final
STRINGand theUSED_SEED - Packaged with standard ComfyUI custom node metadata for reuse
Node
Wildcard Prompt
Inputs:
prompt: multiline text, used when no external prompt input is connectedstring_in: optional external prompt input stringseed: built-in ComfyUI seed widget with post-generate controlswildcard_path: path to a folder containing wildcard.txtfiles
Outputs:
STRING: final resolved prompt stringUSED_SEED: actual seed used for the resolution
Wildcard Format
Example file:
color.txt
red
yellow
blue
green
Prompt:
The __color__ apple
Possible result:
The red apple
Behavior
__key__resolves from<wildcard_path>/key.txt- Blank lines are ignored
- Missing or empty wildcard files raise an error
- Resolution is deterministic for the same prompt, seed, and wildcard files
- Different seed values can select different lines from the same wildcard file
- If
string_inis connected, it overrides theprompttext field
Installation
Place this folder inside ComfyUI's custom_nodes directory, or symlink it there, so ComfyUI can import the package entrypoint:
ComfyUI/custom_nodes/wildcard/
Restart ComfyUI after installing or updating the node.
Packaging
This repository includes the standard files commonly used by ComfyUI-Manager-compatible custom node packs:
pyproject.tomlrequirements.txtLICENSE.tracking
If you want to publish it through the broader ComfyUI registry ecosystem, see docs/PUBLISHING.md.
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.