get_rfm_analysis
Segment customers into RFM groups using order data. Specify a date range and thresholds for recency, frequency, and monetary value to classify shoppers based on purchasing behavior.
Instructions
根據訂單資料進行 RFM(Recency/Frequency/Monetary)分群分析。注意:僅能分析有下單紀錄的客戶(Customers API 為 403)。
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": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "get_rfm_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | 分析區間結束 YYYY-MM-DD | |
| start_date | Yes | 分析區間起始 YYYY-MM-DD | |
| f_threshold | No | Frequency 門檻(消費 ≥ 此值為高 F) | |
| m_threshold | No | Monetary 門檻金額(累計 ≥ 此值為高 M) | |
| r_days_threshold | No | Recency 門檻天數(最近消費 ≤ 此值為高 R) |