Dynamic Hubspot lead routing with GPT-4 and Airtable sales team distribution
Ready for 3.0Ready 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.
- Get a contact (HubSpot): get
- Code: runs custom JavaScript code
- Create a record (Airtable): create
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (TeamDatabase); memory: Simple Memory; output parser: Structured Output Parser
- Update record (Airtable): update
- Send a message (Slack): uses Slack
- Send a message (Gmail): uses Gmail
- Create or update a contact (HubSpot): uses HubSpot
Services it uses
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)
- HubSpot Trigger
n8n-nodes-base.hubspotTrigger - HubSpot
n8n-nodes-base.hubspot - Code
n8n-nodes-base.code - Airtable
n8n-nodes-base.airtable - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Airtable Tool
n8n-nodes-base.airtableTool - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp
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.…