{"product_id":"n8n-facebook-marketplace-lead-scoring-to-slack-w-openai-supabase","title":"n8n Facebook Marketplace Lead Scoring to Slack w\/ OpenAI \u0026 Supabase","description":"\u003ch3\u003eTurn Facebook Marketplace messages into scored leads—automatically alert your team on Slack using OpenAI + Supabase\u003c\/h3\u003e\n\u003cp\u003e\u003cb\u003en8n Facebook Marketplace Lead Scoring to Slack w\/ OpenAI \u0026amp; Supabase\u003c\/b\u003e is an automation workflow that captures new Facebook Page Marketplace inquiries, uses \u003cb\u003eOpenAI (GPT-4o-mini)\u003c\/b\u003e to extract structured intent and product details, stores them in \u003cb\u003eSupabase\u003c\/b\u003e, scores the lead, and posts \u003cb\u003ehot\/warm\/cold\u003c\/b\u003e alerts to different \u003cb\u003eSlack channels\u003c\/b\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eListens for new Facebook Marketplace page messages\u003c\/b\u003e via a Facebook webhook subscription triggered when a relevant Page message is received.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eAnalyzes the message with OpenAI\u003c\/b\u003e (GPT-4o-mini) to classify inquiry intent, identify the product mentioned, and generate a short summary in \u003cb\u003estrict JSON\u003c\/b\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eSafely parses AI output\u003c\/b\u003e into JSON, falling back to \u003cb\u003e“unknown”\u003c\/b\u003e fields if parsing fails.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eTracks structured inquiries in Supabase\u003c\/b\u003e by inserting fields like \u003ccode\u003eintent\u003c\/code\u003e, \u003ccode\u003eproduct_id\u003c\/code\u003e, \u003ccode\u003eproduct_mentioned\u003c\/code\u003e, and \u003ccode\u003esummary\u003c\/code\u003e into the \u003ccode\u003emarketplace_inquiries\u003c\/code\u003e table.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eComputes a lead score\u003c\/b\u003e from the extracted intent and determines whether it’s \u003cb\u003ehot\u003c\/b\u003e (score ≥ 5) or not.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eRoutes alerts by priority\u003c\/b\u003e:\n    \u003cul\u003e\n      \u003cli\u003eHot leads (score ≥ 5) posted to the “hot” Slack channel\u003c\/li\u003e\n      \u003cli\u003eWarm leads (score ≥ 3) posted to the “warm” Slack channel\u003c\/li\u003e\n      \u003cli\u003eCold leads posted to the corresponding “cold” channel\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eAuto-triage incoming \u003cb\u003eFacebook Marketplace\u003c\/b\u003e questions so sales reps act first on high-intent buyers.\u003c\/li\u003e\n  \u003cli\u003eCentralize inquiry history in \u003cb\u003eSupabase\u003c\/b\u003e for reporting and follow-up workflows in n8n.\u003c\/li\u003e\n  \u003cli\u003eReduce missed messages by sending formatted lead alerts directly to \u003cb\u003eSlack\u003c\/b\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eFacebook webhook subscription\u003c\/b\u003e trigger for Page messages related to Marketplace activity\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eOpenAI (GPT-4o-mini)\u003c\/b\u003e for intent classification + structured JSON extraction\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eSupabase\u003c\/b\u003e insert into \u003ccode\u003emarketplace_inquiries\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eSlack\u003c\/b\u003e notifications to hot\/warm\/cold channel IDs you configure\u003c\/li\u003e\n  \u003cli\u003eWorkflow logic uses \u003cb\u003eif\u003c\/b\u003e, \u003cb\u003ecode\u003c\/b\u003e, \u003cb\u003eslack\u003c\/b\u003e, \u003cb\u003esupabase\u003c\/b\u003e, \u003cb\u003esticky note\u003c\/b\u003e, and \u003cb\u003en8nn8n-nodes-langchainagent\u003c\/b\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45938173214899,"sku":"N8N-19046","price":19.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/fMyT3dD4GOwxZA6wEJk6M_V90GRTTZ.png?v=1788339895","url":"https:\/\/buyflowscripts.com\/products\/n8n-facebook-marketplace-lead-scoring-to-slack-w-openai-supabase","provider":"N8N Commerce","version":"1.0","type":"link"}