M
MJK.Supplies
Home / n8n / n8n CRM Automation: Sync, Score, and Route Leads…
n8n

n8n CRM Automation: Sync, Score, and Route Leads Automatically

CRM automation with n8n transforms your sales and customer success processes from manual and reactive to automated and proactive. By connecting n8n to HubSpot, Salesforce, or Pipedrive — and adding AI intelligence from Claude — you can enrich leads automatically, personalise outreach at scale, and keep your CRM data clean without manual effort.

M
MJK Supplies · Jun 4, 2026 · 11 min read
ShareXinf↗
n8n CRM Automation: Sync, Score, and Route Leads Automatically

What CRM Automation Actually Solves

Most CRM problems aren't about the CRM itself — they're about the data and processes around it:

  • Leads come in from different sources and get different levels of follow-up
  • Sales reps spend 40% of their time on admin (data entry, research, updates) instead of selling
  • CRM data goes stale as companies change, people leave, and opportunities evolve
  • Personalisation at scale seems impossible when reps have 100+ accounts

n8n with Claude solves all four: unifying lead capture, automating research and enrichment, keeping data fresh, and generating personalised content at the volume and consistency that humans can't match manually.

HubSpot + n8n Integration

n8n has native HubSpot nodes for all common operations:

Triggers:

  • New contact created
  • Deal stage changed
  • Form submission
  • Contact property updated

Actions:

  • Create/update contact
  • Create/update deal
  • Add note to contact
  • Create task
  • Add contact to list

Basic connection: Settings → Credentials → HubSpot API → add your Private App token (from HubSpot → Settings → Integrations → Private Apps).

Lead Enrichment Workflow

Automatically enrich every new lead with company data and AI-generated talking points:

Trigger: HubSpot - New Contact Created ↓ HTTP: Clearbit Enrichment API URL: https://person.clearbit.com/v2/combined/find Params: email={{$json.email}} ↓ Code: Extract relevant company data ↓ HTTP: Claude API Prompt: "Based on this lead's role ({{$json.jobTitle}}) at {{$json.company}} ({{$json.companySize}} employees, industry: {{$json.industry}}), generate: 1 personalised talking point, 2 likely pain points, 1 recommended case study to share." ↓ HubSpot: Update Contact - Company size: {{$json.metrics.employees}} - Industry: {{$json.industry}} - AI talking points: {{$json.claudeResponse}} ↓ HubSpot: Create Task - "Review enriched lead data and send personalised outreach"

Deal Stage Automation

Different deal stages require different actions. Automate the right response to each transition:

Trigger: Deal moves to "Proposal Sent"

  • Claude generates personalised follow-up schedule and talking points based on deal notes
  • Create calendar reminders for follow-up at day 3, 7, and 14
  • Slack notification to deal owner with AI-generated suggestions

Trigger: Deal moves to "Closed Won"

  • HubSpot: tag contact as customer
  • Add to customer onboarding sequence
  • Create CSM welcome task
  • Slack celebration message to #wins channel

Trigger: Deal moves to "Closed Lost"

  • Claude analyses deal notes: "What was the primary reason for loss? What could we have done differently?"
  • Log analysis as internal note on contact
  • Add to re-engagement sequence (3-month delay)

Lead Scoring with AI

Build AI-powered lead scoring that updates automatically:

// Code node — build scoring prompt const contact = $input.first().json; const companyData = $node["Clearbit"].json; const engagementHistory = $node["HubSpot History"].json; const prompt = `Score this lead from 1-10 based on fit and engagement. Company fit signals: - Industry: ${companyData.company?.category?.industry || 'unknown'} - Size: ${companyData.metrics?.employees || 'unknown'} employees - Revenue: ${companyData.metrics?.annualRevenue || 'unknown'} Contact fit signals: - Title: ${contact.jobTitle} - Seniority: ${contact.seniority || 'unknown'} Engagement signals: - Pages viewed: ${engagementHistory.pagesViewed} - Emails opened: ${engagementHistory.emailsOpened} - Last activity: ${engagementHistory.lastActivity} Return JSON: {"score": 1-10, "reasoning": "one sentence"}`; return [{ json: { prompt } }];

Stale Data Prevention

Keep CRM data fresh automatically:

Weekly company data refresh:

  1. Schedule trigger (every Sunday)
  2. HubSpot: get all contacts updated >30 days ago
  3. Loop: for each contact
  4. Clearbit: re-lookup company data
  5. Compare: if significant changes detected
  6. HubSpot: update company fields
  7. Claude: generate updated talking points if role/company changed

Email bounce cleanup:

  1. HubSpot email bounce trigger
  2. n8n: find and verify alternative contact emails
  3. Claude: draft re-engagement via LinkedIn DM if email bounces
  4. HubSpot: update contact status

Automated Follow-Up Sequences

AI-personalised follow-up that actually gets responses:

  1. Trigger: Deal created, stage = "Discovery Call Completed"
  2. HubSpot: get call notes from deal
  3. Claude: "Based on these call notes, write 3 personalised follow-up email drafts for days 1, 3, and 7. Reference specific pain points mentioned."
  4. HubSpot: create email drafts in sequence
  5. HubSpot: create tasks for rep to review and send each draft

The key: Claude writes based on actual call notes, not generic templates. Response rates are dramatically higher.

Recommended Tools

  • n8n — Automation platform connecting CRM to AI
  • HubSpot — CRM with native n8n integration
  • Claude API — AI for enrichment and personalisation
  • Clearbit — Lead enrichment data
  • Apollo.io — Additional lead data and email finding
  • Salesforce — Enterprise CRM alternative to HubSpot
#n8n#crm#hubspot#salesforce

Related articles

MJK Supplies · Automation Services

Want this built for you?

We design and ship custom AI agents and automation systems for teams that want results, not a backlog. Book a free 30-minute consult — no commitment, no pitch deck.