Text Random Prompt
A slot machine for when the prompt box is blank
This is the "feeling lucky" button. You hand it a search word - the README's own example is superhero - and it hands back a random prompt built around that theme. That's the whole pitch. It exists for the moment you're staring at an empty prompt box with no idea what to make, and you want something to riff on instead of a blank page.
Set your expectations right and you'll like it. This is a brainstorming toy, not a prompt engineer. It's great for exploration passes and terrible as the final word on anything you actually care about.
How it works
You give it a seed word, it returns one random prompt string themed around that word. Change the seed word, you steer the theme; keep the same word and re-roll, you get variety within that theme. Think of it as a themed shuffle rather than a template you fill in.
Because it comes from WAS's text side, the output is a plain STRING - the same type the whole pack moved to back in mid-2023 when it retired the old ASCII output. That matters for one reason only: it plugs straight into any node that eats text.
The inputs and outputs that matter
Practically there are only two things here:
- The search seed - a word or short phrase that sets the theme. This is the one knob you touch.
- The text output - the generated prompt string. Wire it into a CLIPTextEncode node's text input (or a Text Concatenate if you want to glue it onto a base prompt), and from there into your sampler.
That's it. It's a source node - nothing feeds into it except the seed you type.
Heads up: the exact widget names and any seed/mode fields aren't something I can confirm from a schema for this node, so I'm describing what it does rather than inventing labels. Drop it on the canvas and the real fields will be right there.
How to install it
Text Random Prompt ships inside the WAS Node Suite, so you install the whole pack, not the node.
- ComfyUI Manager (the easy way): open Manager, hit Install Custom Nodes, search was-node-suite-comfyui, install, restart.
- Manually:
cd ComfyUI/custom_nodes && git clone https://github.com/WASasquatch/was-node-suite-comfyui/, then install its dependencies against your ComfyUI Python (python_embeded\python.exe -s -m pip install -r requirements.txton the portable build, orpip install -r requirements.txtin your venv), and restart.
Good news for this node specifically: it's pure text, so it doesn't drag in any model downloads or heavy dependencies. The pack's chunky bits - BLIP, SAM, MiDaS - only load for the nodes that need them.
Common issues
One thing to know up front: WAS Node Suite has been in retirement since December 2023. The author stepped back, said feel free to fork, and moved on. It's still everywhere - people reference it every month years later - but "no active development" has a consequence.
The classic failure isn't this node, it's the whole pack refusing to load: you update ComfyUI, restart, and every WAS node is gone with an "Import Failed" in the console. This happens because WAS pins or downgrades some older packages, and a fresh ComfyUI/torch update yanks the rug. The fix is to re-run that requirements.txt install against the correct Python environment (activate your venv first, or use the bundled install.bat which tries to find it for you), then restart. An opencv version clash - usually from also having ReActor or insightface installed - is the other common culprit; pinning opencv-python back to a compatible version clears it.
If the whole pack imports fine but this node just gives you underwhelming prompts, that's not a bug - it's the node being what it is. Treat what it returns as a seed to rewrite, not a finished prompt.
Inputs (0)
No inputs
Outputs (0)
No outputs