---
title: How documents are matched to prospects
description: How a research doc is chosen for a prospect by its keywords, how to manage keywords and priority, and how to test a match.
canonical: https://distrosauce.com/docs/research-library/keyword-matching
last_updated: 2026-11-14
---

# How documents are matched to prospects

This page explains how Distrosauce decides which research docs go into the prompt for a prospect, and how you control it with keywords, priority and **Test Matching**.

## Keywords decide

Each doc has match keywords. When Distrosauce writes an email or an ABM brief, it looks for each doc's keywords in the prospect's data. A keyword matches when it appears anywhere in that data, ignoring upper and lower case: the keyword `scheduling` matches "Scheduling Suite". Only `active` docs are matched.

## What is matched

For outbound emails, the prospect's data is:

- the tech stack, for example "Example Rival One, Example Tool Three"
- the industry, for example "Home Services"
- the company description
- the research Distrosauce did on the lead
- the signal type and signal details
- the company name and domain

For ABM briefs, it is the account's tech stack, company description, industry, company name and domain.

Competitor docs are matched more narrowly: only against the tech stack, company name, domain and signal details. A competitor doc is meant for a prospect that uses or is looking at that competitor, and an industry word alone does not show that.

## Automatic matching on the name

Every doc also matches on its own name and slug. A competitor doc named "Example Rival One" matches any prospect with "example rival one" in its tech stack, company name, domain or signal details, without a keyword for it.

## Keywords written for you

When a doc is created or its content is saved, Distrosauce writes keywords from the content, such as product names, technologies and industry terms. It also writes **Industry Tags** from your **Industry Taxonomy** on **Settings > Generation Config**, when you have one. Industry tags are matched like keywords, except on competitor docs.

To keep a term from ever being written as a keyword, add it to **Blocked Keywords** on **Settings > Generation Config**. This is useful for tools so common that nearly every prospect has them.

If keywords cannot be written, for example because your Anthropic key is out of credit, the doc keeps the keywords it had and shows **Keywords missing**. See [Staleness and refresh](https://distrosauce.com/docs/research-library/staleness#keywords-missing).

## Your own keywords

Manage keywords on the doc page under **Keywords & Industry Tags**:

- To add one, type it into **Add keyword...** and press **Add**. You can add several at once, separated by commas.
- To remove one, press the x on it.
- To pin one, click it. Pinned keywords survive regeneration.
- Press **Save keywords** when you are done.

If a doc should match prospects in "plumbing" but the word is not in the content, add `plumbing` as a keyword.

> **Important:** Saving new content, or pressing **Regenerate keywords & tags**, writes the keyword list again. Only pinned keywords are kept from the old list. Pin every keyword you add by hand.

## Test a match

On the doc page, open **Test Matching**:

1. Enter sample prospect data in **Tech Stack**, **Industry** and **Company Description**.
2. Choose the **Generation Context**: **Outbound Email**, **ABM Brief** or **ABM Brief (Partner)**.
3. Press **Test match**.

The result says **Matched** or **Not matched**, shows the relevance score and the keywords that matched, and an **Assembled Preview** of how the doc would appear in the prompt.

The test runs the same selection as real generation, against all your active docs. To test a competitor doc, put the competitor's name or a matching keyword in **Tech Stack**, since competitor docs ignore industry and description.

## Priority and how many docs fit

When several docs match, they are ranked, and **Priority** helps decide which come first: on the doc page under **Metadata**, "Higher priority docs are preferred when multiple match (0-100)". New docs start at 0.

Each email or brief has room for only so much research, so not every matching doc is used. Higher-ranked docs are added first. A matching doc is a candidate, not a guarantee: use **Test match** to see whether it would be chosen.

The **Content** heading on the doc page shows an estimate of how many tokens the doc uses. Shorter docs leave room for more of them.

## Troubleshooting

### A doc is not matching a prospect it should match

1. Open the doc, expand **Test Matching** and enter the prospect's tech stack and industry.
2. Check which keywords matched, if any.
3. If none matched, add the term from the prospect's data as a keyword, pin it and save.

For a competitor doc, remember that only the tech stack, company name, domain and signal details count. On a lead, the **Research Library** panel shows how many docs were used, or "No docs matched".

### Too many docs are matching a prospect

- Lower the **Priority** of less important docs.
- Remove keywords that are too broad, and add them to **Blocked Keywords** so they are not written again.

Lower-ranked docs are the first to be left out when there is not room for all of them.

## What's next

- [Edit, version and override documents](https://distrosauce.com/docs/research-library/manage-docs)
- [Staleness and refresh](https://distrosauce.com/docs/research-library/staleness)
