Skip to main content

Score and route BANT leads with Groq, Slack and email

Workflow preview

Workflow preview
100%
Score and route BANT leads with Groq, Slack and email preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow receives lead form submissions via a webhook, scores each lead with Groq’s Llama model using BANT criteria, and routes the lead to Slack or an SMTP email path based on ...

Best for

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

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.switch, n8n-nodes-base.emailsend, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Score and route BANT leads with Groq, Slack and email
Workflow name
Score and route BANT leads with Groq, Slack and email

Quick Overview

This workflow receives lead form submissions via a webhook, scores each lead with Groq’s Llama model using BANT criteria, and routes the lead to Slack or an SMTP email path based on the HOT/MID/COLD tier.

How it works

  1. Receives a POST request from a lead form via an n8n webhook.
  2. Normalizes the incoming fields (name, email, company, budget, authority, need, timing) into a consistent lead object.
  3. Sends the lead details to the Groq Chat Completions API (Llama 3.3 70B) to return a BANT-based tier (HOT/MID/COLD) with a short reason and confidence score.
  4. Parses the AI response into structured fields and attaches the score metadata to the lead.
  5. If the lead is HOT, posts a formatted alert message to Slack in the configured channel.
  6. If the lead is MID or COLD, sends an email to the lead via SMTP using the corresponding subject line.
  7. Returns a JSON response to the webhook caller with the lead’s score and a success message.

Setup

  1. Configure the incoming lead source to POST to this workflow’s webhook URL and include the expected fields (name, email, company, budget, authority, need, timing).
  2. Add an HTTP Header Auth credential for Groq and set the Authorization header to your Groq API key for the chat completions request.
  3. Add an HTTP Header Auth credential for Slack and set it to a Slack bot token with permission to call chat.postMessage, then update the target channel (default #sales) if needed.
  4. Add SMTP credentials for sending email and replace the fromEmail addresses (e.g. [email protected], [email protected]) with valid sender addresses for your mail server.

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 - Webhook - Lead Form

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

Block 2 - Prepare Lead Data

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

Block 3 - Groq AI - BANT Scorer

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Parse AI Score

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

Block 5 - Route by Tier

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3

Block 6 - Slack - Alert Sales Rep

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Email - Nurture Sequence

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

Block 8 - Email - Drip Campaign Start

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

Block 9 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

Block 13 - Sticky Note3

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

3. Summary Table

Workflow Score and route BANT leads with Groq, Slack and email
Complexity intermediate
Nodes 13
Categories Lead Generation, AI Summarization
Author Salman Sikandar
Published 13 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16326/16326.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 Score and route BANT leads with Groq, Slack and email do?

Quick Overview This workflow receives lead form submissions via a webhook, scores each lead with Groq’s Llama model using BANT criteria, and routes the lead to Slack or an SMTP email path based on ...

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.