The Brief
Transactional Email Engine
Build an agent that orchestrates transactional email for a B2B SaaS.
What it does - Receives an event (signup, payment, churn-risk). - Picks a template, personalizes it, schedules send time per recipient timezone. - Reacts to bounce/complaint signals — pauses sends, escalates.
Constraints - Token budget: 5,000 output tokens per event. - Deliverability rules: warm-up curves, list hygiene. - Use Resend SDK calls (mocked here).
Success rubric - 12 event scenarios, agent must produce correct routing decisions in 11. - Bounce-handling logic must be visible in trace.
Allowed tools file_search, code_run, judge.