> ## 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.

# Score accounts | Agent guide

> Score accounts using firmographic fit, buying signals, win/loss patterns, and closed-lost context so sales can prioritize outreach.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/plays/play-qualify-lead-fit.md)

Score a defined account list against a versioned rule and return an explainable
review queue. Use accepted [company evidence](https://deepline.com/docs/plays/task-enrich-company.md)
and [qualified signals](https://deepline.com/docs/plays/signal-playbooks.md) as inputs.

## Separate fit from this week's priority

Define the ICP, exclusions, required evidence, weights or decision rules,
missing-data behavior, and policy version before scoring. Fit describes whether
the account matches the market. Priority also considers timing, ownership,
account status, and the team's next-action policy. An ICP-fit account with no
current trigger can have a lower priority without becoming a non-fit account.

Missing evidence is not verified poor fit. A size range spanning two segments
must keep segment-dependent priority unresolved. An observed advertisement
must not be labeled confirmed purchase intent.

## Test a labeled sample

For this fictional policy, fit requires B2B software and an accepted employee
count from 100 to 500. A current, relevant hiring signal raises review priority;
consumer businesses are excluded.

| Labeled case | Expected fit | Expected priority/review |
| - | - | - |
| B2B software, 200 employees, relevant current role | Fit | Higher owner-review priority |
| B2B software, 200 employees, no current trigger | Fit | Normal research queue |
| Consumer retailer, complete evidence | Excluded | No campaign action |
| B2B software, source size 51–200 | Unknown | Hold segment-dependent priority |
| Missing decisive size field | Unknown | Collect evidence; do not assign lowest fit |

Run these cases without provider calls first. Record inputs, rule version,
calculation or matched rule, and contributing reasons. An eloquent explanation
must agree with the calculation. When a rule or source scope changes, recheck
the labeled cases so a collection change cannot masquerade as a business change.

## Run the scoring workflow

Provide stable account IDs, domains, your rule, and labeled examples:

```text theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
/deepline-gtm Test our attached ICP rule on the labeled cases, then score five
accounts from accounts.csv. Write scored-accounts-pilot.csv with evidence and next actions.
```

Keep routing and CRM writes disabled during this review. Preserve the policy
version, exclusions, unknown fields, reasons, and proposed owner in the output.

Have the agent inspect the current enrichment contracts and author
`account-scoring.play.ts` using [Build a Play](https://deepline.com/docs/sdk-v2/plays.md). Then check and run
the reviewed sample:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline plays check ./account-scoring.play.ts
deepline plays run --file ./account-scoring.play.ts --csv accounts-pilot.csv --watch
deepline runs export '<run-id>' --out scored-accounts-pilot.csv
```

Source checking does not spend credits. Provider-backed execution can. Export
the dataset path returned by the Play if it emits more than one dataset.

## Keep the review output inspectable

These are suggested custom workflow fields, not a fixed prebuilt response:

| Field | Purpose |
| - | - |
| `account_id`, `domain` | Match output to the source account |
| `fit_tier`, `score` | Result under the recorded rule |
| `priority`, `next_action`, `owner` | Proposed operating decision |
| `contributing_reasons`, `policy_version` | Reproduce the calculation |
| `evidence_url`, `observed_at` | Inspect the accepted evidence |
| `review_state`, `missing_fields` | Keep uncertain accounts out of automatic decisions |

## Find better signals from won and lost accounts

```text theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
/deepline-gtm Compare won.csv and lost.csv. Enrich the companies, show the
non-obvious differences with evidence and caveats, and propose a small scoring
rule we can test against labeled examples. Do not treat one correlation as a
causal rule.
```

For closed-lost recovery, compare changes since the loss: a new role, relevant
hiring, funding tied to a verified initiative, expansion, or a documented
competitor issue. Keep an account with no material new evidence out of the
re-engagement queue. Define signals precisely: "two RevOps roles posted in the
last 90 days" is testable; "growth signals" is not.

## Verify this task

Compare all five labeled examples with the versioned rule. Verify exclusions, unknown size, fit versus timing priority, and consistency between reasons and calculation.


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