Score and qualify B2B leads via webhook with Groq Chat Completions
Ready for 3.0What this workflow does
This workflow has 5 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 over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Prepare AI Prompt (Code): runs custom JavaScript code
- Post to Groq API (HTTP Request): calls api.groq.com (POST)
- Parse and Qualify Leads (Code): runs custom JavaScript code
- Return Lead Qualification (Respond to Webhook): sends the response back to the webhook caller
HTTP calls to: api.groq.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 (4)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives lead details via a webhook and sends them to Groq’s OpenAI-compatible Chat Completions API to score and qualify the lead, then returns a structured JSON response with score, tier, recommended next action, and reasons. How…