get_rfm_analysis
Segment customers by Recency, Frequency, and Monetary value from order data to identify high-value customer groups.
Instructions
根據訂單資料進行 RFM(Recency/Frequency/Monetary)分群分析。注意:僅能分析有下單紀錄的客戶(Customers API 為 403)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_date | Yes | 分析區間起始 YYYY-MM-DD | |
| end_date | Yes | 分析區間結束 YYYY-MM-DD | |
| r_days_threshold | No | Recency 門檻天數(最近消費 ≤ 此值為高 R) | |
| f_threshold | No | Frequency 門檻(消費 ≥ 此值為高 F) | |
| m_threshold | No | Monetary 門檻金額(累計 ≥ 此值為高 M) |