> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Enrich companies | Agent guide

> Look up a company from its name or domain, check the entity, and review proposed fields before a CRM update.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/plays/task-enrich-company.md)

Turn a company name or domain into a reviewed profile and field proposals.
Decide whether you mean an operating company, parent, subsidiary, or product
brand before accepting the result. Similar names can represent different CRM
accounts.

## Look up one company

`prebuilt/company-to-info` uses People Data Labs company enrichment. Its result
has nullable fields and explicit misses; it does not combine several sources.
Inspect its current contract before an authorized lookup, which can use
Deepline credits:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline describe prebuilt/company-to-info --json
deepline plays run prebuilt/company-to-info \
  --input '{"domain":"stripe.com"}' \
  --watch
```

Read `company_found` and `miss_reason`, then compare
`company_name`, `company_domain`, and the profile context with the intended
entity. A filled response alone does not establish a match.

## Normalize the website without losing evidence

Preserve the submitted value and extract its hostname with a URL parser.
Separate paths and tracking parameters: `https://example.com/products/widget`
can identify the same website as its homepage, but does not prove which legal
entity or sales account owns the product.

Keep meaningful subdomains until your identity policy permits collapsing them.
Use a maintained domain parser for registrable domains; taking the final two
labels fails for some domain suffixes. A consumer mailbox domain is not employer
evidence. For uncertain trial signups, use [signup enrichment](https://deepline.com/docs/guides/free-trial-signup-enrichment.md).

## Check the company and profile URL

Compare these observations before accepting the entity:

| Evidence | Check | Remaining uncertainty |
| - | - | - |
| Website and company name | Domain, trading name, and aliases match your target | Redirects can follow acquisitions or rebrands |
| Company profile URL | Its website and organizational context match | A parent profile may not represent a subsidiary |
| Location | It fits the country or region you need | Headquarters does not describe every operating location |
| Provider record ID | Retain it with the source | It is not automatically your CRM account ID |

To find a company profile URL by domain, inspect `company_linkedin_url` and its
associated website. If the lookup returns no URL, search for the company name
and domain together, then check the candidate profile's website field. Preserve
the source URL and connecting evidence. Do not guess a profile slug from the
business name. A snippet or plausible URL cannot settle conflicting candidates;
keep the match unresolved when evidence is insufficient.

## Accept fields separately

After accepting the entity, inspect the fields you need, such as `headcount`,
`industry`, `hq_country`, and `total_funding_usd`. Null means missing evidence,
not zero. Record the source and observation time and apply freshness and source
precedence per field. The [PDL contract](https://docs.peopledatalabs.com/docs/company-enrichment-api)
and the selected Play describe their fields; a review policy does not alter
the maintained implementation. Use a [custom Play](https://deepline.com/docs/sdk-v2/plays.md) for additional
sources or precedence rules.

An employee measure might be an estimate, a range, or associated profiles.
Keep its definition. Compare entity scope and freshness before reconciling two
sources; averaging parent and subsidiary counts has no useful meaning.

### Worked account: accept the profile, hold the segment

A fictional CRM account represents Example Labs at `example.com`. A matching
profile reports 51–200 employees. Your routing policy splits accounts at 100:

| Proposed field | Decision | Reason |
| - | - | - |
| Company profile | Accept after checking website and entity | Matches the operating company |
| Employee range | Retain 51–200 with source date | This is the reported value |
| Exact headcount | Leave unknown | A range is not an exact count |
| Sales segment | Review | The range crosses the 100-employee threshold |
| Existing account owner | Preserve | Enrichment does not authorize reassignment |

The midpoint, 125.5, would invent precision. A second result of 1,400 employees
for the parent does not settle the subsidiary's count. Store identity and field
acceptance separately so the profile can pass while the segment stays in review.
This is an example acceptance policy, not the `company-to-info` response schema.

## Expand to a file and review field proposals

Prepare `companies-pilot.csv` with representative records and a `domain` or
`company_name` header. Preserve source IDs and existing CRM account IDs. Inspect
the batch contract and map different headers explicitly:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline describe prebuilt/company-to-info-batch --json
deepline plays run prebuilt/company-to-info-batch \
  --csv companies-pilot.csv \
  --columns.domain domain \
  --watch
```

This maps the file's `domain` header. Include parent/subsidiary, rebrand,
consumer-domain, and no-match cases. Use the [CSV input guide](https://deepline.com/docs/sdk-v2/batch-csv.md)
for file preparation and [saved-run results](https://deepline.com/docs/sdk-v2/calling-plays.md#inspect-and-export-an-existing-run)
for inspection and export.

For each proposed field, retain the source ID, CRM account ID, previous value,
candidate value, source, observation time, and acceptance reason. These are
review-file fields you define, not a fixed API schema.

| Lookup evidence | Field proposal |
| - | - |
| Intended entity matches; industry passes its rule | Propose the industry update |
| Parent reports 1,400 employees for a subsidiary | Hold headcount for entity review |
| Provider request fails | Retain the error; preserve the existing value |

Use [Repair CRM records](https://deepline.com/docs/guides/crm-data-quality-automation.md) for field ownership,
approval, writes, and read-back. Continue to [account scoring](https://deepline.com/docs/plays/play-qualify-lead-fit.md)
only with accepted evidence.

## Verify this task

Reconcile every source record with an accepted entity, unresolved match or
provider error. Check field provenance and missing values, preserve the
employee-range decision, and review proposed CRM changes before applying them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.