ComfyUI-Whisk-Prompts🌪️
A tiny JSON-splitting utility that makes Whisk's prompts actually usable
- prompt1
- prompt2
- prompt3
- prompt4
This is the smallest node in the pack and the easiest to understand, because it does exactly one thing: it takes a JSON list of prompt strings and splits it into four separate STRING outputs. That's the whole job, and honestly the pack wouldn't be complete without it.
Here's the context. The ComfyUI-Whisk node returns its final generated prompts as one big prompts output - a JSON dump like ["a photo of...", "a photo of..."]. You can't wire a JSON string into a text display or a prompt-edit node and have anything useful happen. ComfyUI-Whisk-Prompts is the adapter that unpacks it: feed the JSON in one end, get prompt1, prompt2, prompt3, and prompt4 out the other, ready to pipe into ShowText, a text-concat node, or wherever you inspect or edit prompts.
How it works
It's a three-line function dressed up as a node. It json.loads() the incoming string, pads the resulting list out to four entries with empty strings, and returns the first four as individual outputs. That padding matters: if the Whisk node only generated two images, you still get four outputs - the extras are just "", so whatever's downstream doesn't throw.
The one structural quirk: the prompts input is marked forceInput, meaning it only accepts a wire from another node. You can't type a value into it by hand. That's fine, because the only sensible source is ComfyUI-Whisk's prompts output - though it'll happily split any JSON array of strings some other node hands it.
The boring-but-good part: no auth
Unlike its two siblings, this node never touches google.json and never makes a network call. It's pure text processing, so it works even when your Google session has expired and the rest of the pack is throwing 401s. If you just want to unpack a JSON prompt list that something else produced, this node is safe to use in isolation.
Installing it
You don't install it alone - it ships in the same comfyui-labs-google pack as the Whisk node:
cd ComfyUI/custom_nodes
git clone https://github.com/ainewsto/comfyui-labs-google
# restart ComfyUI, or Manager → search "comfyui-labs-google"
No extra dependencies beyond the pack's usual requests/pillow/chardet, and since it does no I/O, there's nothing to configure.
The one trap
It expects valid JSON. Feed it the raw prompt string instead of the JSON wrapper and it'll raise a JSONDecodeError right in the console. That's not a bug - it's the contract. As long as you wire it to the prompts output of ComfyUI-Whisk (or any node that emits a JSON array), it just works.
Not a flashy node. Not supposed to be. It's the plumbing that turns Whisk's opaque JSON output into something you can actually look at and reuse - and a welcome piece of polish in a pack that's mostly held together by hope and browser cookies.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| prompts | STRING | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| prompt1 | STRING | — |
| prompt2 | STRING | — |
| prompt3 | STRING | — |
| prompt4 | STRING | — |