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

⚑ 149 views · 🀝 CRM & Sales Operations

Description

AI Agent for Dynamic Lead Distribution (HubSpot + Airtable)

Manish Kumar

🧠 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.

The system ensures that every new lead is instantly analyzed, scored, and routed to the best-fit sales representative β€” all powered by AI logic, sir.


πŸ’‘ Key Advantages
⚑ Real-Time Lead Routing
Automatically assigns new leads from HubSpot to the most relevant sales rep based on region, capacity, and expertise.

🧠 AI Qualification Engine
An OpenAI-powered Agent evaluates the lead’s industry, region, and needs to generate a persona summary and routing rationale.

πŸ“Š Centralized Tracking in Airtable
Every lead is logged and updated in Airtable with AI insights, rep details, and allocation status for full transparency.

πŸ’¬ Instant Notifications
Slack and Gmail integrations alert the assigned rep immediately with full lead details and AI-generated notes.

πŸ” Seamless CRM Sync
Updates the original HubSpot record with lead persona, routing info, and timeline notes for audit-ready history, sir.


βš™οΈ How It Works

  1. HubSpot Trigger – Captures a new lead as soon as it’s created in HubSpot.
  2. Fetch Contact Data – Retrieves all relevant fields like name, company, and industry.
  3. Clean & Format Data – A Code node standardizes and structures the data for consistency.
  4. Airtable Record Creation – Logs the lead data into the β€œLeads” table for centralized tracking.
  5. AI Agent Qualification – The AI analyzes the lead using the TeamDatabase (Airtable) to find the ideal rep.
  6. Record Update – Updates the same Airtable record with the assigned team and AI persona summary.
  7. Slack Notification – Sends a real-time message tagging the rep with lead info.
  8. Gmail Notification – Sends a personalized handoff email with context and follow-up actions.
  9. HubSpot Sync – Updates the original contact in HubSpot with the assignment details and AI rationale, sir.

πŸ› οΈ Setup Steps


πŸ” Credentials Required


πŸ‘€ Ideal For


πŸ’¬ Bonus Tip
You can easily extend this workflow by adding lead scoring logic, language translation for follow-ups, or Salesforce integration.
The entire system is modular β€” perfect for scaling across global sales teams, sir.

πŸ”— Nodes Used

Airtable, Slack, HubSpot, HubSpot Trigger, Gmail, AI Agent

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup