Skip to main content

AI-driven lead classification & routing with HighLevel and Azure GPT-4o-mini

Workflow preview

Workflow preview
100%
AI-driven lead classification & routing with HighLevel and Azure GPT-4o-mini preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description: Streamline your lead management process with this AI driven n8n automation template. The workflow fetches opportunities from HighLevel (GHL), enriches them with contact details, and us...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.if, n8n-nodes-base.emailsend, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.highlevel, @n8n/n8n-nodes-langchain.lmchatazureopenai, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rahul Joshi.

Original n8n.io source

1.1 Workflow description

Title
AI-driven lead classification & routing with HighLevel and Azure GPT-4o-mini
Workflow name
AI-driven lead classification & routing with HighLevel and Azure GPT-4o-mini

Description:

Streamline your lead management process with this AI-driven n8n automation template. The workflow fetches opportunities from HighLevel (GHL), enriches them with contact details, and uses Azure OpenAI GPT-4o-mini to analyze each lead’s intent (e.g., Demo Request, Support Query, or Partnership Inquiry). It then automatically routes the lead to the right internal team via email, ensuring instant follow-up and zero delays in response time. Perfect for sales, support, and partnership teams who want to save time on manual triage and ensure every inquiry reaches the correct department within seconds.

✅ What This Template Does (Step-by-Step)

⚡ Manual or Scheduled Trigger Run the workflow manually for on-demand classification or schedule it to execute periodically.

📥 Fetch Opportunities from HighLevel Retrieves all opportunities from your GHL CRM, serving as the starting dataset for AI-powered intent detection.

👤 Fetch Detailed Contact Information Enriches each opportunity with full contact details such as name, email, and message notes.

🧠 AI-Powered Lead Classification Uses Azure OpenAI GPT-4o-mini via the LangChain AI Agent to analyze the lead’s message and determine the intent. Possible outputs include:

  • 🎯 Demo Request
  • 🛠️ Support Query
  • 🤝 Partnership Inquiry
  • 🧾 Post-Processing of AI Response JavaScript logic parses and formats the AI’s output into actionable data for conditional routing.

🔀 Intelligent Routing to Relevant Teams

📧 Instant Team Notifications Sends neatly formatted emails from a centralized sender ([email protected]) to ensure smooth handoff and accountability.

🧠 Key Features

🤖 AI intent classification using Azure OpenAI GPT-4o-mini 🔀 Automated lead routing via email 📋 Structured data enrichment from HighLevel ⚙️ Smart conditional logic for 3 lead categories 📩 End-to-end automation from CRM intake to response

💼 Use Cases

📞 Automatically route demo requests to the sales team 🛠️ Send support-related queries directly to helpdesk 🤝 Forward partnership inquiries to business development 💡 Reduce response delays and manual triage errors

📦 Required Integrations

HighLevel (GHL) – for opportunity and contact data Azure OpenAI – for AI-driven lead classification SMTP / Gmail – for team routing email notifications

🎯 Why Use This Template?

✅ Automates manual lead sorting and tagging ✅ Ensures every inquiry reaches the right team ✅ Increases response speed and lead conversion ✅ Scalable AI logic adaptable to any organization

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Sticky Note - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note - Data Collection

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note - AI Analysis

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note - Routing Logic

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note - Processing

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Check: Demo Request?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 8 - Route to Demo Team

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 1

Block 9 - Check: Support Query?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 10 - Route to Support Team

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 1

Block 11 - Check: Partnership Inquiry?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 12 - Route to Partnership Team

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 1

Block 13 - AI Lead Classifier Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 14 - Fetch All Opportunities

Type / Role
n8n-nodes-base.highLevel - highLevel
Config choices
Version 2

Block 15 - Azure OpenAI GPT-4o-mini

Type / Role
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - lmChatAzureOpenAi
Config choices
Version 1

Block 16 - Process AI Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Fetch Contact Details

Type / Role
n8n-nodes-base.highLevel - highLevel
Config choices
Version 2

3. Summary Table

Workflow AI-driven lead classification & routing with HighLevel and Azure GPT-4o-mini
Complexity advanced
Nodes 17
Categories Lead Generation, AI Summarization
Author Rahul Joshi
Published 25 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10150/10150.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI-driven lead classification & routing with HighLevel and Azure GPT-4o-mini do?

Description: Streamline your lead management process with this AI driven n8n automation template. The workflow fetches opportunities from HighLevel (GHL), enriches them with contact details, and us...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.