Marketing Ops with Sam
Blog

Automation

The Monday report that can't make up a number 📬

Build an automated marketing report where code does the maths, AI only writes the words, and a one-line check catches any number the AI invents.

Toy report character holding a coffee and a pencil beside a bar chart, illustrating an automated marketing report that writes itself

Quick answer: A reliable automated marketing report splits the job in two. Code pulls last week’s numbers from GA4 and your CRM and does all the maths, then AI writes a short summary using only those numbers. A small script checks every figure in the summary against the data, and if one doesn’t match, the report goes out as a plain table instead.

Google Analytics got proper Dashboards in September. They’re good. They also sit there and wait for you to open them, and the person who asked for the Monday report isn’t going to.

So someone still copies numbers into an email every week. Or they’ve handed it to AI, and that’s where it gets interesting.

AgencyAnalytics surveyed 494 agency professionals for its 2026 benchmarks. Reporting and performance summaries came out on top as the place AI delivered the most value, at 42%. Same report, different question: on the list of what clients value most in a report, AI-driven insights and summaries came last, at 9%. Accurate reporting, meanwhile, was rated important for retention by 97%. (AgencyAnalytics sells reporting software, so read it with that in mind. The gap is still telling.)

Teams love the summary because it saves them time. Readers care whether the numbers are right.

Toy calculator character handing a percentage card to a small blob holding a pencil, showing how an automated marketing report splits counting from writing The calculator counts. The pencil only gets to write about what it was handed.

The idea 💡

Let code do every sum, let AI write only the words, and check one against the other before anything is sent.

Why it works 🧠

Pasting a CSV into a chat window and asking for “a summary” gives the model two jobs: arithmetic and writing. It’s good at one of them. When it gets a percentage wrong, the sentence still reads beautifully, which makes the mistake hard to spot.

Agencies have noticed. In the same survey, 58% said they’ve increased human review and oversight of AI-generated work. The number check does part of that review for you, on the part a script can do perfectly.

There’s a second trap, and it has nothing to do with AI. Google says daily data for a standard GA4 property typically takes 12 hours to process, that some data can arrive up to 7 days late, and that credit for key events can shift for up to 12 days. So an 8am Monday report reads a Sunday that’s still in the oven.

Toy oven character with a half-baked loaf made of bar chart columns next to a clock showing 8, showing why an automated marketing report shouldn’t run too early 8am Monday: Sunday isn’t done yet.

How to build an automated marketing report ✍️

  1. Choose five numbers and name who acts on each. If nobody would do anything differently when a number moves, cut it. Sessions by channel, leads, qualified leads, new pipeline and spend is a fair start.
  2. Close the week properly. Monday to Sunday, compared with the Monday to Sunday before it. Run it after midday Monday in your property’s time zone, so Sunday has had its 12 hours.
  3. Mark recent weeks as provisional. Each report also re-pulls the previous week. If a figure has moved, it says so in one line. People stop arguing about “why doesn’t this match” once the report explains it first.
  4. Show the table first and the words second. The table is the record. The summary is the opinion.
  5. End on one question. A report that asks something gets a reply. One that doesn’t gets archived.

Copy this:

Subject: Marketing, week ending {sunday_date}

{ai_summary: three lines}

METRIC          THIS WEEK   LAST WEEK   CHANGE
Sessions        {n}         {n}         {pct}
Leads           {n}         {n}         {pct}
Qualified       {n}         {n}         {pct}
New pipeline    {$}         {$}         {pct}
Spend           {$}         {$}         {pct}

Revised: {metric} for the week before is now {n} (was {n}).
Question for this week: {one question}

Automate it ⚙️

Toy magnifying glass character checking a number between a happy blob with a tick and a worried blob with a cross, showing the number check in an automated marketing report Every number in the summary has to be found in the data, or the summary doesn’t go out.

  1. Schedule it for Monday just after midday, in whatever you already run: a cron job, your automation platform or a scheduled agent.
  2. Pull the data. GA4’s Data API takes two date ranges in one request. Google also has an official MCP server that lets an AI agent run those reports, and its documentation describes it as read-only by default. For the CRM side, use a saved report in HubSpot, Salesforce, Marketo or Dynamics.
  3. Do the maths in code. Totals, differences and percentages get worked out here and saved to a sheet as a snapshot. That sheet is how you spot revisions next week.
  4. Hand AI the finished facts. Not the raw export.
You write the summary at the top of a weekly marketing report.
Use ONLY the facts in the JSON below. Copy each number exactly as
written, in digits. Never calculate, round or estimate anything.

Write three lines:
1. The biggest change this week and whether it's good news.
2. The one figure that looks odd and is worth checking.
3. One question for the team to answer this week.

Plain Australian English, no hype. No numbered lists.
If something is missing or marked provisional, say so.

FACTS: {facts_json}
  1. Run the number check. It pulls every number out of the summary and looks for it in the facts.
const nums = s => (String(s).match(/\d[\d,]*\.?\d*/g) || [])
  .map(n => n.replace(/,/g, '').replace(/\.$/, ''));

function numberCheck(facts, summary) {
  const allowed = new Set(nums(JSON.stringify(facts)));
  return nums(summary).filter(n => !allowed.has(n));
}
// Anything returned wasn't in the data: drop the summary, send the table.

I ran that against a made-up week before putting it here. Clean text passed, and a summary with two invented figures got both caught. It won’t catch “four” spelled out, or a real number attached to the wrong channel, which is why the prompt insists on digits and why someone should still read the first few weeks.

  1. Make failure loud. When I tested this on my own site today, the run stopped before it read a single number because my Google login had expired. A report that quietly doesn’t arrive is easy to miss for weeks, so any failed or empty pull should send a message saying what broke.

If you’d like this wired into your own stack, that’s what my HubSpot automation and AI agents work covers. It’s also one of the workflow automation examples I’d build first.

Quick wins to try 🧪

  • 🏷️ Fix your source names first. A UTM naming convention stops one channel turning into five rows.
  • 🤖 Add a row for GA4’s AI Assistant channel, which covers visits from tools like ChatGPT and Gemini. It excludes Google’s AI Overviews and AI Mode.
  • 🔍 Watch for small numbers. GA4 may withhold data on narrow date ranges with low counts, so widen the range before you panic.
  • 🧮 Work out what the weekly copy-paste costs in a year with the automation ROI calculator.
  • ✂️ Delete one metric every month until the report fits on a phone screen.

How to measure it 📊

  • Replies to the question: the best sign someone read it. Zero for three weeks means you should change the question or the audience.
  • Number check failures: log each one. If it keeps tripping, tighten the prompt or simplify the facts.
  • Corrections after sending: how often someone has to say “that’s wrong”. Aim for none.

Frequently Asked Questions

What should an automated marketing report include?

Five or so numbers that someone will act on, this week against last week, a three-line summary, any revised figures and one question. Leave out anything that wouldn’t change a decision. Dashboards can hold the rest for anyone who wants to dig.

Can ChatGPT or Claude write my marketing report?

They can write it well, as long as they don’t do the maths. Have code calculate every figure first, give the model only those finished numbers, and check its output against them. Pasting a raw export and asking for a summary is where errors creep in.

Why do my GA4 numbers change after I’ve sent the report?

GA4 keeps processing after the day ends. Google says data can arrive up to 7 days late and that attribution for key events can change for up to 12 days. Treat recent weeks as provisional and show any revisions in the next report.

When should a weekly marketing report run?

After GA4 has processed the last day. For a standard property that’s typically about 12 hours after midnight, so midday Monday in your property’s time zone is a sensible time. Busy properties on higher tiers can take longer.

The report nobody has to build is nice. The one nobody has to double-check is what you’re after.

Sam

If you want this built for you, book a call.

Keep reading: the same code-counts, AI-comments split works for experiments. Here’s how to A/B test with low traffic and keep a test log that fills itself in.

Want this built in your stack?

20 minutes. I’ll point to at least one real leak in your funnel, or tell you straight that there isn’t one.

Book a call

Get the next post in your inbox.

One short email when there’s something worth sharing.

Make AI photos that don’t look like AI.

Get the free playbook: 5 rules and 15 copy-ready prompts for photos of yourself, product shots and posters.

Free, in your inbox in a minute. You’ll also get my Friday AI idea.