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

Zip Prompt (Inspire)

Bundle positive, negative, and a name into one ZIPPED_PROMPT

By ltdrdata·Created 3 years ago·Updated 9 months ago· 805
Zip Prompt (Inspire)
    • ZIPPED_PROMPT
    positive
    negative
    name_opt

    The Inspire Pack has a little data type called ZIPPED_PROMPT - one object carrying a positive prompt, a negative prompt, and a name, all together. It exists so you can move a prompt around a workflow as a single wire instead of three, and so batch-prompting nodes have one thing to pass down a list. Zip Prompt is the node that packs that bundle. You hand it your positive and negative text, optionally a name, and it hands back one tidy ZIPPED_PROMPT.

    On its own it's not exciting - it's a packer. But it's the entry point to Inspire's whole prompt-batching flow, where you build a bunch of these, run them through a workflow one after another, and unpack each with Unzip Prompt at the far end. If you're setting up prompt sequences by hand rather than reading them from files, this is where they start.

    How it works

    There's no magic here. It takes three strings and glues them into the ZIPPED_PROMPT structure that the rest of the pack's prompt nodes understand - the same structure Load Prompts From File produces when it reads a prompt file. Downstream, Unzip Prompt (Inspire) breaks it back into its three parts to feed your CLIP Text Encode nodes. Zip and Unzip are a matched pair: one packs, one unpacks.

    The inputs and outputs that matter

    • positive (multiline) - the positive prompt text.
    • negative (multiline) - the negative prompt text.
    • name_opt (optional) - a label for this prompt. Leave it blank and the name is just empty; set it when you're building a batch and want each entry tagged (handy for filenames later, since the name travels with the bundle).

    Output is a single ZIPPED_PROMPT. It wires into anything expecting that type - most often straight into Unzip Prompt (Inspire), or into a list you assemble for batch runs.

    Installing it

    Part of the Inspire Pack by Dr.Lt.Data, author of ComfyUI Manager and the Impact Pack - so it's mainstream, actively-maintained 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

    "What do I even connect this to?" Its output is a ZIPPED_PROMPT, which only Inspire's prompt nodes accept - mainly Unzip Prompt (Inspire). If you just want to encode a prompt, you don't need Zip at all; wire your text straight into CLIP Text Encode. Zip earns its place only when you're working with the zipped-prompt batching system.

    The name comes out empty. That's name_opt being optional - if you don't set it, the name is blank by design. Fill it if you're relying on the name downstream (e.g. to name saved images per prompt).

    I want to batch many prompts, not type one. Then you probably want Load Prompts From File/Load Prompts From Dir (Inspire) instead, which produce a list of zipped prompts from files. Zip Prompt is for building them one at a time in-graph.

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

    CategoryInspirePack/Prompt

    Inputs (3)

    NameTypeDefaultDescription
    positiveSTRING
    negativeSTRING
    name_optoptSTRING

    Outputs (1)

    NameTypeDescription
    ZIPPED_PROMPTZIPPED_PROMPT