---
name: "tam-builder"
description: "Build a total addressable market list from real companies: choose seed customers, pick features, score a company universe by similarity to the seeds, remove customers, competitors, partners and do-not-contact accounts, then compute TAM, addressable, in-fit and covered counts by segment and build contacts for the best uncovered accounts first. Use when market size is a slide number, when prospecting is list-by-list, or when contact coverage is unknown."
---

# TAM builder

## Goal
A list of real companies behind every market-size number, ranked by how much they look like your best customers, with clear counts of how many you can reach today. Part of GTM engineering. Fed by: icp-scoring-model. Feeds: waterfall-enrichment-router, signal-detection-engine, multi-channel-orchestrator, crm-hygiene-pipeline.

## When to use
- TAM comes from an analyst report and nothing on the ground backs it up.
- Several teams prospect from different lists with no shared view.
- You want to know where coverage gaps are before you buy data or hire.

## Inputs
- Seed customers (your best, not all) with the reasons they are best.
- A company universe: industry, size, region, domain, and any other columns you have. Use a licensed provider or public registries.
- Exclusion lists: customers, competitors, partners, do-not-contact, opt-outs.
- A list of accounts with at least one verified contact.

## Data model
`seeds`: `domain, industry, country, employees, reason_best`
`universe`: `domain, name, industry, country, employees, source, source_date`
`exclusions`: `domain, reason`
`contacts`: `domain` (one row per account that has a verified contact)
`universe_scored`: universe plus `lookalike_score`

## Step 1. Choose seeds
Pick 10 to 50 customers that renewed, expanded or advocated, not just those that signed. Write why each is a good customer. If your seeds are mixed, split them into groups and score each group on its own.

## Step 2. Choose features
Start with industry, size, region and business model. Add one or two features that explain why seeds are good: a tool they use, a team structure, a growth stage. Features must exist in both the seed and universe files. Fewer features that matter beat many that do not.

## Step 3. Score lookalikes
Run `scripts/tam_math.py lookalike seeds.csv universe.csv --features industry,country,employees`. For text features the score is the share of seeds sharing the value. For a numeric feature it is closeness to the seed median on a log scale. The final score is the average, from 0 to 1. Seeds themselves are marked and kept out of the build list.
Read the top 30 and the bottom 30 by hand. If the order looks wrong, change features, not rows.

## Step 4. Apply exclusions
Match by domain. Remove customers, competitors, partners and do-not-contact accounts from the addressable set, and keep them in the file with a reason code so the count reconciles. Opt-outs and legal suppressions are permanent.

## Step 5. Do the coverage math
Run `scripts/tam_math.py coverage universe_scored.csv exclusions.csv contacts.csv --min-score 0.6 --segment country`. For each segment you get:
- Universe (TAM): all companies in the file.
- Excluded: companies removed by exclusions.
- Addressable: universe minus excluded.
- In fit: addressable with a lookalike score at or above your line.
- Covered: in-fit accounts that have a verified contact.
- Coverage percent: covered divided by in-fit.
Always show counts beside percents.

## Step 6. Build and maintain
- Sort uncovered in-fit accounts by score and signal strength.
- Send them through the waterfall-enrichment-router to find contacts.
- Refresh the universe each quarter and rerun. Track new accounts, accounts that left the fit line and coverage by segment.
- Compare the score with closed-won each quarter (icp-scoring-model).

## Tool options
A company data provider, public registries, or your own web research for the universe. A spreadsheet or script for scoring. A warehouse for repeatable runs. Use a provider's licence terms: many forbid reselling or long-term storage of raw exports.

## Output
`universe_scored.csv` and `coverage.csv`, plus a one-page note: source and date of the universe, features used, line chosen, and what the funnel shows.

## Success metrics
- Coverage of in-fit accounts, by segment.
- Share of pipeline from in-fit accounts.
- Share of outreach going to excluded accounts (should be zero).
- Refresh age of the universe.

## Guardrails
- Honour do-not-contact and opt-out lists before any outreach.
- Use data only within its licence and for business-to-business purposes.
- Do not use a lookalike score to exclude people or companies for reasons you could not explain to them.
- Write the universe source, date and assumptions next to every TAM number.
