Lead & CRM Automation

AI lead scoring: how scoring against your ICP works

By Roman Zakharenko · Facts checked · 7 min read

Lead scoring turns raw leads into a ranked list by giving each one points for how well it fits your ideal customer profile (ICP) and how it behaves. AI enters in two ways: platform-native scoring, such as HubSpot's AI-built lead scores, and external classification, where a model reads a reply or an enrichment record, computes a fit score and writes it back to your CRM through the API.

At a glance

  • HubSpot's lead scoring tool needs Marketing Hub or Sales Hub Professional or Enterprise; AI-built contact scores need Marketing Hub Enterprise.
  • HubSpot's AI lead scores need a minimum sample of 50 contacts — 25 converted and 25 non-converted — before a score can be generated.
  • Attio has no dedicated scoring tool: on Pro, Enterprise and Ultra a formula attribute can add up points automatically; on other plans a workflow or the API fills a number attribute.
  • Attio number attributes store floating-point numbers with up to four decimal places — enough for a 0–100 fit score.
  • An external score is written to HubSpot with a PATCH to /crm/v3/objects/contacts/{contactId}, and to Attio with a PATCH to /v2/objects/{object}/records/{record_id}.

What AI lead scoring means

Scoring models usually combine two kinds of signal. Engagement signals measure what a lead does: opens, clicks, replies, page visits, meetings booked. Fit signals measure who the lead is, compared with your ideal customer profile: industry, company size, country, role, tools in use. A fit score answers "should we want this lead?", an engagement score answers "does this lead want us?".

AI shows up in two places. CRMs ship native machine-learning scores that learn from your historical conversions, like HubSpot's AI-built lead scores. And teams run their own classification outside the CRM: a language model reads an outreach reply or an enrichment record, labels it (interested, not now, wrong person) or rates ICP fit, and the result is written into a CRM field through the API. The second pattern works with any CRM that has an API, and it is the one this page focuses on.

Lead scoring inside HubSpot

HubSpot's current scoring lives in the lead scoring tool. It is available with Marketing Hub or Sales Hub Professional or Enterprise. Marketing Hub scores contacts, both hubs score companies, and Sales Hub scores deals. You can build engagement scores, fit scores based on property values, and combined scores, each from groups of weighted criteria with positive and negative points.

  • The default maximum for a score is 100 points; the score limit can be set to ±100, ±200, ±300, ±400, ±500, ±1,000 or ±10,000.
  • Score decay can reduce engagement points over time, with intervals of every 1, 3, 6 or 12 months, each month counted as 30 days.
  • Thresholds split a score into High, Medium and Low bands; combined scores use an A1–C3 matrix of fit and engagement.
  • AI-built contact scores (Marketing Hub Enterprise) learn from contacts that moved between two lifecycle stages and need at least 50 contacts — 25 converted and 25 non-converted.

The tool creates its own score properties, and they are tied to the score: delete the score and the properties go with it, and they cannot be edited from outside. An externally computed AI score therefore belongs in a custom number property you create yourself, not in a tool-managed score property.

Scoring in Attio

Attio takes a different approach: there is no dedicated scoring tool and no score field type. On the Pro, Enterprise and Ultra plans, a formula attribute can calculate a points-based score from a record's own fields with if() conditions; a formula that returns a number becomes a number attribute, recalculates automatically when the fields it uses change, and uses no workspace credits. Otherwise a score is just an attribute you fill: Attio's own MQL Scoring workflow template scores leads with workflow blocks, and its automations page lists a "Scoring Agent" among the AI agents that run inside workflows — an agent step with instructions, not a separate scoring product. Three attribute types fit a score you fill yourself:

  • A number attribute stores floating-point numbers with up to four decimal places and can be filtered with comparisons such as greater-than-or-equal — a natural home for a 0–100 fit score.
  • A select attribute holds predefined options, good for bands such as A, B and C. Writing a value whose option doesn't exist returns an error instead of creating the option.
  • A rating attribute is a numeric value from 0 to 5, shown as stars.

Workflows are available on all Attio plans. A workflow can start from a record change, a schedule or a "Webhook received" trigger, so an external scorer can start one directly; a "Custom agent" block can run an AI step with structured output, followed by an update-record block to save it. Outbound webhooks are signed with an HMAC-SHA256 of the body in the Attio-Signature header, so your scorer can also react to Attio events safely.

Writing an external AI score to your CRM

Writing a score via the API (vendor docs, checked November 2026)
StepHubSpotAttio
Create the fieldPOST /crm/v3/properties/{objectType} with groupName, name, label, type "number", fieldType "number"Create a number or select attribute on the object in workspace settings or via the attributes API
Write one recordPATCH /crm/v3/objects/contacts/{contactId} with {"properties": {...}}; an email can be used with idProperty=emailPATCH /v2/objects/{object}/records/{record_id} with the attribute slug in the body
Write in bulkPOST /crm/v3/objects/contacts/batch/update, or batch/upsert to create-or-updateOne request per record, within the API's rate limits
AuthPrivate app access token as a Bearer tokenWorkspace API key or OAuth 2.0, as a Bearer token; updating records needs the record_permission:read-write and object_configuration:read scopes

A typical pipeline, described as steps — it shows how the pieces fit together, not a TascaLab case study:

  1. Collect: a new lead arrives from a form, an outreach reply or a visitor-identification tool.
  2. Classify: an AI model labels the reply or the lead (interested, not interested, wrong person, out of market).
  3. Score: the lead's firmographics are compared against your ICP and a fit score is computed.
  4. Write: the score lands in a custom number property in HubSpot or a number attribute in Attio, through the endpoints above.
  5. Alert: a CRM workflow or a Slack message tells the owner when a lead crosses the threshold.

Where the replies come from: lemlist

Outreach replies are one of the strongest scoring signals, and lemlist exposes them in two ways. Webhooks send real-time POST callbacks for events such as emailsReplied, linkedinReplied and whatsappReplied, plus lead states such as interested and notInterested; a workspace can hold up to 200 webhooks, and each target URL must be unique — register a URL without an event type to receive every event and filter on your side. The activities API (GET /activities) retrieves the same history filtered by type, campaign and date, for polling instead of pushing. Authentication is HTTP Basic with an empty username and the API key as the password — not a Bearer token.

Getting this built

TascaLab builds exactly this pipeline: leads from one source classified and scored by AI against your ICP and logged to your CRM, as the Lead Capture & Scoring package ($700 one-time). Connecting outreach, calling or enrichment tools to HubSpot or Attio is the CRM Integration package ($900 one-time). Most setups take 1–3 weeks, and every project includes basic documentation and 30 days of post-launch support. You can start with a free 30-minute Health Check call.

Not sure what to automate first?

Roman ZakharenkoAI Automation Specialist

Book a free Health Check: a 30-minute call and a written report with 2–3 concrete recommendations, a fixed price and estimated running costs. No pitch.

Reviews on Upwork
See packages and prices

Frequently asked questions

What is AI lead scoring?

Ranking leads by combining engagement signals (what a lead does) with fit signals (how well it matches your ideal customer profile), with AI either built into the CRM — like HubSpot's AI lead scores — or run outside it, classifying replies and computing a fit score that is written back through the API.

What does HubSpot's lead scoring tool require?

Marketing Hub or Sales Hub Professional or Enterprise. AI-built contact scores need Marketing Hub Enterprise and at least 50 contacts — 25 converted and 25 non-converted — to generate a score.

Does Attio have built-in lead scoring?

No dedicated scoring tool and no score field type. On Pro, Enterprise and Ultra, a formula attribute can calculate a points-based score automatically; otherwise scores live in number or select attributes, filled by workflows — including AI agent steps, which Attio markets as a Scoring Agent — or by an external tool through the API.

How do I write a score into HubSpot or Attio from outside?

HubSpot: create a custom number property, then PATCH /crm/v3/objects/contacts/{contactId}, or use the batch update and upsert endpoints. Attio: PATCH /v2/objects/{object}/records/{record_id} with a Bearer token holding the record_permission:read-write and object_configuration:read scopes.

Sources

  1. HubSpot Knowledge Base — Overview of the lead scoring tool
  2. HubSpot Knowledge Base — Build lead scores to qualify contacts, companies, and deals
  3. HubSpot Knowledge Base — Build contact lead scores with AI
  4. HubSpot Developers — Properties API
  5. HubSpot Developers — Contacts API
  6. Attio Help — Formula attributes
  7. Attio Docs — Number attributes
  8. Attio Docs — Select attributes
  9. Attio Docs — Rating attributes
  10. Attio Docs — Authenticating requests
  11. Attio Docs — Update a record
  12. Attio Docs — Webhooks
  13. Attio Help — Overview of workflows
  14. Attio Help — Workflows block library
  15. Attio — MQL Scoring workflow template
  16. Attio — Agents and automations
  17. lemlist Developer — Authentication
  18. lemlist Developer — Add Webhook
  19. lemlist Developer — Get Many Activities