Qualify Meta Lead Ads with OpenAI and route hot leads to HubSpot and WhatsApp
Ready for 3.0What 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.
- Lead Settings (Edit Fields (Set)): sets or maps fields
- Normalise Lead Fields (Code): runs custom JavaScript code
- Qualify Lead With AI (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
- Shape The Verdict (Code): runs custom JavaScript code
- Fall Back To Manual Review (Edit Fields (Set)): sets or maps fields
- Is It A Hot Lead? (If): checks a condition and branches into true / false
- Create Or Update Hot Contact In HubSpot (HubSpot): uses HubSpot
- Create Or Update Contact In HubSpot (HubSpot): uses HubSpot
- Does The Lead Have A Phone Number? (If): checks a condition and branches into true / false
- 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
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)
- Facebook Lead Ads Trigger
n8n-nodes-base.facebookLeadAdsTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - HubSpot
n8n-nodes-base.hubspot - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp
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…