Score and route BANT leads with Groq, Slack and email
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.groq.com and slack.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Prepare Lead Data (Code): runs custom JavaScript code
- Groq AI - BANT Scorer (HTTP Request): calls api.groq.com (POST)
- Parse AI Score (Code): runs custom JavaScript code
- Route by Tier (Switch): routes items into 3 branches
- Slack - Alert Sales Rep (HTTP Request): calls slack.com (POST)
- Email - Nurture Sequence (Send Email): sends an email over SMTP
- Email - Drip Campaign Start (Send Email): sends an email over SMTP
- Respond to Webhook: sends the response back to the webhook caller
HTTP calls to: api.groq.com, slack.com
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 (6)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch - Send Email
n8n-nodes-base.emailSend - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
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…