Templates / Dynamic Hubspot lead routing with GPT-4 and Airtable sales team distribution

Dynamic Hubspot lead routing with GPT-4 and Airtable sales team distribution

Ready for 3.0

by MANISH KUMAR ✓ · 208 views · created 2025-10-24 · CRM, AI RAG

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 15 nodes and runs on HubSpot events. Along the way it connects HubSpot, Airtable, OpenAI Chat Model and Google Gemini Chat Model and 2 more.

How it runs

Trigger: On HubSpot events.

  1. Get a contact (HubSpot): get
  2. Code: runs custom JavaScript code
  3. Create a record (Airtable): create
  4. AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (TeamDatabase); memory: Simple Memory; output parser: Structured Output Parser
  5. Update record (Airtable): update
  6. Send a message (Slack): uses Slack
  7. Send a message (Gmail): uses Gmail
  8. Create or update a contact (HubSpot): uses HubSpot

Services it uses

HubSpotAirtableOpenAI Chat ModelGoogle Gemini Chat ModelSlackGmail

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 (13)

From the author

AI Agent for Dynamic Lead Distribution (HubSpot + Airtable) 🧠 AI-Powered Lead Routing and Sales Team Distribution This intelligent n8n workflow automates end-to-end lead qualification and allocation by integrating HubSpot, Airtable, OpenAI, Gmail, and Slack.…

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