---
name: "icp-scoring-model"
description: "Build an ICP scoring model: turn the ideal customer description into measurable firmographic and technographic rules with points, score every account, backtest the score against closed-won and closed-lost deals (win rate by tier and lift per rule, always with deal counts), adjust weights from evidence, and write score and version to the CRM. Use when the ICP is opinion, when teams disagree on fit, or before building a TAM or routing leads by fit."
---

# ICP scoring model

## Goal
Replace "good fit" with a number the team can read, test and improve. Every rule should earn its points in the backtest. Part of GTM engineering. Feeds: tam-builder, inbound-lead-router, signal-detection-engine, multi-channel-orchestrator. Fed by: waterfall-enrichment-router, crm-hygiene-pipeline.

## When to use
- The ICP is a paragraph, and lists are built on gut feel.
- Reps skip leads marketing thinks are great.
- You have won and lost deals and never checked which traits predicted them.

## Inputs
- An account export with the traits you can measure: industry, employee count, region, revenue band, business model, tools in use.
- Outcome history: `won` (1 or 0) and close date. Include lost and no-decision deals.
- The current ICP description.
- Technology data from an enrichment source or from your own discovery notes.

## Data model
`accounts`: `account_id, domain, industry, employees, country, revenue_band, tools, signal, won (1/0 or blank), close_date`
`icp.json`: `version, rules[name, column, op, value, points], tiers`
`scored`: accounts plus `icp_score, icp_tier, icp_matched, model_version`
Keep every model version so past scores can be explained.

## Step 1. Turn the ICP into hypotheses
Write each trait you believe matters as a testable statement: "Companies with 20 to 500 staff convert better." Mark which statements you can measure today. Drop the rest, or collect the data first.

## Step 2. Group the features
- Firmographic fit: industry, size, region, business model, growth stage.
- Technographic fit: tools that make your product work better, or tools you replace or integrate with.
- Behavioural or timing signals belong in signal-detection-engine, not here. Keep fit and timing as separate scores so you can combine them in routing.

## Step 3. Set starting weights
Give each rule points. Make the total 100. Put the most points on the traits you are most sure of and that you can measure cleanly. Set tier lines (for example A at 70, B at 40). These are guesses until Step 4.

## Step 4. Backtest
Run `scripts/icp_backtest.py backtest accounts.csv icp.json`. It scores each account blind to the outcome, then reports:
- Per tier: accounts, wins, win rate.
- Per rule: win rate when the rule matches, win rate when it does not, and lift (the first divided by the second), with counts.
Read it with these cautions: small counts move a lot, and a rule that matches nearly everyone cannot show lift. Hold out the latest quarter of deals and test the final weights on it.

## Step 5. Adjust
- Increase points on rules with clear lift and enough deals behind them.
- Reduce or remove rules with no lift.
- Add a rule only with a reason you could explain to a customer, then test it.
- Re-run the backtest and compare tier win rates before and after.
- Never change weights to rescue one big deal.

## Step 6. Ship
Write `icp_score`, `icp_tier` and `model_version` to the CRM. Tell sales what tier A means and what it does not. Use the score in tam-builder, inbound-lead-router and multi-channel-orchestrator. Record the date.

## Step 7. Recheck
Each quarter, rerun the backtest with new deals. Compare tier win rates. Write one paragraph on what changed in the market and in the data.

## Tool options
A CRM export or warehouse table for the data. A spreadsheet or a short Python script for scoring. A BI tool for the backtest chart. A logistic regression is a reasonable next step when you have hundreds of deals, but readable points should stay the default so the team trusts the score.

## Output
`accounts_scored.csv` and `backtest.csv`, plus a one-page note: what changed, what to keep, what to drop.

## Success metrics
- Win rate by tier is ordered A above B above C, with counts shown.
- Share of pipeline coming from tier A and B accounts over time.
- Share of reps who agree with the tiers in a monthly spot check.
- Time from new account to score.

## Guardrails
- Show the deal count next to every win rate. Do not present small samples as findings.
- Do not use protected traits or proxies for them. Score companies, not individuals' personal attributes.
- Keep the model readable. A rep must be able to say why an account is tier A.
- Version every change. Do not rewrite history scores.
