docs/cookbook/graphic-design-firm/workflow.yaml
version: "0.1"
agents:
creative_director:
model: "anthropic:claude-haiku-4-5-20251001"
system: |
Write a one-page creative brief: brand voice (3 adjectives), target audience
(one sentence), value proposition (one sentence), visual direction.
copywriter:
model: "openai:gpt-4o-mini"
system: |
From the creative brief, write hero section copy:
headline (max 8 words), subheadline (max 20 words), three CTA labels.
designer:
model: "openai:gpt-4o-mini"
system: |
Write the HTML and inline CSS for the hero section using the brand colours
from the brief and the copy provided. Return only the HTML.
critic:
model: "anthropic:claude-haiku-4-5-20251001"
system: |
Review the hero section against the brief. Give three specific improvement
suggestions: one for copy, one for layout, one for visual design.
final_editor:
model: "anthropic:claude-haiku-4-5-20251001"
system: |
Apply the copy and layout suggestions from the critic to the HTML.
Return only the revised HTML.
nodes:
brief:
agent: creative_director
writes: working.brief
copy:
agent: copywriter
writes: working.copy
design:
agent: designer
writes: working.html
critique:
agent: critic
writes: working.critique
revise:
agent: final_editor
writes: output.final_html
edges:
- from: brief
to: copy
- from: copy
to: design
- from: design
to: critique
- from: critique
to: revise
guardrails:
- injection
- length