All Posts
· Laine · 7 min read

Build a Customer Health Score in Salesforce

Build a Salesforce customer health score from signals you already track, scored nightly with a plain-English reason, so churn risk surfaces early.

SalesforceCustomer SuccessChurnAutomationAISentinel Workspace
Build a Customer Health Score in Salesforce, Sentinel Workspace blog cover

A Salesforce customer health score is supposed to tell you which accounts are about to leave. Most of the ones I see do not. They are a single number nobody trusts, set by a formula nobody remembers writing, and the account that churned last quarter was sitting at a comfortable 78 the whole time.

My position: a health score that cannot explain itself to a rep is worse than no score at all. Build it from four or five signals you already have, recalculate it every night, and store the reason next to the number. Below is how that build looks, and how a team without a developer ships it with Sentinel Workspace.

Why most health scores get ignored

The failure is rarely the math. It is that the score shows up as “62” with no context. A rep looks at it, cannot tell what moved it, and goes back to their gut. After a month, nobody opens the field.

Three problems cause this:

  • One opaque number. If usage, support and billing are blended into one figure, a drop could mean anything.
  • Stale inputs. A formula field recalculates when someone views the record, but the inputs it reads (last activity, open cases, renewal date) are often out of date or blank.
  • No owner and no action. A score that changes without telling anyone is a dashboard decoration, not an alert.

Fix those three and the score becomes something reps use when they plan their week.

Pick signals you already have

Do not start by buying a data source. Start with what your org already knows. For most B2B teams, five signals cover the majority of churn risk:

  1. Engagement recency. Days since the last logged call, meeting or email with anyone at the account.
  2. Support pressure. Open cases, cases escalated in the last 30 days, and how many are past their target. If you already run case escalation rules, the escalation flag is ready to use.
  3. Commercial trend. Revenue this period against the same period last year, or seat count against the contract.
  4. Renewal proximity. Days until the renewal date. Risk at 30 days matters more than risk at 300.
  5. Relationship coverage. Whether the account still has an active primary contact and an owner who is a current user.

If your product usage lives in another system, it can be a sixth signal, synced in nightly. That is an integration project in its own right, and the custom Salesforce integration post covers how to scope it. Start without it if you have to. Five honest signals beat ten guesses.

Store each component, not just the total

This is the decision that makes the score explainable. Instead of one number, create a field per component on the Account: Engagement Score, Support Score, Commercial Score, Renewal Score, Coverage Score. Each runs 0 to 20. The overall Health Score is their sum, out of 100.

Then add two more fields:

  • Health Reason, a text field written by the scoring job in plain English: “No logged activity in 47 days. Two escalated cases open.”
  • Health Trend, the change since last week, so a rep can see that an account went from 81 to 64 even if 64 still looks fine.

Now when someone asks “why is this account red,” the answer is on the record. Reps stop arguing with the number and start working the reason.

Score it nightly, not on view

Formula fields are tempting because they need no automation. The trouble is that a health score depends on related records (cases, activities, opportunities), and cross-object counting gets awkward fast. Roll-up summary fields only work on master-detail relationships, which is why roll-ups Salesforce will not give you usually need a different approach.

A scheduled job is cleaner. A schedule-triggered flow runs in the background on a daily or weekly frequency, independent of anyone editing a record. Salesforce notes that a flow can only query up to 50,000 records before hitting the governor limit, so a large account base or heavy activity history is the point where a scheduled Apex batch job is the better tool.

Either way, the job does the same thing each night: count the inputs for each active account, score each component, write the total, the reason and the trend. Treat blank inputs deliberately. An account with no renewal date should score as unknown and appear on a cleanup list, not quietly earn full marks. The SOQL guide to null and blank values explains why those records slip through so often.

Turn score changes into action

A score that moves silently changes nothing. Build the alerts at the same time as the score:

  • Threshold crossing. When an account drops below 50, create a task for the owner with the Health Reason in the subject line.
  • Sharp drops. When the score falls 15 or more points in a week, alert the owner’s manager as well. A fast decline usually means something happened, such as an executive leaving or a bad support week.
  • Renewal collision. When an account under 60 is inside 90 days of renewal, put it on the renewal review list. This is where a health score pairs naturally with renewal alerts.

Route each alert to whoever owns the account today. If ownership changes often, the same lookup logic that powers assigning cases to the account owner keeps the alerts landing on the right person.

Make the weights adjustable without a deploy

Your first weights will be wrong. That is fine, as long as changing them does not need a developer. Keep the thresholds and weights in a custom metadata type or a small settings object: days of silence that count as risky, the number of open cases that counts as pressure, the revenue drop that matters.

Then review once a quarter. Pull the accounts that churned or downgraded and look at what their scores were 60 and 90 days before. If they were green, a weight is wrong. If they were red and nobody acted, the alerts are going to the wrong people. Both are fixable in an afternoon when the logic is configurable.

The reports that make it stick

Three views carry most of the value:

  • At-risk list by owner, sorted by revenue, showing the Health Reason column. This is the rep’s call list.
  • Score distribution over time, using a weekly snapshot of the scores, so leadership sees whether the base is getting healthier.
  • Score versus outcome, comparing scores 90 days before renewal to whether the account renewed. This is how you prove the score works, or find out it does not.

If the trend report needs history that standard reporting will not give you, the post on Salesforce reports you are told you cannot build covers the patterns.

How this gets built without hiring a developer

Nothing here is exotic. It is ten or so fields, a custom metadata type, a scheduled flow or batch class, a few alert flows, tests and three reports. Teams go without it because the developer time is not available, not because it is hard.

Sentinel connects your own AI (Claude, or any assistant that speaks MCP) to your Salesforce org so it can build the scoring job, fields and alerts directly. Changes go to a sandbox first with tests, every change is logged, and a snapshot is taken before each deploy. That does not stop a bad weight from shipping. It makes every change visible and recoverable, which matters when a nightly job writes to every account you have. The Sentinel for Salesforce page covers how that works in an existing org.

The takeaway

A useful Salesforce customer health score is built from signals you already have, stored as components, recalculated nightly, and explained in plain English on the record. Pair it with alerts that reach the account owner and a quarterly check against real churn, and it becomes the first place reps look instead of the field they skip.

If you want to watch your AI build the scoring job and alerts in your own org, Sentinel Workspace is how we would show you. Pricing is flat per Sentinel and is covered on a short demo call.

Book a Demo Call

See Sentinel Workspace build in your own CRM on a short demo call.

Book a Demo Call

New here? What Sentinel Workspace is and how it works