Add to Claude

Guides · For agents

Find wholesale customers whose orders dropped off

Tools: sift_matchWorks with Claude Code

Join your trade account list to your orders export on the account ID, then count the trade accounts that have ordered before but placed nothing in the last 60 days, and add up what they have spent with you. In the test files, that is 5 accounts that have spent 11,815.75 between them.

Ask your agent

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

Use Sift to match /path/to/wholesale_accounts.csv on account_id to /path/to/wholesale_orders.csv on account_id, as of 2026-11-30. How many accounts with account_type trade have ordered before but have no order_date in the last 60 days, and what is their total_spent? How many trade accounts have never ordered?

What Sift sends back

Accounts with orders on file11 of 12
Trade, ordered before, nothing in 60 days5, total spent 11,815.75
Trade accounts that never ordered1
Orders for an account not on the list1

One of the 5 has a blank total spent. It is counted, left out of the total, and Sift says so. An order exactly 60 days back still counts as recent.

What to do next

Questions

Where does past spend come from?
From a total spent column on the account list, which many shop and wholesale exports include. Sift adds up a column on the side it counts, so an account with many orders is never added twice.
Can it add up the orders file instead?
Not for this question. A total has to come from the file being counted, here the accounts, so add a total spent column to the account list.
Does the agent see my customers?
No. Sift reads both files on your machine and sends back counts and totals, not rows.

For CRM pipelines, the same match counts Active accounts with no recent order and the revenue at stake.

More guides

Guide Find Active accounts that stopped ordering Guide Put a number on revenue at stake from stalled accounts Guide Find donors who gave last year but not this year