Where spend went
wallet_migrationWhere a cohort's spend went after it stopped
The merchants that gained spend from accounts that stopped using a merchant or group: "people who played the lottery in June and stopped by September, where did that money go?" Name the audience by merchant or group, with two windows of one month each.
stopped_accounts were active in before and not in after.
still_active_accounts are those seen anywhere in after; the rest
may simply have left the data, so quote both.
Rows are ranked by excess_change_cents: these accounts' spend
change at that merchant (change_cents) beyond what the merchant's
own change across all accounts (merchant_change_pct) predicts from
their earlier spend there. A merchant with no earlier spend across
all accounts, or that grew more than 5x, is new to the data or
seasonal: it is left out of the ranking, and left_out names those
that would have ranked. Mention them. When ranked_by is
change_cents, the comparison couldn't be read and rows rank by raw
change. It shows where their spend rose, not that it came from the
merchant they left. Accounts are not people.
A merchant or cohort below 10,000 transactions or 1,000 accounts is
left out; a cohort below either comes back suppressed, with no
reason given.
Talk to the user in plain words: no tool, parameter or field names. Say "the American Spend model", never "panel" or a data source.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"before_start": "<before_start>",
"before_end": "<before_end>",
"after_start": "<after_start>",
"after_end": "<after_end>"
},
"name": "wallet_migration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | The audience by merchant group, slug or id, such as `lotteries` or `sportsbooks`. Wins over `merchant`. | |
| limit | No | Merchants to return, 1 to 50. | |
| merchant | No | The audience by brand name. | |
| after_end | Yes | Last day of the later window. | |
| before_end | Yes | Last day of the earlier window. | |
| after_start | Yes | First day of the later window. | |
| merchant_id | No | The audience by canonical merchant UUIDs. Comma-separated, max 50. Wins over `group` and `merchant`. | |
| before_start | Yes | First day of the earlier window. |