Templates / Score B2B leads with OpenAI from webhook or form submissions

Score B2B leads with OpenAI from webhook or form submissions

Ready for 3.0

by ben daamer ✓ · 87 views · created 2026-02-28 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls api.openai.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Config (Edit Fields (Set)): sets 1 field: SCORE_THRESHOLD
  2. Route by Source (If): checks a condition and branches into true / false
  3. Normalize Lead Data (Edit Fields (Set)): sets 5 fields: name, email, company…
  4. Sample Data (Edit Fields (Set)): sets 5 fields: name, email, company…
  5. AI Score Lead (HTTP Request): calls api.openai.com (POST)
  6. Parse Score (Code): runs custom JavaScript code
  7. Is Hot Lead? (If): checks a condition and branches into true / false
  8. Hot Lead (Edit Fields (Set)): sets 2 fields: status, action
  9. Nurture Lead (Edit Fields (Set)): sets 2 fields: status, action
  10. Merge: merges the data from its input branches

HTTP calls to: api.openai.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 (7)

From the author

How it works • Receives lead data (name, email, company, website) from a webhook or manual trigger • Normalizes the payload and sends it to OpenAI for scoring (1–10) • Routes leads to Hot (≥7, immediate follow-up) or Nurture (add to sequence) • Output…

Excerpt from ben daamer's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.