Back to guides

How to Automate Client Reporting with AI: A Step-by-Step Example

How to Automate Client Reporting with AI: A Step-by-Step Example

Our example client spent $1,400 in each of two weeks. Lead events went from 105 to 112, and cost per lead fell from $13.33 to $12.50. That looks like a good opening for a weekly report. It still leaves the client with a question: what changed?

We gave Okou the data, asked for a report, and reviewed the result. The useful finding was a change in the budget split between two accounts. The first response also contained details we had to correct. Below are the request, screenshots, numbers, and follow-up edits, so you can try the same job.

Juniper Studio and every account and number in this example are fictional. We ran real tasks in an Okou staging workspace on November 23, 2026. This walkthrough covers creating and revising a report from files; it does not demonstrate a live ad-account connection or scheduled delivery.

1. Give Okou the export and the reporting dates

Open a new chat. For this run, we pasted a link to the sample data package. It contains the performance CSV, account and date information, and calculation examples you can use to check the answer.

The CSV has 44 rows: two weeks of activity for two USD accounts and one EUR account, plus two exact duplicates. The report should include only the USD accounts. Revenue is blank. The accompanying notes explain that “leads” means recorded lead events, not qualified prospects or customers.

Here is the request we sent, with the long download URL shortened to a placeholder:

Create a weekly client report for fictional Juniper Studio. Download the sample data here: [sample data link]. Read README.md and manifest.csv before calculating. Compare November 9–15 with November 2–8, 2026. Show spend, recorded lead events, clicks, and cost per lead, plus a short client-facing summary and one useful follow-up question. Return a downloadable Markdown report and a separate short calculation note. Do not send or schedule anything.

The actual request in the test workspace. We supplied the data link and asked for a report and a separate calculation note.

For your own report, replace the example data and dates with the client's approved exports. Include the account manager's notes if a promotion ended or a campaign was paused. This sample has no such notes, so it cannot tell us why an individual day performed differently.

2. Check the first result against the CSV

Okou returned the report, a calculation note, and this table in the conversation:

MetricNovember 2–8November 9–15
Spend$1,400$1,400
Recorded lead events105112
Clicks1,0501,120
Cost per lead$13.33$12.50

The first result. The headline totals matched our separate calculation from the CSV.

We checked that the two duplicate rows were removed and the 14 EUR rows were excluded, leaving 28 USD account-days. We also checked the division: $1,400 ÷ 105 gives $13.33, and $1,400 ÷ 112 gives $12.50. The unrounded reduction is 6.25%; the response shows 6.3% at one decimal place.

Revenue stayed unavailable. A blank revenue column does not justify a ROAS of zero.

3. Explain why the combined cost changed

The account detail is more useful than another paragraph calling the week “strong.”

AccountPrevious spendCurrent spendCPL in both weeks
A$700$840$10
B$700$560$20

Neither account's cost per lead improved. More of the same $1,400 went to Account A, where a lead event cost less. Its share rose from 50% to 60%, lowering the combined CPL. Lead events per click stayed at 10% in both accounts.

Okou identified that change in its first response. We checked it against the account totals before keeping it in the report. The data does not show whether A's leads were more likely to become customers, so a recommendation to move more budget there would need sales or CRM evidence.

4. Edit the details before calling the report finished

The first response got the main arithmetic right, but we still made corrections.

It described the excluded EUR account as “$70/week.” We changed that to EUR 70. It speculated that Account B's higher count on November 15 might be a surge or late attribution, despite having no account notes. We asked it to state the observed count and leave the cause open.

A later draft also said B recorded four leads on the other six days. The CSV actually shows zero on November 9, four on each day from November 10 to 14, and eight on November 15. That mistake is easy to miss if you review only the weekly totals.

Our last follow-up included:

One last correction: Account B recorded 0 lead events on November 9, 4 on each day November 10–14, and 8 on November 15. Please fix the statement about the other six days. Keep the fixed November 16 review clock and attribution timing together in one short method note, rather than describing the export as current.

The fixed clock belongs to the sample package. It makes the example repeatable; it is not evidence that a client's export is fresh on the day you open it.

The revised report, with the account detail available beneath the weekly totals. We used two follow-up messages to correct and tighten the first draft.

The revised opening was straightforward:

Spend held flat at $1,400.00. Recorded lead events rose from 105 to 112 (+6.7%) and clicks rose from 1,050 to 1,120 (+6.7%), while cost per lead fell from $13.33 to $12.50 (−6.3%). On the same budget, the week produced more clicks and more lead events at a lower blended cost.

The report then explains the budget split and asks whether the team can review lead quality before changing it. That gives the account manager a useful next conversation with the client.

5. Reuse the report next week

Keep the corrected report and its instructions. Next time, supply the new exports and account notes, then ask Okou to update the same report. Replace the explanation as well as the numbers; last week's budget change should not become a permanent line in the template.

Once the format is working, you can save the instructions as an Okou workflow. An automation can run a workflow on a schedule when its data sources are available. We did not set up or test that step in this walkthrough.

For the first recurring run, have the draft come to you. Check the dates, totals, and explanations before passing it to the client. In this example, those checks caught a currency label, an unsupported explanation, and a daily-count error that the correct headline numbers did not reveal.

If you need shared dashboards and recurring reports for many clients, our marketing AI tools guide also covers Whatagraph and other options.

Frequently asked questions

What data do I need for an AI-generated client report?

Provide the reporting dates, comparison period, account IDs, currencies, spend, clicks, and the conversion metric you want to report. Explain what that metric counts. In this example, leads are recorded events, not qualified prospects. Include revenue only when it is available, and add account notes for changes such as paused campaigns. The sample package above includes a CSV and its definitions.

How do I calculate cost per lead across multiple accounts?

For accounts in the same currency and reporting period, divide total spend by total recorded lead events. Here, $1,400 ÷ 112 = $12.50. Do not take the simple average of the accounts' $10 and $20 CPLs: $15 would be wrong for this budget split. Remove duplicate rows and confirm the lead definition before adding the numbers.

Why did the overall CPL fall when neither account improved?

More of the budget went to the lower-cost account. Account A stayed at $10 per lead event and Account B at $20. A's share of total spend rose from 50% to 60%, lowering the combined CPL from $13.33 to $12.50. That does not establish better lead quality or justify another budget shift without sales or CRM evidence.

What should the report say when revenue is missing?

Mark revenue and ROAS as unavailable. A blank revenue field is not zero revenue. Our sample supports spend, click, lead-event, and CPL calculations, but it cannot establish revenue, profit, or return on ad spend.

Can I schedule the same client report every week?

You can save the reporting instructions as an Okou workflow and use an automation to run it on a schedule when the required data sources are available. First check that each run receives the new export and correct reporting dates. This walkthrough tested report creation and revision, not scheduled runs or automatic client delivery.

What should I check before sending the report to a client?

Check dates, account scope, currency, duplicate rows, missing values, and totals against the source file. Then read the explanation and spot-check any daily figures it mentions. In our run, correct weekly totals still came with a wrong currency label, an unsupported explanation, and a daily-count error. We corrected those before keeping the report.