segment_customers_rfm
Score customers 1-5 on recency, frequency, and monetary value; classify them as Champions, At Risk, Lost, or other segments. Use these RFM groups to target retention and growth.
Instructions
RFM (Recency, Frequency, Monetary) customer segmentation. Scores each customer 1-5 on how recently they bought, how often, and how much — then classifies them as Champions, Loyal, At Risk, Cannot Lose Them, New Customers, Potential Loyalists, Needs Attention, or Lost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lookbackDays | No | History window in days (default 365, max 730) |