Skip to content

Workspace API

Scores

The workspace's ICP Score, Atlas Score and Prospect Score, rules the workspace sets over Parcel's data, with their criteria, math, buckets and recompute cadence.

Every workspace has three scores, one per dataset. Each is a set of weighted criteria the workspace sets; Parcel computes them in SQL over the data it already holds. Scores never call a model and cost nothing. No record can be scored by hand: if a result looks wrong, change the criteria, and use preview to see the effect before saving.

ScoreKeyDatasetBuckets, top first
ICP Scoreicpaccountstier_1, tier_2, tier_3, disqualified
Atlas Scoreatlasprojectspriority, secondary, watch, pass
Prospect Scoreprospectcontactsexcellent, good, fair, not_a_fit

Bucket keys never change; their labels are the workspace’s own. In the app, owners and admins set all three under Settings → Scoring. A new workspace starts with the three scores and no criteria, so nothing is scored until criteria are saved or seeded.

The math

Score is matched weight over total weight, times 100. Impacts weigh 4 (very_important), 3 (important), 2 (somewhat_important) and 1 (not_important). A matched disqualify criterion carries no weight and forces the score to 0 and the bottom bucket. Buckets fall at 75, 50 and 25. A blank field counts as unmatched, so a disqualifier needs positive evidence to fire. A score with no weighted criterion scores only the records a disqualifier matched.

Criteria

A criterion is { id, label?, impact, where }. id is 1-40 characters of a-z, 0-9 and _, unique within the score; a score holds up to 40 criteria. where is a condition on the score’s records, the same format the tables, Views and book searches take: see Filtering with where, and the field list per dataset with POST /data/fields/search and {"dataset": "workspace_accounts"} (or workspace_projects, workspace_contacts). label is 1-80 characters; when you leave it out, Parcel writes one from the rules (“Project city is Boston”).

Criteria, one per score
{ "id": "in_market", "impact": "important", "where": { "combinator": "and", "rules": [
{ "field": "project.city", "operator": "in", "value": ["Boston", "Cambridge"] },
{ "field": "project.use", "operator": "in", "value": ["multifamily"] } ] } }
{ "id": "developer_tier", "impact": "important", "where": { "combinator": "and", "rules": [
{ "field": "firm.role", "operator": "in", "value": ["developer"] },
{ "field": "firm.score", "operator": "between", "value": [75, 100] } ] } }
{ "id": "email", "impact": "somewhat_important", "where": { "combinator": "and", "rules": [
{ "field": "has_email", "operator": "=", "value": true } ] } }

Rules in one group on the same prefix describe the same linked record: the ICP criterion above is one Boston multifamily project, and the Atlas one is one firm that is both the developer and Tier 1. A score reads only an earlier score (accounts score first, then projects, then contacts): its own score field is refused, firm.score is the linked firm’s ICP Score on projects and contacts, and a View a criterion names may not filter on this score or a later one.

Reading scores

Every account, project and contact record from the Workspace API carries scores, e.g. "scores": { "atlas": { "score": 82, "bucket": "priority", "matched": ["market", "sector", "stage"] } }, or "scores": { "atlas": null } when unscored. matched lists the criterion ids that matched; explain a bucket from it. Book searches, View records and Dynamic Views filter on the score with the where field score (and firm.score for the linked firm’s ICP Score): between [75, 100] is the top bucket, then 50 to 74, 25 to 49 and 0 to 24, and an unscored record is empty. They sort on the three _score keys; unscored records sort last, and a search_after cursor stops where they begin (page on with offset, or sort by another key).

When scores recompute

  • When a score is saved or seeded: that score and every score after it, in the same request.
  • When a View a criterion reads changes, directly or through another View: membership added or removed, a definition edited, a follow or unfollow, or the View deleted.
  • When tags, a workspace status or a contact unlock changes and a criterion (or a View it names) reads them.
  • Every six hours, for every workspace, so new projects, signals and links reach the scores.