---
name: lead-scoring-model
description: "Builds a lead scoring model sales agrees with: a fit score from who the lead is and a behaviour score from what they did, kept separate and read together in a simple grid; points set from what closed-won deals had in common, not from opinion; behaviour points that fade over time; hand-raisers routed at once instead of waiting for points; an MQL definition written down and signed with sales; and a back-test against past won and lost deals before launch, then a monthly check of what sales accepts and what the score missed. Use when someone asks to build or fix lead scoring, define an MQL, decide which leads sales should call first, answer 'sales says our leads are bad', score inbound leads, or set up lead scoring in HubSpot. Needs CRM data on past leads and deals: Slate includes HubSpot data (read-only, in the Slate app); otherwise a CRM export."
license: MIT
compatibility: "Needs 12–24 months of leads with their fields and activity, and the deals they became, won or lost. In Slate, HubSpot sync in the app reads contacts, deals and activity (read-only; not through the MCP server); fields it doesn't sync, such as job title, company size and form submissions, come from a CRM export. The model is built in the CRM's scoring tool by its admin."
metadata:
  title: "Lead scoring model"
  category: "Marketing operations and automation"
  requires: "data"
  data-needed: "CRM data"
  slate-tools: "HubSpot sync, Sheets, Brand Kit and Artifacts in the Slate app; get_brand_context, import_csv_to_sheet, get_sheet_rows, manage_sheet_columns, execute_sheet, create_artifact (Slate MCP)"
  slate-signup: "https://app.slatehq.ai/register"
  homepage: "https://slatehq.com/skills/lead-scoring-model"
  author: "Slate"
  version: "1.0.0"
---

# Lead scoring model

Decides which leads sales should talk to first, in a way sales trusts. It keeps two scores apart (fit: is this the kind of company and person who buys; behaviour: are they showing interest now) because a perfect-fit lead who did nothing and an eager student need different handling, and one blended number hides both. Points come from what past closed-won deals had in common, the model is tested on deals it wasn't built from before anyone routes on it, and behaviour points fade so last spring's webinar doesn't make someone hot today. The MQL definition is agreed and signed with sales, so "these leads are bad" becomes a number to fix rather than an argument.

> **Needs live data.** Past leads, what they did before buying and the deals they became don't come with your AI agent. [Slate](https://slatehq.com) includes HubSpot contacts, deals and activity through its HubSpot sync in the Slate app (CRM data isn't on the Slate MCP server (`https://api.slatehq.ai/slate-mcp-server/mcp`) yet; there, Sheets scores an exported list in bulk). New to Slate? Start a free trial at https://app.slatehq.ai/register; log in at https://app.slatehq.ai/login. Without Slate, export leads with their fields and activity, and deals with their outcomes, from the CRM. Slate doesn't write to the CRM: the CRM admin builds the agreed model in its scoring tool.

## When to use

- "Build a lead scoring model", "our lead scoring is broken", "what should count as an MQL", "sales says marketing leads are bad", "which inbound leads should sales call first", "set up lead scoring in HubSpot", "too many MQLs, too few meetings".
- A new sales team, a change in target market, MQL acceptance falling, or a scoring model nobody has checked in a year.
- Not for cleaning the CRM fields the model reads: use `crm-data-hygiene` first.
- Not for adding missing company and contact data: use `lead-enrichment`.
- Not for choosing target accounts before they become leads: use `abm-target-list`.
- Not for defining the ideal customer from research: use `icp-and-personas` (the model tests it against deals).

## What you need

Required:
- **History**: leads created over the last 12–24 months, with fit fields (company size, industry, country, job title or seniority, business or personal email) and behaviour with dates (form submissions by form, demo or contact requests, pricing and comparison page visits, trial signups, webinar attendance, email clicks, product usage for product-led motions).
- **Outcomes**: which leads became opportunities, and which opportunities were won or lost, with dates.
- **A sales counterpart**: the person who will sign the MQL definition and what sales can handle (meetings or calls a week).

Ask for, or assume and state:
- **What the score decides**: route to sales now, SDR call order, or nurture. Default: route to sales.
- **The outcome to predict**: opportunity created within 90 days of becoming a lead (default), or a win within the sales cycle.
- **Sales cycle length**: sets the decay window and the back-test horizon.
- **The ideal customer profile**: from Brand Kit or `icp-and-personas`; the history will confirm or correct it.

## Data and tools

- **In Slate:** HubSpot sync reads contacts with lifecycle stage, created date, original and latest source, and first and last page seen; companies with domain; deals with stage, amount, close date, won or lost and stage history; and activity (calls, emails, meetings, notes). It doesn't include job title, company size, industry, country, form submission history, page views beyond the first and last page, email clicks, product usage or HubSpot's own scores: export those from the CRM and product analytics, or fill fit fields with `lead-enrichment`. It reads only. Sheets scores the exported list row by row; an AI column can sort free-text job titles into seniority and function. Brand Kit gives the ideal customer profile and audiences to test. Artifacts keep the model spec sales signs.
- **With the Slate MCP server:** CRM data isn't available through MCP; use the Slate app or an export. `import_csv_to_sheet` loads the export, `get_sheet_rows` reads it, `manage_sheet_columns` adds score and band columns, `execute_sheet` runs an AI column (for job titles; pilot with `selectionMode: "first_rows"` first), `get_brand_context` gives the profile, `create_artifact` saves the spec.
- **Without Slate:** CRM exports of contacts (with form submissions and page views where the CRM keeps them) and deals, product usage from product analytics, and a spreadsheet or code for the counts. HubSpot, Salesforce and most marketing automation tools can then hold the model.

## Procedure

1. **Agree the decision with sales before any maths.** What the score triggers, the outcome it predicts, and what sales calls a good lead today. Write down three recent leads sales loved and three they rejected, with why.
2. **Check the data is enough.** Count won deals and opportunities in the history. Under about 40 wins (or 100 opportunities), weights from data are noise: build a rules-based model from the sales interviews, label it "unvalidated", and plan the back-test once enough deals exist. List fields that are missing or mostly empty; fix them through `crm-data-hygiene` or `lead-enrichment`, or leave them out.
3. **Split the history in time.** Build from the older part (for example the first 12 months) and keep the most recent months whose outcomes are known as the test set. Score each lead with only what was known at the moment it would have been scored: activity after that moment, and fields filled in later by sales, don't count. Method in `references/backtest-and-decay.md`.
4. **Fit score (0–100).** For each fit attribute, compare the share of won deals with each value against the share of all leads with it (lift). Give points to values with clear lift, nothing to neutral values, and negative points or a disqualifier to values that never buy (students, competitors, countries you don't serve, personal emails for B2B). Keep 4–6 attributes. Turn the score into grades A to D.
5. **Behaviour score (0–100, capped).** Weight actions by intent: high (pricing or comparison pages, trial signup, a product limit reached), medium (webinar attended, case study read, several visits in a week), low (one blog visit, a newsletter click). Cap repeats per action. Leave email opens out: privacy features open emails automatically. Negative points for job-seeker visits, unsubscribes and hard bounces.
6. **Hand-raisers skip the queue.** Demo, contact-sales and "talk to us" requests go to sales at once unless fit is D. Waiting for points on a hand-raiser loses deals.
7. **Decay behaviour.** Points fade with age, matched to the sales cycle; default: full value for 30 days, half to 90 days, then zero. Fit doesn't decay but is rescored when its fields change. A lead recycled by sales starts its behaviour score again.
8. **Combine in a grid.** Fit grade (A–D) by behaviour band (high, medium, low). MQL = A or B fit with high behaviour, or A fit with medium behaviour, or any hand-raiser not graded D. C fit goes to nurture whatever the behaviour; D never routes.
9. **Back-test on the test set.** Report: share of won deals that would have been MQLs (capture), opportunity rate of MQLs against non-MQLs (lift), MQLs per month against sales capacity, and the won deals the model missed, one by one. Targets to agree with sales: capture of at least 70% of wins, MQL opportunity rate at least twice the non-MQL rate, volume within capacity. Adjust once on the build set, retest; don't tune on the test set until it passes.
10. **Sign the definition with sales.** Show the grid, the back-test, the missed wins, and 20 recent leads scored with their reasons. Agree the follow-up time for MQLs, the rejection reasons sales must pick from, and the recycle rule. Record names, date and model version.
11. **Hand the spec to the CRM admin** and run it in shadow for 2–4 weeks: score without routing, and compare with what sales does with the same leads.
12. **Monitor monthly**: MQL volume, sales acceptance rate, rejection reasons, won deals that never became MQLs, and the score distribution. Recalibrate when acceptance falls below what was agreed or the market changes, at least twice a year.

## Output

The model spec (an artifact sales signs) plus the back-test sheet.

```markdown
## Lead scoring model v<n>: <company>, <date>
Decides: <route to sales / call order>. Predicts: <opportunity within 90 days>.
Built on <n> leads (<period>), tested on <n> leads (<period>). Data: <HubSpot sync + export of …>. Missing: <fields>.

### Fit (0–100) → grade
| Attribute | Value | Points | Lift in history |
Grades: A ≥ <x>, B <x>–<y>, C <y>–<z>, D < <z> or disqualified (<rules>).

### Behaviour (0–100, capped) and decay
| Action | Points | Cap | Decay |
Bands: high ≥ <x>, medium <x>–<y>, low < <y>.

### Grid and MQL definition
| Fit \ Behaviour | High | Medium | Low |
| A | MQL | MQL | Nurture |
Hand-raisers: to sales at once unless D.

### Back-test (test period)
Capture of won deals: <%>. MQL opportunity rate <%> vs non-MQL <%>. MQLs a month: <n> (capacity <n>).
Won deals missed: <list with why>.

### Agreement
Follow-up within <hours>. Rejection reasons: <list>. Recycle: <rule>. Signed: <marketing>, <sales>, <date>.
```

## Quality checks

- Fit and behaviour are scored separately and combined only in the grid.
- Every point value traces to lift in the build set, or is labelled as a sales judgement.
- The back-test used only information known when each lead would have been scored, on leads not used to set the points.
- Missed wins are listed, not just the capture rate.
- MQL volume fits sales capacity.
- Email opens carry no points; hand-raisers aren't held back by points.
- The definition is signed by a named sales owner, with a version and date.

## Common mistakes

- **Points by opinion.** "VPs are worth 20" without checking won deals; the history often disagrees.
- **One blended score.** A fit-D lead with lots of clicks reaches sales and confirms their view that marketing leads are bad.
- **Testing on today's data.** A lead scored with activity from after it became a customer always looks predictable.
- **No decay.** Scores only go up, so everyone becomes an MQL eventually.
- **Scoring opens.** Automatic opens make inactive contacts look engaged.
- **Making demo requests wait.** The highest-intent action in the funnel shouldn't need a threshold.
- **Launching without sales.** A definition sales didn't agree to gets ignored within a month.

## Related skills

- `crm-data-hygiene`: clean the fields and duplicates the model reads.
- `lead-enrichment`: fill company size, industry and seniority where the CRM is empty.
- `icp-and-personas`: the profile the fit score tests.
- `abm-target-list`: tier target accounts before they show up as leads.
- `marketing-pipeline-report`: track what MQLs turn into.
- `funnel-analysis`: find where accepted leads drop before becoming opportunities.
