detect_customer_churn
Analyze purchase patterns to predict churn risk, flagging overdue customers as medium risk and silent ones as high risk. Target re-engagement campaigns accordingly.
Instructions
Predict customer churn risk. Computes each customer's average order interval and flags those overdue as medium risk, or silent for ≥ churnThreshold days as high risk. Helps target re-engagement campaigns.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "detect_customer_churn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lookbackDays | No | History window for purchase pattern learning (default 365) | |
| churnThreshold | No | Days of silence = high churn risk (default 90) |