Quick answer: how to automate client reporting with AI
To automate client reporting with AI, start with approved source exports, define each metric, and validate the numbers before drafting commentary. Compare complete, matched periods, keep clients and currencies separate, and stop when required data is missing. Have an account manager approve the report before saving the procedure for reuse.
Which leads increased? Compared with which dates? Did someone export the same account twice?
Okou's current documentation describes an AI teammate that uses task context and connected tools to produce work for review. Here, begin with files you deliberately supply, without connecting client accounts.
What you need before you start
Choose one client and one report type, such as a weekly paid-campaign review. Bring approved exports for both periods, metric definitions and the client's report template. Name the account manager who approves the draft.
Start with read-only copies. Don't upload contact details, credentials or unrelated client records. Get the client's approval for the AI service and data handling your agency proposes; a reporting prompt doesn't replace that agreement.
The companion synthetic example ZIP contains CSV inputs, a Python verifier, a generated Markdown report and validated totals. The downloadable fixture uses English field names. Every client, account, row and number is fictional. It isn't a customer case or product walkthrough. No real account read, scheduled run or client delivery was tested.
Step-by-step: automate client reporting with AI
1. Collect a bounded set of source exports
Export the same fields for both periods. Record which client and accounts belong in the report, the reporting timezone, the export timestamp and the source's last complete reporting date. Include explicit zero-result days if your reporting contract requires daily coverage.
| Field | What to record |
|---|---|
| File and owner | Exact filename, report owner and approved source |
| Scope | Client, account IDs, channels and currency |
| Coverage | Inclusive start/end dates, timezone and complete-through date |
| Refresh | Export time, refresh cutoff and known attribution delay |
For real reporting, record actual authorized exports. No advertising platform supplied the example's rows.
Use separate client folders and chats. Okou's chat documentation says a new chat starts separate conversation context. That helps organize work, but it isn't an account-access restriction. Verify permissions and selected accounts separately, and never put client data into public research queries.
What goes wrong: yesterday's file remains in the folder and looks current. Require an explicit file list for every run. An unavailable export should produce a missing-input notice, not a report assembled from whatever is nearby.
2. Agree on a metric contract
A metric contract defines each number and which rows to include.
For the synthetic example:
| Decision | Agreed definition |
|---|---|
| Current period | November 9 to 15, 2026, inclusive, UTC |
| Comparison | November 2 to 8, 2026, inclusive, UTC; both periods are seven days |
| Reporting scope | Fictional Juniper Studio's two USD accounts; EUR account excluded |
| Leads | Fictional lead events, seven-day click attribution, no view-through, assigned to click date |
| Cost per lead | Total included USD spend divided by total included lead events |
| Lead events per click | Total included lead events divided by total included clicks, multiplied by 100 |
| Missing revenue | Unavailable; no revenue or return-on-ad-spend calculation |
| Duplicate policy | Remove identical account-day rows; stop on conflicting values for the same key |
Lead events aren't necessarily unique people or qualified CRM leads. Don't combine those measures under one “leads” heading. With real exports, document each source's attribution model and deduplication rules before combining channels.
Percentage change is (current / prior - 1) × 100; show unavailable when the prior value is zero or missing. Distinguish percentage points from percentage change.
What goes wrong: averaging campaign CPL values gives every campaign equal weight. Calculate aggregate CPL from aggregate spend and leads, even when a source already provides its own CPL column.
3. Validate before producing a client report
Before commentary, require a validation receipt listing duplicates, exclusions, missing fields and coverage gaps. Trace every total to its inputs.
Use these stopping rules:
- Required spend, leads or clicks are blank: stop. A blank isn't zero.
- An expected account-day is absent, or the source says the period isn't complete: stop and request a corrected export.
- An export is older than the agreed freshness limit: stop rather than reusing an older report.
- The client, attribution definition or currency differs from the contract: stop or apply an explicitly approved exclusion.
Keep mixed currencies separate. Converting EUR to USD requires an approved exchange-rate source, date and method. The example simply excludes EUR rows and records that exclusion. It also excludes their leads and clicks from the USD-scope comparison.
Worked example: what the local verification actually produced
The performance.csv example input contains 44 synthetic rows. The verifier removes two exact duplicates, checks 42 unique account-day records and excludes 14 EUR rows. The USD report uses the remaining 28 records.
| Validated USD-scope metric | November 2 to 8 | November 9 to 15 |
|---|---|---|
| Spend | $1,400 | $1,400 |
| Lead events | 105 | 112 |
| Clicks | 1,050 | 1,120 |
| Aggregate CPL | $13.333333 | $12.50 |
| Lead events per click | 10% | 10% |
| Revenue and ROAS | Unavailable | Unavailable |
Lead events increased 6.67%; aggregate CPL fell 6.25%. Calculate with full precision, then round for display.
The prior-period account CPLs are $10 and $20. Their average is $15, but the correct combined CPL is $1,400 / 105 = $13.333333.
One current account-day has $80 spend and zero leads. Its individual CPL is unavailable, not $0. Keep that spend in the aggregate. All revenue fields are blank, so reporting $0 revenue would invent a result.
To reproduce the arithmetic, open a terminal in the companion folder and run:
python3 verify.py --self-test
Python 3's standard library is sufficient. The script regenerates report.md and totals.json, including input hashes and exclusion details. It checks missing data, conflicting duplicates and stale exports with rejection tests.
Freshness uses a deliberately fixed review clock of November 16, 2026, at 12:00 UTC. This makes the fixture repeatable, not currently fresh. A production process must use the actual review time and source refresh status. A complete row grid alone can't prove a real export includes every conversion.
4. Draft commentary from validated totals
Give AI the checked totals and validation receipt. “Spend stayed at $1,400 while recorded lead events increased from 105 to 112” is defensible. These inputs don't establish why, or whether lead quality improved.
Use this complete request with the companion files. For production, replace the fictional contract with approved client definitions before running it:
Prepare a DRAFT weekly client report using only the attached
performance.csv, manifest.csv, verify.py and README.md.
Every account, row and number in these files is SYNTHETIC.
Do not describe this as a customer case or live platform result.
Client: SYNTHETIC-Juniper-Studio.
Current: 2026-11-09 through 2026-11-15, inclusive, UTC.
Prior: 2026-11-02 through 2026-11-08, inclusive, UTC.
Use the README metric contract and attribution definition.
For this fixture only, use its fixed review clock. In production,
require the actual review time and approved refresh cutoff.
First inspect the files and run the supplied verifier with
--self-test if code execution is available. Do not claim execution
if it isn't available. Report a blocker instead of guessing.
Check expected account-day coverage, completeness and freshness.
Remove exact duplicates only; stop on conflicting duplicates.
Exclude and log EUR rows from the USD scope. Do not convert FX.
Stop if required spend, leads or clicks are missing. Never treat
blanks as zero. Show zero-denominator ratios as unavailable.
Calculate aggregate ratios from sums, not average row ratios.
Revenue is blank: revenue and ROAS must remain unavailable.
Return the validation receipt first. If any required check fails,
return a BLOCKED notice with the missing input, owner question
and next action. Do not generate a client-ready summary or use
an older report as a fallback.
Otherwise return a draft with scope, matched-period KPI table,
observations, limitations and proposed actions for human review.
Trace factual statements to validated totals or supplied sources.
Do not invent causes, customer outcomes or performance promises.
Use only this client's supplied files. No external account reads,
CMS operations, publishing, schedules or messages. If asked for
an email, provide draft text only. Do not create or send email.
For a social-content section, keep public observations separate from private performance analytics. The Instagram profile analysis guide explains that public-profile research doesn't provide reach or audience demographics.
What goes wrong: plausible commentary turns into an unsupported recommendation. “Ask the account manager to investigate the zero-lead day” is justified. “Increase the budget because creative improved” isn't supported by this fixture.
5. Review the report before sharing
Open the generated report alongside the validation receipt. Check the client name, dates, currency labels and headline calculations before editing the prose.
Does each recommendation follow from these inputs, or need CRM outcomes or campaign history? Assign unresolved questions to an owner. Keep the report in draft until required issues are resolved.
Keep delivery separate. If you want an email, request draft text first and confirm recipients and attachments yourself. For later connected-tool use, Okou's permissions documentation recommends read or draft access and withholding final write or send permissions where those are separate operations. A prompt alone isn't an access-control guarantee.
What goes wrong: an attractive summary hides a failed data check. A blocked report needs a visible blocked status, not a reassuring executive summary.
6. Save the reviewed process for reuse
After manual review, save the contract, required inputs, stopping rules and output template as a reusable procedure. Keep client-specific files separate.
Okou Workflows store reusable instructions and optional reference files. Each execution uses the executing person's accounts and permissions; sharing a Workflow doesn't share private client data. A Workflow alone has no schedule or trigger.
Test another manual run, including failure handling, before considering recurring execution. This guide creates no schedule; no recurring run was tested.
What goes wrong: copying a successful report carries last week's dates and client details forward. Require those as fresh inputs every time.
Production acceptance checklist
Before treating an AI-assisted report as ready for approval, confirm:
- Correct client, authorized inputs, selected accounts and access boundaries.
- Matched dates, timezone, complete coverage and acceptable source freshness.
- Approved attribution definitions, duplicate policy and currency treatment.
- Required missing fields block output; optional gaps stay labeled unavailable.
- Aggregate ratios and zero-denominator handling checked independently.
- Commentary distinguishes facts from hypotheses; actions have an owner.
- Human approval recorded against the exact report version.
- Delivery remains separate; no unsent draft is recorded as delivered.
Frequently asked questions
Can AI write a client report from a spreadsheet?
Yes, it can help turn supplied data into a draft. Use deterministic calculations and a validation receipt for the numbers, then have a person review the commentary and client context. The verified example here covers local calculations only.
What should happen when data is missing or stale?
Stop the client-ready report when required inputs fail. Return the affected source, missing field or date, and the person who can resolve it. Don't fill blanks with zero or silently substitute a previous period.
Can one reporting workflow serve several clients?
Reuse the method, definitions template and checklist. Supply each client's approved inputs separately, check account access each time, and keep client-specific context out of shared instructions. Start with one deliverable, as the Okou for agencies approach recommends.
Need to choose the tool first? Our AI agents for marketing teams comparison separates reporting, research, and follow-through jobs. It is a documentation-based selection guide, not a shared performance benchmark.
Next steps
Run the synthetic example and inspect its exclusions before trying an approved client export. For adjacent agency work, see the creator outreach tracker guide and broader AI agent use cases. Keep the same review boundary: checked inputs, a visible draft and a person responsible for the final decision.





