Customer churn and cancellation intent detection API
Catch competitor quotes, budget-cut warnings, and repeated reliability frustration across support tickets and emails—returning calibrated churn-driver probabilities and a save-play gate in one fast pass.
Our CFO asked us to cut inference spend 40% before Friday renewal. We are testing two self-hosted models unless we can lock annual volume pricing.
curl --fail-with-body https://clef-flash.com/api/v1/decisions \
-H "authorization: Bearer $CLEF_API_KEY" \
-H "content-type: application/json" \
--data-binary @- <<'CLEF_DECISION'
{
"model": "cloudflare/clef-flash",
"threshold": 0.8,
"state": "Our CFO asked us to cut inference spend 40% before Friday renewal. We are testing two self-hosted models unless we can lock annual volume pricing.",
"questions": {
"churn_driver": {
"type": "choice",
"instructions": "What is the primary retention signal in this customer message?",
"criteria": {
"pricing_cost": "budget cuts, competitor price comparison or ROI concern",
"reliability_bug": "repeated outages, latency spikes or unresolved defects",
"missing_feature": "integration gap, missing region or unsupported format",
"healthy_expansion": "positive feedback, renewal confirmation or seat addition"
}
},
"trigger_save_play": {
"type": "noul",
"instructions": "Is this account at immediate risk of cancelling within 14 days?",
"criteria": {
"true": "explicit cancel request, evaluating competitor or threatening non-renewal",
"false": "routine support question or expansion request"
}
}
}
}
CLEF_DECISION
Ship this in production with a $19 Pro key
2,000 decisions/day, 8 concurrent requests in flight, text + JSON + image states, and an API key emailed in about a minute.
Spot churn signals weeks before the cancel button is clicked
Most SaaS accounts announce churn long before opening the billing portal: they mention a CFO budget review in a ticket, ask how to export historical logs, or complain for the third time about latency during peak hours. Keyword alerts for the word "cancel" miss all of them.
Clef-Flash classifies every customer touchpoint into actionable retention drivers—pricing_cost, reliability_bug, missing_feature, or healthy_expansion—while returning a calibrated trigger_save_play probability so Customer Success acts only on real risk.
- Distinguishes urgent competitor evaluations from routine technical troubleshooting.
- Surfaces healthy expansion requests (extra seats, EU keys) for instant upsell follow-up.
- Calibrated probabilities prevent alert fatigue in your #customer-success Slack channel.
Retention classification and escalation matrix
Map each predicted churn driver directly to an automated CRM playbook with explicit confidence gating.
| Churn Driver | Example Customer Signal | Recommended Playbook |
|---|---|---|
| pricing_cost | Budget freeze, CFO cut, competitor quote | Alert CSM with annual discount or usage-tier review |
| reliability_bug | Repeated timeouts, unresolved P1 defect | Attach eng owner & send executive status update |
| missing_feature | SSO, region, or integration blocker | Log roadmap vote & offer documented workaround |
| healthy_expansion | Adding keys, seats, or higher quota | Route straight to expansion / annual upgrade flow |
Combining ticket threads with subscription ARR context
Pass the recent message alongside account ARR, renewal date, and ticket count in a structured JSON state. Clef-Flash evaluates both prose tone and account context together in one pass, reading up to 24,576 tokens (100,000 characters) on /api/v1/decisions without silently truncating the tail of long threads.
Run continuous monitoring across every daily support reply with a $19 Pro key (2,000 decisions/day) or $79 Scale key (20,000 decisions/day).
Auditable probabilities for RevOps and CS leadership
Because Clef-Flash returns exact probabilities for every driver rather than an opaque label, Customer Success teams can plot churn-risk trends per cohort, set higher thresholds for SMB vs Enterprise accounts, and review every low-confidence flag cleanly.
Frequently asked questions
Can Clef-Flash process multi-message support threads without losing the latest reply?
Yes. /api/v1/decisions reads up to 24,576 tokens (100,000 characters) on Clef-Flash and refuses oversized states with 413 instead of silently dropping the most recent customer reply.
How do I avoid spamming Customer Success with false churn alerts?
Set threshold to 0.80–0.88 and alert Slack only when answers.trigger_save_play.noul exceeds your threshold. Borderline cases stay in a weekly digest.
Can the same call detect expansion intent as well as churn risk?
Yes. Including healthy_expansion in your choice criteria lets one 39 ms call separate retention saves from expansion opportunities.
Is customer conversation data stored or used to train models here?
No—decisions are stateless request/response calls without cross-request memory. See our privacy page for exact operational logging boundaries.
Keep reading
- Sentiment & SLA urgency API
- Support ticket triage API
- Lead qualification scoring API
- Email routing classification API
- Pricing & API keys
Model notes
One short email when a new decision model lands or a benchmark changes. No spam, unsubscribe in one click.