Templates / Qualify Meta Lead Ads with OpenAI and route hot leads to HubSpot and WhatsApp

Qualify Meta Lead Ads with OpenAI and route hot leads to HubSpot and WhatsApp

Ready for 3.0

by Jessy Mariau ✓ · 37 views · created 2026-09-04 · 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 AI workflow has 17 nodes and runs on Facebook Lead Ads events. Along the way it connects Facebook Lead Ads, OpenAI Chat Model, HubSpot and WhatsApp Business Cloud and 2 more.

How it runs

Trigger: On Facebook Lead Ads events.

  1. Lead Settings (Edit Fields (Set)): sets or maps fields
  2. Normalise Lead Fields (Code): runs custom JavaScript code
  3. Qualify Lead With AI (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
  4. Shape The Verdict (Code): runs custom JavaScript code
  5. Fall Back To Manual Review (Edit Fields (Set)): sets or maps fields
  6. Is It A Hot Lead? (If): checks a condition and branches into true / false
  7. Create Or Update Hot Contact In HubSpot (HubSpot): uses HubSpot
  8. Create Or Update Contact In HubSpot (HubSpot): uses HubSpot
  9. Does The Lead Have A Phone Number? (If): checks a condition and branches into true / false
  10. Was The Lead Left Unscored? (If): checks a condition and branches into true / false

…plus 4 more steps. See the full node list below.

Services it uses

Facebook Lead AdsOpenAI Chat ModelHubSpotWhatsApp Business CloudSlackGoogle Sheets

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 (11)

From the author

Quick overview I built this to score every Meta Lead Ads submission the minute it lands. OpenAI reads the answers and gives a fit score. HubSpot keeps the contact with that verdict. Slack tells your team which ones to call first. The WhatsApp reply ships…

Excerpt from Jessy Mariau'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.