Nodes/comfyui-arkennemasis/arkennemasis Prompt Request (2A · ask for all N prompts)
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.

By Hishamahmer·Created about a month ago·Updated 9 days ago· 5
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)

    NameTypeDefaultDescription
    cells_jsonSTRING[]
    templateoptSTRINGWrite 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)

    NameTypeDescription
    requestSTRING
    countINT
    keysSTRING