AI Lead Triage and Slack Notification System - n8n Workflow

Use this powerful n8n workflow to automate lead scoring. Integrate OpenAI (GPT-4) to classify new contact form submissions as Hot/Warm/Cold and instantly notify your sales team via Slack. Get started with n8n templates today.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Sales & Marketing Teams: Seeking to instantly qualify and act on the most valuable inbound leads.
Technical Users: Needing ready-to-use n8n templates for integrating AI classification into business processes.
Operations Managers: Looking to centralize lead notifications and reduce manual triage time.
n8n Users: Who want a practical example of combining a Webhook n8n trigger with LLM logic and team communication tools.

Overview

Lead response time is critical for conversion. This high-efficiency n8n workflow solves the problem of delayed lead qualification by instantly triaging incoming contact form submissions using advanced Generative AI. By deploying this specific n8n workflow, any data received via a webhook (e.g., from a website contact form) is immediately routed to GPT-4. The AI analyzes the message text and assigns a precise 'Hot', 'Warm', or 'Cold' rating. This rating, along with the lead's contact details, is then immediately formatted and pushed to a designated Slack channel. This allows your sales team to prioritize 'Hot' leads and act within minutes, drastically improving responsiveness and conversion rates. This is an essential component among modern n8n templates for efficient revenue operations.

How it Works

This powerful n8n workflow executes a simple but effective four-step process every time a new lead submits a contact form:


  1. Form Submission Trigger: The process begins with the Receive Form Submission n8n node, which acts as the primary n8n trigger. It listens for an incoming POST request at the predefined path /form-submission from your website or landing page.

  2. Data Extraction and Cleaning: The payload is passed to the Extract Lead Details n8n node (a Set node). This step cleans the data, ensuring the workflow only proceeds with essential fields: the lead's name, email, and message content.

  3. AI Lead Qualification: The critical step happens in the Rate Lead Interest n8n node (an OpenAI/Langchain node). It uses the GPT-4 model, supplying the cleaned message text along with a strict prompt instructing the AI to respond only with the classification: "Hot", "Warm", or "Cold".

  4. Instant Slack Notification: Finally, the Send Lead Alert to Slack n8n node uses the data from both the Set node and the AI response. It applies conditional logic to prepend an appropriate emoji (🔥, 🌤, or ❄️) based on the AI rating. A fully formatted, concise lead summary is then instantly posted to your team's Slack channel, completing this automated n8n workflow.

Installation Guide

To set up this n8n workflow successfully, follow these steps after importing the JSON:


  1. Import the n8n Workflow: Copy the provided JSON data and paste it directly into your n8n canvas via the 'New' menu and selecting 'Import from JSON'.

  2. Set up the Webhook Trigger: The Receive Form Submission n8n trigger node is already configured to listen on /form-submission. Activate the workflow and use the generated test URL to link your contact form submission handler (or API request tool) to this endpoint.

  3. Configure OpenAI Credentials: Open the Rate Lead Interest n8n node. You must link your valid OpenAI credentials (configured to access GPT-4 models) to this node.

  4. Configure Slack Credentials: Open the Send Lead Alert to Slack n8n node. Provide your Slack API credentials and ensure the target channel (social in this template) exists or update the configuration to your desired channel name. Ensure the connection has permissions to post messages.

  5. Activate: Once all credentials are set and the n8n trigger is connected to your data source, activate the entire n8n workflow.

Node Details

Every n8n node in this automated pipeline plays a specific, crucial role:

Receive Form Submission (Webhook n8n node):
Function: Serves as the initial n8n trigger, waiting for an external HTTP POST request containing new lead data.
Key Configuration: Configured for the path /form-submission and HTTP Method POST.

Extract Lead Details (Set n8n node):
Function: Filters and maps incoming JSON data, keeping only the necessary name, email, and message fields, simplifying the payload for the AI.
Key Configuration: Assignments created for body.name, body.email, and body.message using expressions referencing the incoming webhook data.

Rate Lead Interest (OpenAI/Langchain n8n node):
Function: Executes the core AI logic, using GPT-4 to analyze the lead's message and classify their interest level.
Key Configuration: Uses the model gpt-4.1-2025-04-14 (or similar GPT-4 class model). The prompt forces a single-word output: "Hot", "Warm", or "Cold".

Send Lead Alert to Slack (Slack n8n node):
Function: Formats the final alert and sends it to the sales team channel.
Key Configuration: Message text uses complex JavaScript expressions (={{...}}) to dynamically select an emoji and compile all lead data (Name, Email, Message, and Triage score) into one readable alert. Targets the channel named social.

Related n8n Workflows

Free

Nodes: 5 Nodes
Updated: December 26 2025
View all
Created by

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host

Featured*