Score Churn Risk from Support Tickets with an LLM
The problem
CS and RevOps find churn late because ticket themes stay buried in Zendesk/Intercom while CRM health scores ignore qualitative signal.
Implementation steps
- 1
Create a Zendesk trigger with a webhook action (or an Intercom webhook on conversation events) that sends new and updated tickets to an n8n or Make webhook
- 2
Fetch the ticket subject, description, latest comments, and requester organization, then match the organization to a CRM company by email domain
- 3
Send the ticket text to the Claude or OpenAI API with a structured JSON prompt that returns theme, severity (1 to 3), churn risk (0 to 100), and a one-sentence reason
- 4
Store each classification with the ticket ID and company in a Google Sheet or an n8n data table so results can be audited
- 5
Roll up by account (highest risk and count of severity 3 tickets in the last 30 days) and write the results to custom company properties in HubSpot or Salesforce
- 6
When an account crosses the risk threshold or a ticket mentions cancelling, post a Slack alert to the CS owner with the ticket links and the model reason
- 7
Run a weekly scheduled workflow that groups tickets by theme and posts the top themes to the #product channel
- 8
Each month, compare 20 model classifications against a human review and adjust the prompt or threshold
Template outline
The structure to recreate in your own workspace. Field names and thresholds are starting points.
n8n or Make Workflow:
1. Trigger: Webhook from Zendesk trigger or Intercom conversation event
2. HTTP: Get ticket details and last 5 comments
3. Lookup: CRM company by requester email domain
4. LLM (Claude or OpenAI), JSON output:
- Prompt: "Classify this support ticket. Return JSON with theme (billing, bug, performance, onboarding, feature_gap, cancellation, other), severity (1-3), churn_risk (0-100), and reason (one sentence). Ticket: {{ticket_text}}"
5. Store: ticket_id, company_id, theme, severity, churn_risk, reason, created_at
6. Aggregate per company (last 30 days): max churn_risk, count of severity 3
7. CRM update: "Support churn risk", "Top ticket theme", "Last risk update"
8. IF churn_risk >= 70 OR theme = cancellation: Slack message to CS owner
- "{{company}} support risk {{churn_risk}}: {{reason}} {{ticket_url}}"
9. Weekly schedule: group by theme, post top 5 themes to #product
Output: an account-level risk field in the CRM that reflects ticket content, plus same-day alerts for high-risk accountsCommon questions
- What does the LLM return for each ticket?
- JSON with a theme (billing, bug, performance, onboarding, feature_gap, cancellation, or other), a severity from 1 to 3, a churn risk from 0 to 100, and a one-sentence reason. Each result is stored with the ticket ID and company so it can be audited.
- When does CS get alerted?
- When an account's churn risk reaches 70 or a ticket is classified as cancellation, the CS owner gets a Slack message with the score, the model's reason, and the ticket link. The CRM also gets the account's highest risk and its count of severity 3 tickets from the last 30 days.
- How are tickets matched to CRM accounts?
- By the requester's email domain, looked up against CRM companies. Tickets sent from personal email addresses will not match a company, so review unmatched tickets instead of dropping them.
- How do I know the scores are any good?
- Each month, 20 model classifications are compared with a human review, and the prompt or threshold is adjusted where they disagree. The score is a model reading of ticket text, not a measured probability of churn.
Keep going
Related playbooks
- Finance/FP&AIntermediate
Measure How Much ARR Sits in the Top Logos, and the Bookings Hit If They Churn
Board and finance ask how much ARR sits in the top accounts, but the answer is a one-off spreadsheet, so nobody sees concentration drift or the bookings hit if the top 1, 3, or 10 churn.
StripeHubSpot or SalesforceGoogle Sheets+2Estimate: 0.3 hrs/week - RevOpsIntermediate
Alert AMs Before Renewal When Product Usage Drops
Account managers learn about churn risk at renewal time because usage and support signals are never joined to contract end dates.
Stripe or billing systemAmplitude, Mixpanel, or SegmentHubSpot or Salesforce+2Estimate: 4 hrs/week - Finance/FP&AIntermediate
Build a Net and Gross Revenue Retention Bridge from Billing Data
Net revenue retention is often one number pulled from a dashboard with no bridge behind it, so nobody can say how much came from expansion, how much leaked to seat drops and downgrades, and how much was lost to churn, and a customer that moved to a new billing account shows up as churn plus a new logo.
StripeHubSpot or SalesforceGoogle Sheets+2Estimate: 1 hrs/week
Need help implementing a playbook?
Our team builds custom Clay workflows and AI automations for revenue teams.
Get it built for you