π£ Qualify and route inbound leads with GPT-5, Google Sheets, Gmail, and Slack
β‘ 51 views Β· π£ Lead Generation & Enrichment
Description
Quick overview
This workflow captures leads via an n8n hosted form, validates and de-duplicates them in Google Sheets, enriches company details with Clearbit autocomplete, qualifies the lead with OpenAI, then logs results and routes follow-ups through Gmail and Slack based on Hot/Warm/Cold category.
How it works
- Receives a new submission from an n8n Form Trigger lead-capture form.
- Cleans the submitted fields, validates the email format, and flags free/personal email domains.
- Looks up the email in Google Sheets to stop processing duplicate leads.
- Calls Clearbitβs autocomplete API to guess the company domain and merges the enrichment into the lead.
- Sends the enriched lead details to OpenAI (GPT-5-mini via LangChain) to generate a structured lead score, category, summary, owner, and follow-up timing.
- Appends the lead and AI qualification output to Google Sheets for tracking.
- Routes by category: Hot sends a Slack alert plus a Gmail alert and auto-reply, Warm sends an auto-reply then waits 1 day before a nurture email, and Cold logs only without outreach.
Setup
- Connect your OpenAI API credentials and select the chat model used by the qualification step (gpt-5-mini by default).
- Connect Google Sheets credentials, set the spreadsheet ID, and choose the sheet used for the duplicate lookup and the sheet used to append all leads.
- Connect Gmail credentials and replace the internal alert recipient (your-email@example.com) with your teamβs email address.
- Connect Slack credentials and select the channel where Hot lead alerts should be posted.
- Publish the n8n form and share or embed the generated form URL (path: /lead-capture) wherever you capture leads.
Requirements
- REQUIREMENTS
- β‘ n8n Cloud or self-hosted n8n
- β‘ OpenAI API credentials
- β‘ Google Sheets credentials
- β‘ Gmail credentials
- β‘ Slack credentials
- β‘ A Google Sheet for storing qualified leads
- β‘ A webhook/form connected to the Lead Capture Webhook
Customization
- CUSTOMIZATION
- β’ Adjust the AI qualification prompt to match your sales criteria.
- β’ Change the Hot/Warm/Cold score thresholds.
- β’ Customize the company enrichment and research fields.
- β’ Add or remove fields stored in Google Sheets.
- β’ Customize Slack and email alert messages.
- β’ Modify the follow-up message and timing.
- β’ Change the routing logic based on lead score or category.
- β’ Add your own CRM or database instead of Google Sheets.
π Nodes Used
Google Sheets, HTTP Request, Slack, Gmail, AI Agent, OpenAI Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File