Templates / Qualify & route leads across channels with GPT-4o, Slack & CRM integration

Qualify & route leads across channels with GPT-4o, Slack & CRM integration

Ready for 3.0

by NodeAlchemy · 625 views · created 2025-10-16 · Lead Nurturing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 16 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, HubSpot, Salesforce and Slack and 2 more.

How it runs

Trigger: On Gmail events (plus 1 other trigger).

  1. Merge: merges the data from its input branches
  2. Workflow Configuration (Edit Fields (Set)): sets 8 fields: targetIndustries, minCompanySize, buyerRoles…
  3. Validate Input Data (Code): runs custom JavaScript code
  4. Check Validation (If): checks a condition and branches into true / false
  5. Extract Lead Data with AI (OpenAI): uses OpenAI
  6. Log Validation Failure (Edit Fields (Set)): sets 4 fields: status, timestamp, errorMessage…
  7. Parse AI Response (Code): runs custom JavaScript code
  8. Log Failed Leads (Google Sheets): append or update
  9. Calculate Lead Score (Code): runs custom JavaScript code
  10. Route by Territory (Switch): routes items into 2 branches

…plus 4 more steps. See the full node list below.

Services it uses

GmailHubSpotSalesforceSlackGoogle SheetsOpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Email Trigger).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

From the author

This n8n template demonstrates how to use AI to capture, qualify, and route inbound leads automatically from email or web forms. It extracts key business information using AI, scores the lead based on your ideal customer profile, creates CRM records, notifies…

Excerpt from NodeAlchemy's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.