Every Monday, reads your metrics sheet and emails a short written briefing on what moved and by how much.
Uses
Claude
Gmail
Google Sheets
Weekly metrics briefing by email
metricsUrl to blank.Set metricsUrl to blank.recipientEmail to blank.Set recipientEmail to blank.metricsTab to Metrics.Set metricsTab to Metrics.maxRows to 100.Set maxRows to 100.metricsUrl. Save it as sheet.Read the rows of metricsUrl. Save it as sheet.lines to an empty list.Set lines to an empty list.measure in sheet.rows:For each measure in sheet.rows:rowErrorIf a step below fails, save the error as rowErrorTry
measure.Measure and save it as label.Trim measure.Measure and save it as label.label isn't emptyIf label isn't emptyYes
label: this week measure["This week"], last week measure["Last week"] to the end of lines and save it as lines.Add - label: this week measure["This week"], last week measure["Last week"] to the end of lines and save it as lines.No
No steps
On error
rowError as text.Show in the output: Skipped a metrics row: rowError as text.lines is emptyIf lines is emptyYes
recipientEmail.Send an email to recipientEmail.
Subject: Weekly briefing - no numbers foundThe metrics sheet had no readable measures this week, so there is no briefing to send. It is worth checking whether whatever fills that sheet is still running.No
lines with a new line and save it as numbers.Join lines with a new line and save it as numbers.briefingErrorIf a step below fails, save the error as briefingErrorTry
numbers'. Save it as written.
Maximum response length: 700written.response_text and save it as briefing.Trim written.response_text and save it as briefing.recipientEmail.Send an email to recipientEmail.
Subject: Weekly briefingbriefing
---
The numbers this was written from:
numbersOn error
recipientEmail.Send an email to recipientEmail.
Subject: Weekly briefing - numbers onlyThe written summary could not be produced this week, so here are the numbers on their own.
numbers