AI
Inside Spotify's Multi-Agent AI System for Ad Creation at Scale
Spotify engineers detail how their production multi-agent platform automates advertising workflows, handling over 20,000 AI-generated creatives for 7,000+ advertisers.
InfoQ
Spotify's advertising platform has built a production-grade multi-agent AI system that now powers the majority of its ad creative generation pipeline. Senior engineer Pratik Rasam outlined the architecture and lessons learned at QCon AI, revealing a system handling real campaigns, real budgets, and measurable results rather than research prototypes.
Scale and Real-World Impact#
Since launching its Ads AI platform last year, Spotify has generated over 20,000 creatives across 7,000+ advertisers, with more than 70% of ads now leveraging AI tools. The system transforms the ad creation workflow from a labor-intensive process requiring copywriting and music composition into a simple task where advertisers describe their goals in natural language and receive fully formed campaign options.
The platform accepts advertiser intent—such as targeting senior engineers across U.S. tech hubs—extracts structured goals and audience segments from that description, and orchestrates multiple specialized agents to produce final ad scripts and audience recommendations.
One Agent, One Owner, Clear Boundaries#
The architecture enforces a strict ownership model: each agent runs as an independent package with a single responsible team. The system uses Bazel for dependency management, with compile-time enforcement preventing unauthorized cross-agent dependencies. Each agent package includes monitoring YAML, alerting configuration, and LLM settings as frontmatter—ensuring observability and governance are built in before any code is written.
This structure reflects a critical design principle: agents handle reasoning, judgment, and intent extraction, while deterministic code and grounded data lookups happen through tools. Rather than letting LLMs guess geographic interests or audience segments, the platform routes those queries to Spotify's public web APIs, keeping hallucinations out of the ad system.
Architecture and Orchestration#
The stack runs on Google Cloud ADK (Agent Development Kit), organizing agents by responsibility:
- Ad Script Generation Agent — creates copywriting and creative briefs
- Ad Guardrail Agent — enforces brand safety and policy compliance
- Audience Recommendation Agent — suggests targeting based on campaign signals
A shared orchestration layer manages session state, tracing, and tool context across all agents. Safety guardrails and moderation policies are enforced at the platform level, not embedded in individual agents, ensuring consistency. The system uses OpenTelemetry GenAI conventions for standardized tracing, enabling teams to replay and test production traces without synthetic data.

