workflows.fit
Back to n8n workflows
n8n templateFreeBy Connor Provines

Enrich and score leads automatically with Claude AI, PDL and Perplexity

⚠️ Community Node Disclaimer This template uses the Apify LinkedIn Profile Scraper, which is a community node only available in self-hosted n8n installations. The LinkedIn scraping step is optional and can be removed ...

DevelopmentCore NodesCommunicationHITLSalesAILangchainUtility
Loading interactive preview...

Template notes

⚠️ Community Node Disclaimer This template uses the Apify LinkedIn Profile Scraper, which is a community node only available in self-hosted n8n installations. The LinkedIn scraping step is optional and can be removed for n8n Cloud compatibility.

Who's it for Sales and marketing teams processing 20+ leads daily who need to eliminate manual research and focus reps on hot prospects. Perfect for B2B companies wanting to qualify inbound leads at scale using AI-powered enrichment and scoring.

What it does This workflow automates lead qualification by enriching email addresses with firmographic data from People Data Labs, researching individuals and companies using Perplexity AI, scoring leads against your ICP criteria with Claude, and routing them to appropriate channels. Hot leads (8-10 score) get instant Slack alerts with personalized email drafts. Warm leads (5-7) go to a digest channel. Cold leads (0-4) log to your CRM only. Processing takes 30-60 seconds per lead versus 20 minutes manual research, costing $0.08-0.15 per lead.

How it works The webhook receives an email address and optional name. Multiple enrichment sources run in parallel: PDL fetches contact and firmographic data, Perplexity researches the individual's recent activity and company developments, and optionally Apify scrapes their LinkedIn profile. All data merges into a complete profile. Claude AI scores the lead against your ICP rules stored in Google Docs, calculating points for company fit, title fit, buying signals, and timing. Based on the total score, leads route to three tiers with different handling. Hot leads trigger immediate Slack alerts and generate personalized email drafts using Gemini. All qualified leads optionally sync to your CRM.

Requirements - People Data Labs API (or Apollo/Clearbit alternative) - Perplexity API - Anthropic Claude API - Google Docs for ICP rules - Slack workspace - Gmail account - Optional: Apify for LinkedIn scraping (self-hosted only) - Optional: HubSpot or other CRM

Set up steps

1. Configure the webhook In the Webhook node, set your webhook path (default is "lead-intake"). Send POST requests with this JSON format: json { "email": "lead@company.com", "name": "Optional Name" }

2. Add API credentials securely