Templates / Qualify and route inbound leads with OpenAI, Slack, HubSpot, and Google Sheets

Qualify and route inbound leads with OpenAI, Slack, HubSpot, and Google Sheets

Ready for 3.0

by Charles ✓ · 9 views · created 2026-08-13 · Lead Generation, 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-10-19.

What this workflow does

This AI workflow has 19 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects OpenAI Chat Model, Slack, Gmail and HubSpot and 1 more.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Set ICP and Scoring Rules (Edit Fields (Set)): sets or maps fields
  2. Normalize Lead Fields (Edit Fields (Set)): sets or maps fields
  3. Validate Email and Detect Company Domain (Code): runs custom JavaScript code
  4. Is It a Valid Business Email? (If): checks a condition and branches into true / false
  5. Fetch Lead Website (HTTP Request): calls an HTTP API
  6. Mark Lead as Unqualified (Code): runs custom JavaScript code
  7. Extract Buying Signals from Website (Code): runs custom JavaScript code
  8. Log Every Lead to Google Sheets (Google Sheets): uses Google Sheets
  9. Score Lead Against ICP with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Lead Score
  10. Respond to Form (Respond to Webhook): sends the response back to the webhook caller

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

Services it uses

OpenAI Chat ModelSlackGmailHubSpotGoogle Sheets

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.

Nodes used (14)

From the author

Quick overview This workflow receives inbound lead submissions via a webhook, validates business emails, enriches leads by scraping their website, and uses OpenAI to score ICP fit. It then routes hot leads to Slack, Gmail, and HubSpot, logs all leads to…

Excerpt from Charles'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.