Templates

Daily sales digest

Automation template · Reporting ·View source

Sign in to use

Posts yesterday's revenue, orders, average order value and top products to Slack every morning, and calls out anything unusual against the 7-day average.

How it works

Trigger
Every morning at 8:00 in your time zone
Does
Totals yesterday's revenue, orders, AOV and top products
Compares
Each number with the previous 7-day average and explains big swings
Posts
A short digest to your Slack channel

What it needs

From your data. The agent finds the matching fields in your schema and confirms them with you.

  • The order's total paid amount
  • When the order was placed
  • The order's status, to leave out cancelled, test and fully refunded orders (optional)
  • Amount refunded on the order (optional)
  • Order line items with product and quantity, for top products (optional)
  • The order's currency, when the store sells in more than one (optional)

You'll choose

  • When to post · default 0 8 * * *Every day at 8:00 by default
  • Time zone · default Europe/LondonUsed for the schedule and for what counts as "yesterday"
  • Slack channelWhere the digest is posted
  • Top products to list · default 5
  • Call out changes above (%) · default 25A metric that differs from its 7-day average by more than this is called out

Works best with

The agent offers to set these skills up too, or to use ones you already have.

Example output

Slack, #sales

Sales for Tuesday, 24 November Revenue £4,690 (+31% vs 7-day avg £3,570) Orders 61 (+5% vs 58) AOV £76.89 (+25% vs £61.55)

Top products

  1. Harbour Waxed Canvas Tote, Olive: £1,140 (12 units)
  2. Linen Shirt, Sand: £636 (12 units)
  3. Ceramic Pour-Over Set: £468 (9 units)
  4. Beeswax Candle, Large: £312 (13 units)
  5. Merino Beanie, Charcoal: £280 (10 units)

Callouts Revenue up 31% is mostly one wholesale-sized order (#10482, £640, 8 totes). Without it, revenue was £4,050 (+13%).

Show the instructions

Daily sales digest

Post a short summary of yesterday’s sales to {{channel}}. “Yesterday” is the previous calendar day in {{timezone}}, from 00:00 to 23:59:59. This automation only reads data; it never changes a record.

If a reporting-definitions skill is loaded, its definitions of revenue, orders and exclusions win over the defaults below.

1. Collect the numbers

For yesterday and for each of the 7 days before it:

  • Orders: placed orders, excluding cancelled, test and fully refunded orders.
  • Revenue: the sum of those orders’ totals minus partial refunds. State whether it includes tax and shipping (default: it is the order total as stored).
  • AOV (average order value): revenue ÷ orders. Leave it out on a day with no orders.

Then:

  • 7-day average for each metric: the mean over the 7 days before yesterday (not including yesterday).
  • Top {{topProductCount}} products yesterday by revenue, with units sold.

If the store sells in more than one currency, report each currency separately; never add amounts in different currencies together.

2. Look for anomalies

  • Call out any metric that differs from its 7-day average by more than {{anomalyPercent}}%.
  • For each callout, look for a likely reason in the data and say it plainly: one unusually large order, a product that sold far more than usual, a day with zero orders after a period of steady sales (possible checkout or tracking problem), many refunds. If you cannot find a reason, say “no clear cause in the order data”. Do not guess about marketing campaigns or the weather.
  • Zero orders on a day that normally has orders is always a callout, whatever the threshold.

Flag the run if there was a callout.

3. Post the digest

Stage one message for {{channel}}, in this order, and keep it under 12 lines:

  1. Title line: “Sales for <weekday, date>”.
  2. Revenue, orders and AOV, each with the change against the 7-day average as a signed percentage, e.g. “Revenue £4,690 (+31% vs 7-day avg)”.
  3. Top products: name, revenue, units.
  4. Callouts, one line each, or “Nothing unusual.” when there are none.

Format money with the currency symbol and thousands separators, round percentages to whole numbers, and write numbers, not adjectives (“down 31%”, not “a terrible day”).