Nodes/Wild Divide/Wild Prompt Generator
ComfyUI Node

Wild Prompt Generator

The GUI that writes your wildcard files for you

By Julian-adv·Created 2 years ago·Updated about a year ago· 19
Wild Prompt Generator
    • prompt
    seed0
    auto_template

    Wild Divide's wildcard files are just YAML - plain text with a key and a list of options. You can edit them in any text editor and never touch this node. But if you're building out a whole roster of slots - hair, outfit, legs, lighting, each with a few dozen options and a few conditions on top - hand-editing gets old fast. The Wild Prompt Generator is the point-and-click editor that writes that YAML for you, and it's the node people overlook because it doesn't generate anything itself.

    Here's the setup. The pack reads wildcards from two places: the shared ComfyUI/wildcards/ folder (so files you already have from Impact Pack or similar work unchanged) and its own custom_nodes/WildDivide/wildcards/ folder. The generator writes to the latter, specifically a file called m.yaml. Click Add Slot, name it, and you get a dropdown where each value is a slot entry. Click Add group and you get a namespace, referenced as __m/group/slot__ instead of __m/slot__. You can drag slots to reorder them and add per-value conditions (patterns evaluated against the prompt built so far) - same ~, &, | condition syntax the wildcard system uses everywhere else.

    The part that ties it together is the template slot. Wildcard expansion doesn't know what to do with ten unrelated slots; it needs one slot that says "assemble the others." So you make a template entry that looks like __m/hair__, __m/outfit__, __m/legs__, and that's what you actually invoke in your prompt. If you'd rather not babysit that template as you add slots, flip auto_template on and the node keeps it in sync for you.

    The inputs are minimal for a reason. seed is the one that matters: it drives the random selection, so you can lock a roll to reproduce an outfit you liked, or tick it forward to roll again. The single output, prompt, is the populated string - wire it straight into WildcardDivide's wildcard_text (or WildcardEncode's, if you're on the older path). Get last random values and the tooltip checkbox exist so you can see what actually got picked without diffing a full rerun.

    Install is the same as the rest of the pack: ComfyUI Manager, search "Wild Divide", or clone it into custom_nodes and restart:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Julian-adv/WildDivide
    

    No models to download, no extra Python dependencies beyond what ships with ComfyUI - the pack's wildcard engine just needs PyYAML, which you already have. One honest caveat: as of mid-2026 the upstream repo returns 404 (the author's GitHub now only shows an unrelated Rust project), so if Manager can't find the pack or the clone fails, that's why - grab the source from a mirror while it's still floating around. This is a small, mostly-unheard-of pack, so don't build a workflow you'll need to re-share in a year on top of it.

    Worth it if you're already committing to Wild Divide and want to stop hand-editing YAML. If you only need a couple of slots, skip the GUI - the syntax is the real draw here, and it works fine from a text file.

    CategoryWildDivide

    Inputs (2)

    NameTypeDefaultDescription
    seedINT00–18446744073709550000
    auto_templateBOOLEAN

    Outputs (1)

    NameTypeDescription
    promptSTRING