AI Lead Qualification via Webhook — Complete n8n Workflow

I built a reusable n8n workflow for automatically qualifying inbound business leads with AI.

The workflow follows this structure:

Webhook
→ Normalize Lead
→ AI Qualification
→ Parse & Validate Result
→ Return Structured JSON

What it does

A lead is received through an n8n Webhook with fields such as:

  • Name
  • Email
  • Company
  • Role
  • Budget
  • Business need
  • Lead source
  • Message

The workflow then sends the lead information to an OpenAI-compatible AI endpoint.

The AI evaluates the lead based on:

  • Budget
  • Authority
  • Business fit
  • Urgency
  • Information/detail provided

The result is returned as structured JSON containing:

  • Score: 0–100
  • Tier: HOT / WARM / COLD
  • Qualified: true/false
  • Recommended action
  • Reasons

Example workflow

New Lead
→ AI Qualification
→ Score
→ HOT / WARM / COLD
→ Recommended Action

Example routing logic:

HOT → Sales team follow-up
WARM → Nurture sequence
COLD → Longer-term follow-up
Invalid AI output → Manual review

Expected webhook payload

{
“name”: “Jane Doe”,
“email”: “jane@example.com”,
“company”: “Example Ltd”,
“role”: “Marketing Director”,
“budget”: “$5,000”,
“need”: “Lead generation automation”,
“source”: “Website”,
“message”: “We want to automate our inbound lead qualification.”
}

Example output

{
“score”: 82,
“tier”: “HOT”,
“qualified”: true,
“recommended_action”: “sales_follow_up”,
“reasons”: [
“Clear business need”,
“Relevant decision-maker”,
“Defined budget”
]
}

Setup

  1. Import the JSON workflow into n8n.
  2. Open the “AI Qualify Lead” HTTP Request node.
  3. Add your own Groq API key.
  4. Replace the placeholder:
    YOUR_GROQ_API_KEY
  5. Configure the production webhook URL.
  6. Send a test POST request.
  7. Review the structured qualification response.
  8. Connect the result to your CRM, Slack, WhatsApp, email or another business workflow.

The workflow intentionally does not contain real credentials.

JSON template:
[Download the workflow JSON]

This is designed as a starting point, so the scoring criteria and AI prompt can be customized for different industries and ICPs.

What lead qualification criteria are you using in your n8n workflows?