ComfyUI Node
arkennemasis Prompt Request (2A · ask for all N prompts)
STEP 2A — build the single request that asks for every variation's prompt at once, as a JSON array. Wire it into an LLM with json_only ON, together with the customised system instructions from step 1B.
arkennemasis Prompt Request (2A · ask for all N prompts)
- request
- count
- keys
◄cells_json[]►
◄templateWrite the image-generation prompts for the variations listed below.
Return ONLY a JSON array. Each element must be an object:
{"n": <the variation number, an integer>,
"key": "<the key exactly as given>",
"prompt": "<the prompt for this variation>"}
Return exactly %(count)d objects, one for every variation listed, in the order given.
Rules for the prompts themselves:
* Each prompt describes ONE variation of the SAME product shown in the base image.
* Describe the target material or colour for the part that changes, in the terms the
system instructions above call for. Where a variation supplies a reference image,
write the prompt so the attached reference is what defines the appearance.
* Keep every prompt parallel in structure and length. They are a set: the only thing
that should differ between two of them is the variation itself.
* Do not mention the camera, the background, the lighting or the framing. Fidelity
clauses are appended automatically and must not be duplicated or paraphrased.
* Do not include the filename, the SKU, or any JSON other than the array itself.
THE VARIATIONS:
%(rows)s
►
Categoryarkennemasis/Variation
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| cells_json | STRING | [] | — |
| templateopt | STRING | Write the image-generation prompts for the variations listed below. Return ONLY a JSON array. Each element must be an object: {"n": <the variation number, an integer>, "key": "<the key exactly as given>", "prompt": "<the prompt for this variation>"} Return exactly %(count)d objects, one for every variation listed, in the order given. Rules for the prompts themselves: * Each prompt describes ONE variation of the SAME product shown in the base image. * Describe the target material or colour for the part that changes, in the terms the system instructions above call for. Where a variation supplies a reference image, write the prompt so the attached reference is what defines the appearance. * Keep every prompt parallel in structure and length. They are a set: the only thing that should differ between two of them is the variation itself. * Do not mention the camera, the background, the lighting or the framing. Fidelity clauses are appended automatically and must not be duplicated or paraphrased. * Do not include the filename, the SKU, or any JSON other than the array itself. THE VARIATIONS: %(rows)s | Uses %(count)d and %(rows)s. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| request | STRING | — |
| count | INT | — |
| keys | STRING | — |