Problem
Spotify Ads Manager lets advertisers describe a campaign in plain language and get an audio ad script plus audience targeting. The first version was one agent with one huge instruction covering script generation, brand safety, audience resolution, validation and the JSON schema. Any change to it shifted behavior elsewhere, and nobody could tell which part was wrong. Downstream systems also rejected targeting values the model invented.
Example from the article: for "women 21 plus in Nashville" the agent returned an age range of 21 to 99, which is not one of the supported age brackets, so the request was rejected.
Solution in brief
Split the work into small agents, each with one owner and one job, and run them under shared orchestration, guardrails and session state. Give the model only semantic judgment: intent, tone, sensitive topics. Everything that can be computed or looked up goes to code and tools. Evaluate with traces, using trajectory checks, deterministic asserts and a scoped LLM judge.
Questions this case answers
- How to decompose a single overloaded LLM agent into narrow agents with clear ownership when one prompt makes failures impossible to isolate
- How to evaluate a multi-agent LLM pipeline in production with trace-based checks, an LLM judge and sampled live traffic while keeping evaluation cost low
- How to split a monolithic LLM agent into several agents that are easier to debug and own?
- How to decide which parts of an LLM feature must be plain code and which can be left to the model?
Tools and methods
- Google ADK (Java) — agent runtime with sequential, parallel and loop agents, session state and tool context
- Vertex AI via an internal LLM gateway — model access
- Moderation classifier — cheap gate that runs before any LLM call
- OpenTelemetry GenAI conventions, Grafana — traces and dashboards for every agent
- LLM as a judge — scoped checks of tone, brand fit and semantic coherence
Google or a one-time email code. No password.