Nodes/DJZ-Nodes/Zenkai-Prompt V2
ComfyUI Node

Zenkai-Prompt V2

A curated prompt slot machine, straight out of the box

By MushroomFleet·Created 2 years ago·Updated 5 months ago· 78
Zenkai-Prompt V2
    • STRING
    text_file
    seed0
    num_prompts1
    prefix
    suffix

    The worst part of prompt engineering isn't writing prompts - it's that after ten generations you're just tweaking the same five words. ZenkaiPromptV2 is DJZ-Nodes' answer: a node with a dropdown of 204 pre-curated prompt files bundled right in the pack, and it randomly samples a prompt from whichever file you pick, seeded so you can reproduce a draw. It's the lazy man's prompt explorer, and honestly it's a great way to break out of your own vocabulary.

    How it works

    The pack ships a prompts/ directory full of themed .txt files - things like cyberSocietyV4.txt, JohnWickGeneral.txt, LTXV-surrealist-scenes.txt, hologram-style-flux-V1.txt. The node reads the folder at node-creation time and populates the text_file dropdown with every file it finds (that's where the 204 choices come from - the brief's sample list literally shows "+192 more"). When it runs, it:

    1. Loads the chosen file, filtering out blank lines.
    2. Seeds Python's random with your seed.
    3. Samples num_prompts (1-10) lines without replacement.
    4. Optionally wraps each in prefix / suffix strings.
    5. Joins them with commas and returns one STRING.

    Because it seeds random, the same seed + file + count always draws the same lines. IS_CHANGED keys on the seed, so bumping the seed re-fires the node - which is the whole loop: click "queue" with a new seed, get a fresh prompt, generate.

    The inputs

    • text_file - the themed file (required).
    • seed - the draw. Change it, get a different sample.
    • num_prompts - how many lines to pull and comma-join. More than 1 gives you composite prompts.
    • prefix / suffix - optional; handy for forcing "masterpiece, best quality, " in front of whatever the file draws, or a style token after.

    Output: a single STRING - wire it into any CLIP text encoder.

    Installing

    Part of DJZ-Nodes (Drift Johnson / MushroomFleet):

    cd ComfyUI/custom_nodes
    git clone https://github.com/MushroomFleet/DJZ-Nodes
    cd DJZ-Nodes
    pip install -r requirements.txt
    

    Or "DJZ-Nodes" in ComfyUI Manager. The prompts ship with the pack - no downloads. The other Zenkai nodes (ZenkaiWildcard, ZenkaiPrompt V1/V3) build on the same system.

    Honest advice

    The bundled prompts skew heavily toward scene descriptions and cyberpunk/sci-fi vibes - great for video scene generation and img2img, less so if you're chasing photoreal portraits (grab the pack's wildcards/ directory or write your own .txt file and drop it in the prompts/ folder; the dropdown picks it up). The real gotcha: this node samples lines, and some files have prompt fragments rather than full prompts - composite results can read like a Mad Libs. That's half the fun, but expect to do a little cleanup, or lean on PromptCleanerV2 from the same pack. For variety without thinking, it's hard to beat.

    CategoryDJZ-Nodes

    Inputs (5)

    NameTypeDefaultDescription
    text_fileCOMBO204 options: 05-trad-obsessions.txt, cyberSocietyV4.txt, paradistro-gen.txt, Thorra-Actions-airlock.txt, LTXV-surrealist-scenes.txt, cyberninjav1.txt, +198
    seedINT00–4294967295
    num_promptsINT11–10
    prefixoptSTRING
    suffixoptSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING