Weekday morning business metrics anomaly digest in Slack
Every weekday at 8am, get a plain-English Slack digest of your key business metrics with the biggest anomalies called out first.
Every weekday at 8am, run a BigQuery SQL query against our warehouse that returns two things for each of my key business metrics: the last seven days of daily values and a trailing 28-day baseline. Use one CTE per metric so the query stays readable. The four metrics are daily revenue, new signups, daily active users, and conversion rate. Use the Run Query (Synchronous) BigQuery operation and return the combined result set so the whole thing comes back in one call.
Once the rows are back, for each metric compute the mean and standard deviation of the 28-day baseline window, then compare the most recent day (or the seven-day trailing average, whichever is more meaningful for that metric) against that baseline. Flag any metric where the current value is more than two standard deviations away from the baseline mean.
Write a short narrative digest for the flagged metrics only. Lead with the biggest mover in absolute terms, then work down the list. Use plain language and always include the actual numbers, for example: "Signups fell to 150, well below the expected 400 to 500 range." Skip any metric whose delta is within the normal range so the digest stays scannable. If nothing is anomalous today, post a single line saying all metrics are within their expected range.
Post the digest to the #metrics channel in Slack using the Send a Message Slack operation. Format it as Slack mrkdwn: a bold header line with today's date, then one short paragraph per flagged metric. Keep the whole message under about ten lines so it's readable in a glance from the channel sidebar.
Additional information
What does this prompt do?
- Every weekday at 8am, pulls the last seven days of revenue, signups, active users, and conversion rate from your data warehouse
- Compares each metric against a trailing four-week baseline and flags anything unusually high or low
- Writes a short narrative that leads with the biggest movers and calls out anomalies in plain language
- Posts the digest to a Slack channel so the whole team sees the same numbers first thing
What do I need to use this?
- A Google BigQuery warehouse with tables covering your daily revenue, signups, active users, and conversions
- A Slack workspace and permission to post in the channel you want to update
- The names of the tables or views that hold each metric
How can I customize it?
- Change the schedule or the Slack channel the digest posts to
- Swap in different metrics (retention, refunds, MRR growth) or a different lookback window
- Tune the sensitivity so only bigger movements show up in the message
Frequently asked questions
Does this replace our BI dashboard?
What happens on quiet days when nothing moved much?
Can I use a different data warehouse?
Do I need SQL skills to set this up?
Can it post to more than one channel?
Related templates
Stop wondering if last night's numbers looked right.
Get an anomaly-aware summary of your key business metrics in Slack every weekday morning.