đź’¬ Qualify & route leads across channels with GPT-4o, Slack & CRM integration

⚡ 275 views · 💬 Lead Nurturing & AI Sales Agents

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

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 your team on Slack, and logs all activity—including failures—to Google Sheets.

Use cases include: automating sales inboxes, qualifying form leads for agencies or SaaS products, routing high-fit prospects to the right territory owner, and keeping your sales and ops teams aligned without manual data entry.


Good to know


How it works

  1. Triggers:

    • A Gmail trigger polls for new inbound emails.
    • A Webhook node receives submissions from any online form. Both sources merge into a single pipeline.
  2. Validation: Incoming data is checked for required fields (email or text). Invalid entries are routed to the Dead Letter Queue (DLQ) for review.

  3. AI Extraction: The OpenAI node extracts structured fields like company name, size, industry, role, region, problem statement, and budget signals from free-form text.

  4. Parsing & Scoring: The AI output is parsed, then a code node calculates a 0–100 lead score based on transparent criteria—industry, size, role, problem clarity, and budget mentions. It also assigns a lead tier (Hot, Warm, Cold, Unqualified).

  5. CRM Routing: Depending on your configuration, the workflow creates a Salesforce lead (default) or can be easily adapted for HubSpot. Territory or CRM owner routing can be extended here.

  6. Slack Notification: A rich Slack message summarizes the lead score and reasoning and includes a “Create intro email” button for quick action.

  7. Logging: All successful leads are logged to Google Sheets for reporting. Any failed or invalid leads are logged separately to the DLQ tab for auditing.


How to use


Requirements


Customizing this workflow

This template can be expanded in many ways:


đź”— Nodes Used

Google Sheets, Slack, Webhook, HubSpot, Salesforce, Gmail Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup