Campaign analyzer
You’ll build an agent that takes an exported campaign report, computes the key metrics in code, and returns a summary with visuals.
The plan
- Create the analyzer agent
- Accept the campaign export
- Enable code execution for the math and charts
- Return a summary with visuals
Step 1 — Create the agent
Create an agent in Agents. In System instructions, define the metrics that matter (CTR, CPA, ROAS, conversion) and the takeaways you want highlighted.
Step 2 — Accept the export
Turn on Accept files in the Capabilities tab so a marketer can attach the CSV or spreadsheet export.
Step 3 — Enable code execution
Turn on workspace execution and code execution so the agent computes metrics exactly and can generate charts as images rather than estimating.
Step 4 — Return a visual summary
Enable Artifacts in the Capabilities tab so the agent delivers a readable report with the generated charts the team can download. Test from the builder preview.