Add to Claude

Guides · For agents

Monthly business health from an orders export

Tools: sift_measuresWorks with Claude Code

Give Sift an accounts export, an orders export and a small definitions file, and it works out every complete month's new customers, active share, revenue, activation, repeat rate and win-back rate. In the test files, September 2026 had 374 active customers, a 44.4% repeat rate and an 8.4% win-back rate.

The definitions file

One small JSON file says where the exports are, which columns hold what, and the date that counts as today. This is the sample from the test files. File paths in it are read from the file's own folder.

{
  "as_of": "2026-11-01",
  "accounts": {
    "file": "test-data/product_accounts.csv",
    "id": "account_id",
    "signup_date": "signup_date"
  },
  "orders": {
    "file": "test-data/orders.csv",
    "account_id": "account_id",
    "date": "order_date",
    "value": "value"
  },
  "activation_window_days": 30,
  "dormant_after_days": 60
}

Ask your agent

With Sift connected (setup takes three steps), paste this and swap in your own paths.

Use Sift to work out monthly health measures with the definitions in /path/to/measures.json. Show me the last two complete months.

What Sift sends back

September 2026

New customers27
Active374 of 1,133 signed up, 33.0%
Revenue594,996.52 from 2,775 orders, 7.42 per active customer
Activation74.1%: 20 of the 27 ordered within 30 days, after 4.0 days (median)
Repeat rate44.4%: 166 ordered again in October
Win-back rate8.4%: 21 of 251 dormant customers ordered

October 2026

New customers17
Active222 of 1,150 signed up, 19.3%
Revenue410,236.40 from 1,815 orders, 8.18 per active customer
Activation and repeatnot yet: their windows haven't closed
Win-back rate6.5%: 17 of 263

Sift found 34 complete months, January 2024 to October 2026, and hands back the latest you ask for.

What to do next

Questions

Why are October's activation and repeat rates missing?
Activation needs 30 days after the month's last sign-up, and repeat needs the next month to be complete. As of 2026-11-01 neither has happened yet, so Sift says not yet rather than give a number that will change.
What counts as dormant?
A customer who ordered before the month but not in the 60 days before it. The 60 comes from dormant_after_days in the definitions file.
Does Sift use today's date?
No. Today is the as_of date in the definitions file, so the same exports always give the same numbers.

More guides

Guide Did my email campaign actually work? Measure it with a hold-out group Guide Put a number on revenue at stake from stalled accounts Guide Find Active accounts that stopped ordering