ComfyUI Node

Wildcard Prompt Composer

Build every section of a prompt in one node: Subject, Action, Setting, Lighting, Style, Camera, in the platform's order. Lock a section to keep it while re-rolling the rest; mark empty sections for the LLM rewriter to write.

By EricRollei·Created about a year ago·Updated 3 days ago· 47
Wildcard Prompt Composer
  • sections
  • sections
  • text
  • llm_instructions
  • template
  • report
◄composer►
◄platformkrea2►
◄seed0►
◄nsfwoff►
◄violence_filteroff►
CategoryEric Prompt Enhancers/Wildcard Composers

Inputs (6)

NameTypeDefaultDescription
composerSTRINGComposer state (JSON), edited with the builder panel on the node. Empty = the starter phrase.
platformCOMBOkrea2Target model. Sets the order sections are joined in the `text` output (from the profile's structure line).
seedINT00–2147483647Same seed + same composer + same wildcard files = same picks.
sectionsoptPROMPT_SECTIONSSections from a builder earlier in the chain. This builder adds its own to them.
nsfwoptCOMBOoffHow far wildcard picks may go (a word match on each entry and on list names, no model). off = SFW: no suggestive, nude or explicit lists or entries suggestive = also lingerie, bikinis, sexy, seductive ... nudity = also nude, naked, topless ... explicit = everything, including lists under _nsfw/ Fix a wrong rating in _catalog_user.yaml (nsfw: on a list, ratings: on entries). Entries pairing minor-related and sexual terms are removed at every level (config.json "content_filter").
violence_filteroptCOMBOoffHold back violent wildcard picks (a word match on each entry and on list names, no model). off = nothing held back no gore = blood and gore, torture, mutilation, corpses no gore or violent acts = also murder, execution, stabbing, strangling, suicide ... no violence or weapons = also guns, swords, knives, bombs, battle, war Only wildcard picks are filtered; text you type is left as is.

Outputs (5)

NameTypeDescription
sectionsPROMPT_SECTIONSEvery section filled so far (this builder and the ones before it). Connect to the next builder.
textSTRINGAll sections as one prompt, in the platform's order. Connect to a Platform Prompt Rewriter's idea for LLM polish, or use as is.
llm_instructionsSTRINGWhich picks were random and how to keep them (Meaning / Exact / Loose). Connect to the rewriter's wildcard_instructions.
templateSTRINGThe same prompt as wildcard syntax, unresolved. Useful to save, or to let another node roll it.
reportSTRINGWhat was picked, and any warnings.