Enrich and score leads automatically with Claude AI, PDL and Perplexity
UnknownUnknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.
Community nodes
These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
@apify/n8n-nodes-apify(LinkedIn Profile Scraper)
Nodes used (15)
- Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Perplexity
n8n-nodes-base.perplexity - Merge
n8n-nodes-base.merge - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - HubSpot
n8n-nodes-base.hubspot - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Webhook
n8n-nodes-base.webhook - Apify
@apify/n8n-nodes-apify.apify - Google Docs Tool
n8n-nodes-base.googleDocsTool - Think Tool
@n8n/n8n-nodes-langchain.toolThink
What it does
⚠️ 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": "[email protected]", "name": "Optional Name" } 2. Add API credentials securely People Data Labs: In the PDL Enrich node, click "Credential for Header Auth" → Create new credential → Add header name X-Api-Key with your PDL API key as the value. This uses n8n's credential management instead of hardcoding keys. Perplexity: In both Individual Research and Company Research nodes, add your Perplexity API credentials. Anthropic: In the Anthropic Chat Model node, add your Claude API credentials. Slack: In both Slack nodes, set up OAuth2 and select your target channels. Hot and warm leads can route to different channels. Gmail: In the Send Hot Lead Email node, configure OAuth2 credentials. Google Docs: In the ICP & Use Case node, replace the documentURL with your Google Doc containing ICP scoring rules, then add OAuth2 credentials. Optional - Apify: In LinkedIn Profile Scraper node, add your Apify OAuth2 credentials from https://apify.com/curiouscoder/linkedin-profile-scraper Optional - HubSpot: Enable the Upsert to HubSpot CRM node and add your credentials. Customize the customPropertiesValues array to match your fields. 3. Create your ICP rules document Create a Google Doc with this structure: COMPANY FIT (0-3 points): - Company size: 50-500 employees = 3 points - Industry: SaaS/Technology = 3 points - Geography: North America = 3 points TITLE FIT (0-3 points): - VP/C-level = 3 points - Director = 2 points - Manager = 1 point BUYING SIGNALS (0-2 points): - Recent funding = 2 points - New executive = 1 point TIMING (0-2 points): - Urgent need = 2 points Copy the URL and paste it in the ICP & Use Case node's documentURL parameter. 4. Test the workflow Activate the workflow and send a test webhook. Monitor the execution to verify enrichment sources return data, AI scoring completes, routing works correctly,