Score and route inbound B2B leads with Groq AI
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs when someone submits an n8n form (“Tell us about your project”). Along the way it connects Google Sheets, Groq Chat Model, Slack and Gmail.
How it runs
Trigger: When someone submits an n8n form (“Tell us about your project”).
- Set Workflow Variables (Edit Fields (Set)): sets 4 fields: googleSheetId, slackSalesChannel, companyName…
- Normalize Lead (Edit Fields (Set)): sets 6 fields: name, company, email…
- Is Valid Lead? (If): checks a condition and branches into true / false
- Find Existing Lead (Google Sheets): read
- Log Invalid Submission (Google Sheets): append
- Is New Lead? (If): checks a condition and branches into true / false
- AI Lead Qualification (Information Extractor): extracts structured fields from text with AI, with model: Groq Chat Model
- Update Returning Lead (Google Sheets): append or update
- Build Lead Record (Edit Fields (Set)): sets 12 fields: received_at, name, company…
- Alert Team: AI Failed (Slack): uses Slack
…plus 6 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
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 (10)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - Slack
n8n-nodes-base.slack - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow receives inbound B2B leads via a webhook, uses Groq’s chat model to score and categorize them (hot/warm/cold) and draft a first reply, then routes the lead to a category-specific branch and returns the result as JSON. How it works…