yax_monitor_churn_risk
Identifies churn risk from usage and payment patterns, drafts re-engagement emails, and provides a prioritized list with churn scores.
Instructions
Flags customers at risk of churning based on usage and payment patterns, and drafts a re-engagement email per account. Returns a prioritized risk list with churn score and outreach copy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_ids | No | Optional list of customer IDs to check. If omitted, scans all active customers. | |
| risk_threshold | No | Risk level to flag: 'high', 'medium', or 'all'. Defaults to 'high'. | |
| draft_emails | No | If true, drafts a re-engagement email per at-risk account. Defaults to true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True if monitor ran. | |
| run_id | No | Run ID for receipt retrieval. | |
| at_risk | No | At-risk customer records with churn score, signals, and drafted email. | |
| total_flagged | No | Total number of customers flagged. |