WorkflowTeardown

How to Build a Self-Updating B2B Lead Enrichment Pipeline (Firecrawl + n8n + HubSpot)

Marcus ChenTested & Verified: December 20267 min readDecember 2, 2026
Transparency Note: We buy and test every workflow ourselves. If you purchase through links on this page, we may earn an affiliate commission at no extra cost to you.

Point a form at an n8n webhook and the workflow does the rest: Firecrawl scrapes the prospect's pricing and careers pages, an LLM node distils the tech stack and ICP fit, and n8n writes the result into HubSpot custom fields. Per lead that is about $0.004 in LLM tokens, 2-10 Firecrawl credits, and exactly 1 n8n execution. At 5,000 leads a month the whole stack runs about $153/mo, or roughly $0.031 per lead — against a 10-15 minute manual research pass per lead.

Top Verdict

n8n + Firecrawl + HubSpot

Best for: Agencies doing manual prospect research before every outreach

Real monthly cost:$153/mo at 5,000 leads (Firecrawl $83 + LLM ~$20 + n8n Cloud Pro $50) ≈ $0.031 per lead

A form-triggered n8n workflow scrapes the prospect's pricing and careers pages with Firecrawl, summarises tech stack and ICP fit with an LLM, and writes the result to HubSpot custom fields in one execution per lead. At 5,000 leads a month the stack runs about $153, or roughly $0.031 per lead. It replaces a 10-15 minute manual research pass per lead.

Start with Firecrawl

What This Builds

This is a self-updating B2B lead enrichment pipeline: a 9-node n8n workflow that turns a raw form submission into a HubSpot contact enriched with the prospect's tech stack, hiring signals, and ICP fit.

The trigger is a form submit — a demo request, a contact-us page, or a CSV upload. Everything after that runs unattended: scrape, summarise, write back. One n8n execution per lead.

Tested & Verified: December 2026. We ran the workflow against a live list of agency inbound leads and logged credits, tokens, and executions per run.

The economics are the point. A manual research pass costs 10-15 minutes of a researcher's time per lead. At 5,000 leads a month that is 833-1,250 hours — a role you cannot hire fast enough. The pipeline does the same pass for about three cents.

The Architecture

Nine nodes, in order. Each one maps to a single job so you can swap any layer without rewriting the others.

  1. Form Trigger / Webhook — receives the lead payload (name, company, work email, domain).
  2. Dedupe (IF / Remove Duplicates) — skips contacts already enriched in the last 90 days, so you never pay twice for the same domain.
  3. Firecrawl — Scrape (pricing page) — pulls the prospect's /pricing page as Markdown.
  4. Firecrawl — Scrape (careers page) — pulls /careers or /jobs for hiring signals.
  5. Merge — combines both page bodies into one text block per lead.
  6. LLM — Summarise — extracts tech stack, company size signals, and a 0-100 ICP-fit score from the merged text.
  7. Code — Parse — validates the JSON the LLM returns and shapes it into HubSpot property values.
  8. HubSpot — Create or Update Contact — writes the summary into custom properties on the contact record.
  9. Error Trigger → Slack — alerts on any scrape or write failure so a bad lead never blocks the batch.

That is the whole machine. The cost is concentrated in nodes 3, 4, and 6 — the two scrapes and the LLM call.

Per-Run Cost Math

The bill has exactly three variable lines, and only one of them scales with page complexity rather than lead count.

Receipt: 5,000 Enriched Leads a Month
  • LLM tokens: $0.004 per lead × 5,000 = **$20/mo**
  • Firecrawl: 2 pages per lead = 10,000 pages; at 1-5 credits per page that is 10,000-50,000 credits
  • Firecrawl Standard: $83/mo covers 100,000 credits — enough headroom for the full JS-rendered path
  • n8n: 1 execution per lead × 5,000 = 5,000 executions → n8n Cloud Pro ($50/mo, 10,000 executions) fits, or ~$8/mo self-hosted on a VPS
  • All-in on managed tiers: $83 + $20 + $50 = ~$153/mo → ~$0.031 per lead
  • All-in self-hosted n8n: $83 + $20 + $8 = **$111/mo → ~$0.022 per lead**

Here is the same 5,000-lead month split by layer, including the manual baseline it replaces.

Pipeline layerWhat is meteredAt 5,000 leads/mo≈ Monthly cost
Firecrawl scrape (2 pages/lead)Credits — 1-5 per page10,000-50,000 credits$83 (Standard, 100,000 credits)
LLM summarisationTokens — ~$0.004 per lead~$20 of tokens~$20
n8n orchestrationExecutions — 1 per lead5,000 executions$50 (Cloud Pro) or ~$8 self-hosted
HubSpot writeCustom-property updates5,000 contact writes$0 on the free CRM
Manual research baselineResearcher time — 10-15 min/lead833-1,250 hours$33,300-$50,000 at $40/hr

The LLM line is the cheapest and the most predictable. The Firecrawl line is the one that moves, and it moves with how many of your target pages are JavaScript-rendered.

Step-by-Step Setup

  1. Create the n8n workflow and add a Form Trigger node. Set the form fields to full_name, email, and company_domain.
  2. Add an IF node that checks HubSpot for the domain and stops if the contact was enriched in the last 90 days. This is the single biggest saver on repeat lists.
  3. Add two Firecrawl Scrape nodes. Point the first at https://{{domain}}/pricing and the second at https://{{domain}}/careers. Set both to Markdown output.
  4. Add a Merge node in Append mode so both page bodies land in one item.
  5. Add an LLM node with a JSON-only system prompt: return { tech_stack, headcount_signal, icp_fit_score }. Keep the temperature at 0 so scores stay stable across runs.
  6. Add a Code node that runs JSON.parse on the model output and fails loudly on malformed JSON rather than writing junk to the CRM.
  7. Create the HubSpot custom properties first — tech_stack, headcount_signal, and icp_fit_score — then add a HubSpot node set to Create or Update Contact.
  8. Add an Error Trigger workflow that posts to Slack on any node failure.
  9. Test on 20 leads, confirm all three properties populate, then switch the trigger to your live form.

Edge Cases & Error Handling

Two of these bite everyone; the rest are hygiene.

Firecrawl credits expire monthly — and JS-rendered pages cost 2-5x

Firecrawl's credits do not roll over. A light month's surplus is lost, so a heavy month cannot borrow from last month. More importantly, a basic static page is 1 credit, but a JavaScript-rendered page can cost 2-5 credits. Most modern /pricing pages are single-page apps, so the optimistic "10,000 credits ≈ 10,000 pages" assumption is wrong on the exact pages this workflow targets. Budget the Standard tier's 100,000 credits at the 5-credit assumption, not the 1-credit one, or you will hit the ceiling mid-month.

Other failure modes worth wiring in from day one:

  • Missing /pricing or /careers page. A 404 returns an empty body and the LLM happily scores it. Add a length check in the Code node and mark the lead enrichment_status: partial instead of writing a hollow summary.
  • HubSpot API rate limits. HubSpot throttles per second and per day by tier. Batch your writes and add a retry with backoff on 429 responses, or a nightly sync will start dropping rows.
  • LLM drift on batch runs. Without temperature 0 and a fixed output schema, ICP scores wobble between runs and your segmentation quietly degrades. Pin the schema and pin the temperature.

The Blueprint

The importable n8n workflow and the HubSpot property definitions are below. Import the JSON, connect your Firecrawl and HubSpot credentials, and point the trigger at your form.

Lead Enrichment Pipeline (n8n JSON)

48 KB · JSON blueprint

Download

If you would rather run the orchestration on managed infrastructure than maintain a VPS, n8n Cloud is the lower-ops path.

Start with Firecrawl

Standard is $83/mo for 100,000 credits — budget for JS pages at 5 credits each · Affiliate link — we may earn a commission.

Get n8n Cloud

5,000 executions for this workflow fits Cloud Pro at $50/mo · Affiliate link — we may earn a commission.

Set Up HubSpot CRM

The destination the workflow writes tech stack and ICP fit into · Affiliate link — we may earn a commission.

If your team is midway through a per-row enrichment subscription, read how Clay's waterfall credits quietly push a $149 plan past $500 — the pipeline above exists to remove exactly that per-row tax. For run-count math across orchestration tools, the Zapier vs Make vs n8n cost calculator models the execution line directly.

Frequently asked questions

Q: How much does this pipeline cost per enriched lead?

About $0.031 per lead at 5,000 leads a month on managed tiers — roughly $153/mo total, made up of $83 for Firecrawl Standard, ~$20 in LLM tokens, and $50 for n8n Cloud Pro. Self-hosting n8n on a ~$8/mo VPS drops it to about $0.022 per lead. The LLM line is fixed at ~$0.004 per lead; the Firecrawl line is what moves.

Q: How many Firecrawl credits does one lead consume?

Two pages per lead (pricing and careers), at 1-5 credits per page depending on JavaScript rendering — so 2-10 credits per lead. A static HTML page is 1 credit; a JS-rendered single-page pricing site can cost 5. On 5,000 leads that is 10,000-50,000 credits, which is why Firecrawl Standard's 100,000-credit ceiling is the right starting plan.

Q: Does this replace Clay?

It replaces the per-row waterfall for a fixed set of fields — tech stack, headcount signal, and ICP fit — at one n8n execution per lead instead of a credit tax per row. It does not replace Clay's GTM table UX or Claygent research for bespoke, human-in-the-loop work. Most agencies run the pipeline for volume and keep Clay for the high-touch accounts.

Q: What HubSpot tier do I need?

The free CRM supports custom contact properties, which is all this workflow writes to, so you can start at $0. You only move to a paid HubSpot or Operations Hub tier when you need advanced data-sync or formatting features. Watch the API rate limits — batch writes and back off on 429s.

Q: Should I run n8n Cloud or self-hosted for this?

One lead equals one execution, so 5,000 leads a month is 5,000 executions. n8n Cloud Pro ($50/mo) covers 10,000; self-hosted n8n on a ~$6-$12/mo VPS runs unlimited executions if you accept the ops work. Start on Cloud for zero maintenance, then migrate if volume climbs past the execution cap.

Marcus Chen

Written by

Marcus Chen

Lead Automation Architect

Marcus builds and benchmarks AI operations workflows for e-commerce and agency teams. He previously ran a 12-person ops team and has shipped 400+ production Make and n8n scenarios.

Frequently asked questions

About $0.031 per lead at 5,000 leads a month on managed tiers — roughly $153/mo total, made up of $83 for Firecrawl Standard, ~$20 in LLM tokens, and $50 for n8n Cloud Pro. Self-hosting n8n on a ~$8/mo VPS drops it to about $0.022 per lead. The LLM line is fixed at ~$0.004 per lead; the Firecrawl line is what moves.
Advertisement · anchor unit