Nodes/ComfyUI Inspire Pack/Unzip Prompt (Inspire)
ComfyUI Node Runs on cloud

Unzip Prompt (Inspire)

Split a ZIPPED_PROMPT back into positive, negative, and name

By ltdrdata·Created 3 years ago·Updated 9 months ago· 805
Unzip Prompt (Inspire)
  • zipped_prompt
  • positive
  • negative
  • name

Unzip Prompt is the other half of Inspire's prompt-bundling pair. The pack passes prompts around as a single ZIPPED_PROMPT object - positive text, negative text, and a name, all in one wire - which is tidy for moving data but useless to a CLIP Text Encode node, which wants plain strings. Unzip Prompt cracks the bundle open and gives you back the three pieces separately, ready to encode.

You'll reach for it any time a ZIPPED_PROMPT is coming into your graph: from Zip Prompt, or more usefully from Load Prompts From File/Load Prompts From Dir (Inspire) when you're running a batch of prompts out of a folder. It's the "now actually use it" step at the end of the zipped-prompt flow.

How it works

Dead simple, and that's the point. It reads the ZIPPED_PROMPT structure and emits its three fields as separate string outputs. Whatever went into a Zip Prompt (or was read out of a prompt file) comes back out here in usable form. Zip packs, Unzip unpacks - a matched pair.

The inputs and outputs that matter

  • zipped_prompt (input) - the bundle to open. Comes from Zip Prompt, Load Prompts From File, or Load Prompts From Dir (Inspire).

Three outputs:

  • positive - the positive prompt string. Wire it into your positive CLIP Text Encode.
  • negative - the negative prompt string. Wire it into your negative CLIP Text Encode.
  • name - the prompt's label. When the bundle came from a file, this is the file name; it's handy for naming saved outputs so each result is traceable to its prompt.

Installing it

Ships with the Inspire Pack by Dr.Lt.Data - the ComfyUI Manager and Impact Pack author, so trustworthy, well-kept tooling. Via ComfyUI Manager: search ComfyUI Inspire Pack, install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack

then restart. No dependencies or downloads.

Common issues

The outputs are strings, not conditioning. Right - Unzip gives you raw prompt text. You still have to run positive and negative through CLIP Text Encode to get CONDITIONING for your sampler. Unzip doesn't encode; it just separates.

Running a batch but only getting one result. When the source is a Load Prompts From Dir list, the zipped prompts come as a list, and ComfyUI iterates the graph once per item. If you're only seeing one, check that you're not accidentally collapsing the list somewhere upstream, and that your save node is inside the iterated path.

The name output is empty. The bundle was built without a name (Zip Prompt's name_opt left blank). File-sourced prompts carry the file name automatically; hand-built ones only carry a name if you set one.

Nodes won't load after install. Check the terminal log - usually a version mismatch. Update Inspire Pack and Impact Pack together and restart.

CategoryInspirePack/Prompt

Inputs (1)

NameTypeDefaultDescription
zipped_promptZIPPED_PROMPT

Outputs (3)

NameTypeDescription
positiveSTRING
negativeSTRING
nameSTRING