Build a Daily KPI Digest Email in 30 Minutes (No Code)
Each morning, an email with yesterday's numbers, the change against the day before and last week, and a short read from Claude. Google Sheets, n8n and Gmail.
Keep the daily numbers in a Google Sheet and let formulas work out the changes. Each morning an n8n Schedule Trigger reads the digest tab, the HTML node turns the rows into a table, Claude writes a few sentences using only those numbers, and the Gmail node sends the table and the commentary to you.
The build: every morning you get an email with yesterday's key numbers, how each one moved against the day before and the same day last week, and three or four sentences from Claude on what changed most.
There's no code in it. The sheet does the math with ordinary formulas, and the n8n workflow is five nodes configured in the editor. The 30 minutes assume your daily numbers are already recorded in a Google Sheet, one row per day, whether from an export, a form or another integration, and that you have an n8n account, cloud or self-hosted.
What you need
- A Google Sheet with a tab named Daily: dates in column A, one metric per column after that.
- n8n with Google Sheets, Anthropic and Gmail credentials. On n8n Cloud, the Anthropic node can run on n8n's Gateway credits instead of your own Claude API key.
Step 1: Let the sheet work out the changes
Add a tab named Digest with these headers in row 1: Metric, Latest, Prior day, Same day last week, vs prior day, vs last week. Each row below holds one metric. For a metric in column B of the Daily tab, row 2 of Digest gets:
Metric: Revenue
Latest: =XLOOKUP(MAX(Daily!$A:$A), Daily!$A:$A, Daily!B:B, "")
Prior day: =XLOOKUP(MAX(Daily!$A:$A)-1, Daily!$A:$A, Daily!B:B, "")
Same day last week: =XLOOKUP(MAX(Daily!$A:$A)-7, Daily!$A:$A, Daily!B:B, "")
vs prior day: =IFERROR(B2/C2-1, "")
vs last week: =IFERROR(B2/D2-1, "")Copy the row down for each metric, change Daily!B:B to that metric's column, and format the last two columns as percentages. Then add a final row with Data date in the Metric column and =TEXT(MAX(Daily!$A:$A), "yyyy-mm-dd") under Latest, so the email says which day the numbers describe.
Two choices in those formulas matter. They look up the latest date in the Daily tab instead of using TODAY(), because Google's help notes that TODAY shows the date of the sheet's last recalculation, which can be an earlier day than you expect. And IFERROR returns a blank when a prior value is zero or missing, so a new metric doesn't put a division error in the email.
Step 2: Schedule the workflow
In n8n, add a Schedule Trigger with the Days interval, 1 day between triggers, and the hour and minute you want. The trigger uses the workflow's time zone if you set one in the workflow settings. Otherwise it uses the instance's time zone, which defaults to America/New York on self-hosted n8n, so set the workflow time zone to yours. The trigger only runs after you save and publish the workflow.
Step 3: Read the digest and build the table
Add a Google Sheets node with the Get Row(s) operation and point it at the Digest tab. Each row becomes one item in n8n.
n8n nodes usually run once for each item, so six rows would mean six AI calls and six emails. Add an HTML node with the Convert to HTML Table operation next. It takes the rows from the Sheets node and turns them into one HTML table, so the next steps run once. Its options set attributes on the table, headers, rows and cells, which is where borders and padding go.
Step 4: Ask Claude for the commentary
Add the Anthropic node with the Message a Model operation. In the prompt, drag the table field from the HTML node in place of the bracketed placeholder:
Below is a table of business numbers for one day, with the change
against the prior day and against the same day last week.
Write 3 or 4 sentences for the owner of the business:
- The biggest move, up or down, and its size.
- Any metric that is blank or looks out of line with the others.
- One thing worth a closer look today.
Use only the numbers in the table. Don't guess at causes.
Plain text, no lists, no greeting.
[table from the HTML node]The line about causes is there because the table holds no reasons. Asking for the size of each move and leaving the explanation to you keeps the commentary checkable against the numbers right above it.
Step 5: Send the email
Add a Gmail node with Resource set to Message and Operation set to Send. Put your own address in To, set Email Type to HTML, and build the message from the Anthropic reply in a paragraph followed by the table from the HTML node. By default the node adds a line saying the email was sent automatically with n8n. Turn off the Append n8n attribution option to remove it.
Step 6: Test before the first scheduled run
Run the workflow by hand from the editor. Check three things in the email that arrives: the numbers match the sheet, the Data date row shows the day you expect, and the commentary only mentions figures that appear in the table. Then publish it.
Things that trip this up
- Late data: if yesterday's numbers reach the sheet at 8 AM, schedule the email after that, or it will describe the day before. The Data date row makes this easy to spot.
- Missing days: a gap in the Daily tab leaves the Prior day or Same day last week cell blank. The prompt asks Claude to point out blanks, so you'll see it in the commentary.
- Renamed tabs: the formulas look for Daily and the Sheets node looks for Digest, so a rename has to happen in both.
What to add next
- A Monday version with the prior week's totals, from a weekly tab and a second Schedule Trigger set to the Weeks interval.
- Targets: add Target and vs target columns to the Digest tab, and the commentary can name the metrics that missed.
- More n8n patterns for small teams are in the n8n workflow automation guide.
Sources
- n8n docs, Schedule Trigger node (Days interval, workflow and instance time zones, publishing) (checked 2026-12-02)
- n8n docs, Google Sheets node (Get Row(s) operation) (checked 2026-12-02)
- n8n docs, HTML node (Convert to HTML Table) (checked 2026-12-02)
- n8n docs, Looping (nodes usually run once for each item) (checked 2026-12-02)
- n8n docs, Anthropic node (Message a Model, Gateway credits on n8n Cloud) (checked 2026-12-02)
- n8n docs, Gmail node message operations (Send, Email Type, Append n8n attribution) (checked 2026-12-02)
- Google Docs Editors Help, XLOOKUP function (checked 2026-12-02)
- Google Docs Editors Help, TODAY function (shows the date of the last recalculation) (checked 2026-12-02)
- Google Docs Editors Help, IFERROR function (checked 2026-12-02)
Get the next one.
Field notes from real deployments, written the way this one was. No schedule promised and nothing sold to you. Unsubscribe whenever.
Let's build yours.
Reading is the easy part. We do the work. Tell us what's broken and we'll tell you straight up whether we can help.
let's talk
