Templates / Score and route Facebook Marketplace leads with OpenAI, Supabase, and Slack

Score and route Facebook Marketplace leads with OpenAI, Supabase, and Slack

Ready for 3.0

by WeblineIndia ✓ · 77 views · created 2026-09-02 · 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 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.

  1. Extract Inquiry Details (AI Agent): runs an AI agent, with model: GPT-4o-mini
  2. Parse AI Response (JSON Safe) (Code): runs custom JavaScript code
  3. Store Inquiry (Supabase) (Supabase): uses Supabase
  4. Compute Lead Score (Code): runs custom JavaScript code
  5. Check: Hot Lead (Score ≥ 5) (If): checks a condition and branches into true / false
  6. Slack: uses Slack
  7. Check: Warm Lead (Score ≥ 3) (If): checks a condition and branches into true / false
  8. Slack: uses Slack
  9. Slack: uses Slack

Services it uses

FacebookOpenAI Chat ModelSupabaseSlack

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

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…

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