Automation / Image Generation

Brief-to-Print Asset Generation Pipeline

Turns a one-line design request into 1–4 on-brand, print-ready variants, product mockups and a production kit a print vendor can use directly, with brand rules enforced in code rather than left to the model.

Workflow

PROCESS FLOW

From “Design request in chat (routed to the Graphic Designer agent)” to result

  1. 1. Trigger

    Design request

    The user asks in chat, e.g. a tee for the summer drop. The orchestrator routes it to the Graphic Designer agent, or an earlier workflow step hands over a visual brief.

  2. 2. Action

    Purpose → Template → Subject

    The Designer follows its PTS protocol and asks at most 2 clarifying questions. Slots already filled by an earlier step are not asked again.

  3. 3. Action

    Template pre-fill

    One of 8 templates (tshirt_design, instagram_story, hero_banner and others) fills aspect ratio, style, composition, lighting, tone, palette source and negative constraints. The user only supplies the subject.

  4. 4. Action

    Compose the prompt

    For apparel, the apparel prompt composer adds an explicit isolation directive so the result is a flat printable graphic, not a photo of a shirt. The brand kit is filled in automatically.

  5. 5. Action

    Inject brand chrome

    Logo and brand elements are appended to the prompt server-side, so brand consistency holds even if the model forgets.

  6. 6. Action

    Generate 1–4 variants

    OpenAI image generation, with a different layout style per variant from ten curated aesthetics.

  7. 7. Action

    Garment mockups

    Previews on a t-shirt, heavyweight tee, hoodie, polo, oxford and performance shirt.

  8. 8. Output

    Print-kit ZIP

    Master artwork, print-guide.json with standard placements and per-size print dimensions, and a README.txt, ready for the print shop.

ANALOGY

Templates and brand chrome, explained

Image templates + brand kit + brand chrome is like A print shop's order form

  • Template pre-fills ratio, style and constraintsis like The form's size and paper boxes are already ticked
  • User supplies only the subjectis like The customer just writes what to print
  • Brand kit auto-filled into every promptis like The shop keeps the customer's colours on file
  • Brand chrome appended server-sideis like The shop stamps its label on every order
Like a print shop's order form, the template fixes everything except what you want printed, and the shop adds its own stamp whatever the customer writes. Unlike a shop, it doesn't check the result yet.

Problem

For a brand team, every new design meant briefing a designer, waiting for drafts and re-briefing, and the brand drifted from one design to the next. Every channel and size of marketing visual was a separate request, and print placement and size were specified by hand for each product, which made the hand-off to vendors error-prone.

Architecture

This pipeline is the image half of the custom multi-agent runtime (linked below). The Graphic Designer agent emits structured image directives, which the server parses and validates before anything is generated. Brand consistency comes from three layers that don't depend on the model remembering: a brand canon every agent references, a brand kit that is filled into every prompt automatically, and brand chrome that the server appends to every image prompt. Variety is designed in: within a batch, each variant gets a different curated aesthetic, and regeneration draws from a set of orthogonal variation hints (angle, lighting, medium, framing and others), so each re-roll gives a genuinely new direction instead of a near-duplicate.

DIAGRAM

Where the brand rules come from

flowchart TD
  S([User: the subject]) --> P[Designer: Purpose, Template, Subject]
  T[Template: ratio, style, lighting, constraints] --> C
  K[Brand kit: palette, fonts, voice, logo rules] --> C
  P --> C[Prompt composer]
  C --> A{Apparel?}
  A -- yes --> I[Add isolation directive: flat printable graphic]
  A -- no --> B
  I --> B[Server appends brand chrome]
  B --> G[OpenAI gpt-image: 1-4 variants]
  G --> M[Garment mockups]
  M --> Z[(Print-kit ZIP)]
The user supplies only the subject. The template, the brand kit and the server-side brand chrome add everything else before the image model is called, so brand consistency doesn't rely on the model remembering.

Input

A short request with a subject, for example a "statement" marker-print tee, a block-print glyph tee, a summer-drop Instagram tile or a weekend workshop poster. Purpose, template and brand details are filled in by the agent and the brand kit.

Output

1–4 brand-consistent variants in the template's format, garment mockups for apparel, and a print-kit ZIP. The ZIP's print guide covers standard placements (left chest, centre chest, full front, oversized front, back collar, upper back, vertical side and others) and print dimensions for each garment size.

Integrations

Image generation APILLM provider SDK (Designer agent)Google Drive (save outputs)MCP (the same image tools exposed to Claude)

Limitations

The Designer doesn't check its own image against the brief: there is no self-verification loop yet, so a weak result needs a manual regenerate. Generation is triggered by code and parsed directives; the agent doesn't choose tools itself. The planned next step is a vision-based QA agent that checks each image for brand palette, printability and legible text, and automatically rejects and regenerates failures within a budget cap.

Security Notes

Provider credentials never reach the browser, the database or the prompts. A cost gate estimates every image request and refuses unknown models rather than skipping the check. All outputs are scoped to the signed-in owner.

Learnings

Enforce brand rules in code, not only in prompts. Templates plus server-side brand chrome mean the user only describes the subject, and the brand holds whatever the model does. Asking explicitly for a flat, isolated graphic is what makes the output printable rather than a picture of a product.