Score and route Facebook Marketplace leads with OpenAI, Supabase, and Slack
Ready for 3.0Ready 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 11 nodes and runs on Facebook events. Along the way it connects Facebook, OpenAI Chat Model, Supabase and Slack.
How it runs
Trigger: On Facebook events.
- Extract Inquiry Details (AI Agent): runs an AI agent, with model: GPT-4o-mini
- Parse AI Response (JSON Safe) (Code): runs custom JavaScript code
- Store Inquiry (Supabase) (Supabase): uses Supabase
- Compute Lead Score (Code): runs custom JavaScript code
- Check: Hot Lead (Score ≥ 5) (If): checks a condition and branches into true / false
- Slack: uses Slack
- Check: Warm Lead (Score ≥ 3) (If): checks a condition and branches into true / false
- Slack: uses Slack
- Slack: uses Slack
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 (7)
- Facebook Trigger
n8n-nodes-base.facebookTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Supabase
n8n-nodes-base.supabase - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow captures new Facebook Marketplace page messages, uses OpenAI (GPT-4o-mini) to extract structured inquiry details, stores them in Supabase, scores the lead based on intent, and posts hot, warm, or cold lead alerts to different…