customer churn detection api

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.

Interactive churn intent & save-workflow detector
Input state evaluated

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.

Primary choice confidence
pricing_cost (93%)
Est. model spend / 1k calls
$0.0037 (~197 tok)
AUTO-ESCALATE · pricing_cost + trigger_save_play P(trigger_save_play) = 0.91
churn_driver → pricing_cost 93%
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
Pro API key · $19 / 30 days · no auto-renewal

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 DriverExample Customer SignalRecommended Playbook
pricing_costBudget freeze, CFO cut, competitor quoteAlert CSM with annual discount or usage-tier review
reliability_bugRepeated timeouts, unresolved P1 defectAttach eng owner & send executive status update
missing_featureSSO, region, or integration blockerLog roadmap vote & offer documented workaround
healthy_expansionAdding keys, seats, or higher quotaRoute 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

Model notes

One short email when a new decision model lands or a benchmark changes. No spam, unsubscribe in one click.