KEY TAKEAWAYS
- A weekly reporting agent works best when code fetches and calculates the numbers and the AI only writes the narrative, so the model never has to do arithmetic or guess.
- The reliable pipeline is: scheduled trigger, pull GA4, ad platform and CRM data, compute week-over-week changes, have the model draft a short summary, then post to Slack for a human to skim.
- Guardrails matter more than prompts: read-only credentials, numbers passed in as data, a required 'what I'm unsure about' line, and a human review step for the first month.
Every Monday, somebody on your team opens five tabs, copies numbers into a slide, and writes “traffic was up, conversions were mixed” in different words than last week. It takes an hour or two. Nobody enjoys it, and by the time it’s done the numbers are already stale.
This is a near-perfect job for an AI agent: the inputs are structured, the output is a short narrative, and a mistake is caught quickly by a human who knows the business. But it only works if you build it the right way round. Here is the pattern we use, with the prompts, the guardrails and an honest view of the cost.
What should the agent do, and what shouldn’t it?
Let code fetch and calculate the numbers, and let the AI write the story. Models are excellent at turning a table into a clear paragraph and flagging what looks unusual. They are unreliable at arithmetic and at remembering figures, so never ask one to do either.
The split looks like this:
| Step | Who does it | Why |
|---|---|---|
| Pull data from GA4, ads and CRM | Script or automation tool | Deterministic, auditable |
| Calculate week-over-week changes | Script | Models make arithmetic slips |
| Write the narrative and flag oddities | AI model | Strength of language models |
| Check numbers in the narrative | Script | Catches invented figures |
| Review and send | Human (at first) | Accountability |
If you’ve read our guide on AI agents vs automations vs chatbots, you’ll notice this is more of a workflow with one AI step than a free-roaming agent. That’s deliberate. For reporting, a narrow, predictable design beats an autonomous one.
What’s the architecture?
A scheduled trigger runs a pipeline: fetch, calculate, summarize, validate, post. You can build it in n8n, Make, Zapier or a small script. Our comparison of n8n, Make and Zapier will help you choose.
- Trigger. Every Monday at 7:00 in your timezone.
- Fetch. Pull last week and the comparison weeks from each source.
- Calculate. Compute totals, rates and percentage changes.
- Summarize. Send the verified table to the model with the prompt below.
- Validate. Check that every number in the draft exists in the data.
- Post. Send to a private Slack channel for review, then to the team channel.
Data sources
- GA4. Google’s Analytics Data API lets you request reports with date ranges, dimensions and metrics programmatically (Google). Pull sessions, key events (conversions) and the top landing pages or channels.
- Ad platforms. Spend, impressions, clicks, conversions and cost per result from Meta and Google Ads. Use each platform’s official API or reporting connector.
- CRM. New leads, qualified leads, deals won and revenue for the same dates.
Use read-only credentials for all of them. The agent should be able to look but never touch.
A practical warning: metric definitions differ between platforms. GA4 conversions, Meta conversions and CRM leads will not match, and that’s normal. Report each in its own labeled row instead of trying to merge them. If the mismatch bothers you, our post on marketing attribution after cookies explains how to reason about it.
How do you structure the data for the model?
Hand the model a compact, labeled table with the current value, previous value and change for every metric. Don’t paste raw API responses. Less noise means fewer mistakes.
Example (illustrative layout, not real data):
| Metric | This week | Last week | Change |
|---|---|---|---|
| Sessions | (value) | (value) | (calculated %) |
| Conversions (GA4) | (value) | (value) | (calculated %) |
| Ad spend | (value) | (value) | (calculated %) |
| Cost per lead | (value) | (value) | (calculated %) |
| New CRM leads | (value) | (value) | (calculated %) |
Add a short “context” field you maintain by hand: promotions running, launches, holidays, known tracking issues. A model can’t know you ran a flash sale unless you tell it.
What prompt should you use?
Use a tight system prompt that sets the audience, forbids outside numbers, and requires an uncertainty section. Here’s a starting version to adapt.
You are a marketing analyst writing a weekly summary for a busy founder.
Use ONLY the numbers in the data table provided. Never calculate new
figures and never use outside knowledge about benchmarks.
Write in plain English, under 200 words, in this structure:
1. Headline: one sentence on the week.
2. What went well: up to 3 bullets, each citing a metric from the table.
3. What needs attention: up to 3 bullets, each citing a metric.
4. Questions to check: things that look odd or could be a tracking issue.
5. Suggested next step: one concrete action.
If a change is under 5% in either direction, call it flat.
Use the context notes to explain changes, and say so if no explanation
is available. Do not guess causes.
Two details do most of the work. “Do not guess causes” stops the model from inventing reasons for a dip. “Questions to check” gives it a safe place to express doubt, which beats a confident wrong answer.
What guardrails does it need?
Read-only access, verified inputs, output validation, and a human in the loop at first. This is the same discipline we describe in our AI agent guardrails guide.
Guardrail checklist
- Read-only API credentials stored as secrets, never in the prompt
- Numbers calculated by code, passed in as data
- Validation step: every number in the draft appears in the table, or the post is blocked
- A fixed output template so reports are comparable week to week
- Alert (not a report) if any data source returns an error or an empty result
- Draft goes to a private review channel for the first four weeks
- Log every run with the inputs and outputs for later audit
The empty-result alert is the one people skip. If the GA4 call fails and the pipeline carries on, the model will cheerfully summarize a blank table. Fail loudly instead.
How do you post it to Slack?
Use a Slack incoming webhook or your automation tool’s Slack node to post a formatted message. Slack’s documentation describes incoming webhooks as a way to post messages from other apps into Slack using a unique URL and a JSON payload (Slack). Treat that URL as a secret, since anyone who has it can post to your channel.
Format the message with the headline in bold, the bullets underneath and a link to the full dashboard. Keep it short enough to read on a phone. If a report needs scrolling, nobody will read it.
What does it cost?
Usually very little to run and a modest amount of time to build. The model call is a small prompt with a short answer each week, so the usage cost is tiny compared with the analyst hour it replaces. Check your provider’s current pricing, since it changes.
The real costs are:
- Build time. A simple version is a day or two. A polished one with validation and multiple sources takes longer.
- Platform fees. Your automation tool’s plan, if you use one.
- Maintenance. APIs, field names and permissions change. Budget a little time each month.
- Review time. Five minutes a week while you build trust.
We won’t quote a ROI figure because it depends entirely on how much your team’s time is worth and how many reports you produce. A fair test: if the report currently takes someone an hour a week, the agent pays back its build in a couple of months, assuming it runs reliably.
How do you roll it out safely?
- Weeks 1 to 2. Run it in parallel with the manual report. Compare every number.
- Weeks 3 to 4. Post drafts to a private channel and edit before sharing.
- Month 2 onward. Post directly, with the validation step and error alerts still on.
- Quarterly. Review whether the report still answers the questions people ask. Delete sections nobody reads.
Once the basics are stable, consider extending it: an anomaly alert mid-week, per-channel summaries, or a client-friendly version. For more on how agents fit into a team, see AI agents for marketing teams. If you’d rather have this built and monitored for you, that’s what our AI agents service does.
What to do this week
- Write down your five numbers. Pick the five metrics your Monday report must contain, and where each comes from.
- Create read-only access. Set up read-only credentials for GA4, your ad accounts and your CRM, and store them as secrets.
- Build the data step first. Get a script or workflow producing the comparison table before you touch an AI model.
- Add the prompt and validation. Use the prompt above, then block any draft containing a number that isn’t in the table.
- Run it in shadow mode for two weeks. Compare with your manual report. Grab our automation blueprints if you want a starting workflow.
Frequently asked questions
Can AI write my weekly marketing report?
+
Yes, with a caveat. AI is good at turning a table of numbers into a clear narrative with highlights and questions. It's unreliable at calculating or recalling the numbers itself. Have a script fetch and compute the metrics, then give the model only those verified figures to summarize.
What data should a marketing reporting agent pull?
+
Start small: website sessions and conversions from GA4, spend and results from each ad platform, and leads or revenue from your CRM. Pull the same fields every week, compare to the previous week and the same week a month ago, and add more sources only when someone actually asks for them.
How much does an AI reporting agent cost to run?
+
Usually little. The model call is a few thousand tokens per report, so a weekly run costs a small fraction of what an hour of analyst time does. Your real costs are the build time, any automation platform subscription, and the maintenance when an API or field changes. Check current model pricing before budgeting.
How do I stop an AI agent from making up numbers in a report?
+
Never ask the model to find or calculate numbers. Pass in a verified data table, instruct it to use only those figures, and validate the output with a script that checks every number in the summary appears in the data. Add a human review for the first few weeks.
Do I need to code to build a reporting agent?
+
Not necessarily. Tools like n8n, Make or Zapier can schedule the run, call APIs and post to Slack with little or no code. You may want a small code step for calculations and validation. If your data lives in a warehouse or spreadsheet, the build is even simpler.
Sources
⚙️ 5 AI Automation Blueprints
Step-by-step builds for an AI lead qualifier, blog-to-social repurposer, ad report bot and more. Works in n8n, Make or Zapier.

By 