Nodes/ComfyUI Easy Use/easy promptList
ComfyUI Node Runs on cloud

easy promptList

Bundle several prompts into one list

By yolain·Created 3 years ago·Updated 8 days ago· 2,633
easy promptList
  • optional_prompt_list
  • prompt_list
  • prompt_strings
prompt_1
prompt_2
prompt_3
prompt_4
prompt_5

Type a handful of prompts into one node, get them back as a list you can iterate over. That's the job. It exists because generating from several prompts in a single run is a genuinely common need - a themed set, a batch of test prompts, one subject in five different scenes - and typing them one at a time across five separate runs is the slow way to do it.

Why you'd reach for it

The pattern is "many prompts, one workflow." You want to feed a series of prompts through the same generation pipeline and get one image (or a set) per prompt. easy promptList is the front of that: it collects your prompts into a LIST, and then either ComfyUI's list processing or an Easy-Use loop walks through them.

Two ways that list gets consumed downstream:

  • List execution. ComfyUI can run a node once per item in a list automatically - feed the list-typed output into a compatible chain and it fans out over every prompt.
  • Indexed iteration. Inside a for-loop, use the loop's index to pull one prompt at a time (via an index switch), so prompt N goes with iteration N.

Either way, you've turned "five prompts" into "one run that covers five prompts," which is exactly what a batch job wants.

The inputs and outputs

  • prompt_1 … prompt_5` (multiline STRING) - up to five prompts, typed straight in. Leave the ones you don't need empty.
  • optional_prompt_list (optional LIST) - another prompt list to chain onto the front. This is how you get past five: feed one promptList's output into the next one's optional_prompt_list and stack them.
  • prompt_list (LIST output) - all your prompts as a single list object.
  • prompt_strings (STRING output, list) - the same prompts exposed as string outputs, for nodes that want the strings directly rather than a list type.

Installing it

ComfyUI Manager: search ComfyUI Easy Use, install, restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/yolain/ComfyUI-Easy-Use

then install the requirements (install.bat on Windows, else pip install -r ComfyUI-Easy-Use/requirements.txt) and restart.

Common issues

  • A list isn't a batch. The output is a list, which ComfyUI iterates over - that's different from a batched tensor. If a downstream node expects a single string and gets a list, it'll either fan out (run once per prompt, which is usually what you want) or error. Know which behavior you're relying on.
  • Empty slots. Blank prompt fields generally get skipped, but if you see an unexpected empty generation, an empty prompt slot slipping into the list is the thing to check.
  • Chaining beyond five. Don't try to cram everything into one node - use optional_prompt_list to link a second promptList when you need more than five. It concatenates cleanly.
  • Pair it with something that consumes a list. promptList only produces the list. Nothing happens until a loop, an index switch, or list-execution actually walks it - that's the other half of the setup.
CategoryEasyUse/Prompt

Inputs (6)

NameTypeDefaultDescription
prompt_1STRING
prompt_2STRING
prompt_3STRING
prompt_4STRING
prompt_5STRING
optional_prompt_listoptLIST

Outputs (2)

NameTypeDescription
prompt_listLIST
prompt_stringsSTRING