Templates / Score and route website leads with OpenAI and HubSpot

Score and route website leads with OpenAI and HubSpot

Ready for 3.0

by Soso Pkhakadze · 0 views · created 2026-11-05 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.hubapi.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Config (Edit Fields (Set)): sets 5 fields: ai_model, openai_base_url, owner_enterprise…
  2. Check the lead (Code): runs custom JavaScript code
  3. Already in HubSpot? (HTTP Request): calls api.hubapi.com (POST)
  4. AI: read the message (HTTP Request): calls an HTTP API (POST)
  5. Score and route (Code): runs custom JavaScript code
  6. Rejected? (If): checks a condition and branches into true / false
  7. Reply: rejected (Respond to Webhook): sends the response back to the webhook caller
  8. Create or update contact (HTTP Request): calls api.hubapi.com (POST)
  9. Sales lead (A or B)? (If): checks a condition and branches into true / false
  10. Task for the owner (HTTP Request): calls api.hubapi.com (POST)

…plus 1 more step. See the full node list below.

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

From the author

Quick overview This workflow receives website form leads via a webhook, uses OpenAI to classify intent and urgency, scores and routes each lead with custom rules, and then creates or updates the contact in HubSpot while optionally creating a follow-up task…

Excerpt from Soso Pkhakadze'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.