{"product_id":"whatsapp-lead-replies-with-openai-supabase-slack-n8n","title":"WhatsApp Lead Replies with OpenAI, Supabase \u0026 Slack (n8n)","description":"\u003ch3\u003eTurn every WhatsApp message into a qualified sales conversation—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives WhatsApp Cloud API inbound messages, uses OpenAI to generate short, grounded sales replies, logs and scores leads in \u003cstrong\u003eSupabase\u003c\/strong\u003e, and alerts your team in \u003cstrong\u003eSlack\u003c\/strong\u003e when a lead is \u003cstrong\u003eHot\u003c\/strong\u003e or a \u003cstrong\u003ehuman\u003c\/strong\u003e is needed.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives WhatsApp Cloud API webhooks\u003c\/strong\u003e for inbound messages and handles Meta’s one-time webhook verification challenge.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes incoming payloads\u003c\/strong\u003e into clean customer message records, while ignoring non-message status callbacks.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDeduplicates and manages CRM context\u003c\/strong\u003e by checking Supabase for the WhatsApp message ID, then creating or retrieving the customer by phone number and pulling recent conversation history.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates an AI reply with OpenAI\u003c\/strong\u003e using the customer message, recent history, and business info to classify intent and draft a short response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eScores lead temperature (Cold\/Warm\/Hot)\u003c\/strong\u003e with rule-based lead scoring and prepares the final WhatsApp response payload.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the reply on WhatsApp\u003c\/strong\u003e, saves the conversation in Supabase, updates customer CRM fields, and posts a \u003cstrong\u003eSlack alert\u003c\/strong\u003e when the lead is Hot or the agent flags that a human should take over.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eResponding to inbound WhatsApp inquiries for SaaS demos with consistent, intent-aware follow-ups.\u003c\/li\u003e\n  \u003cli\u003eAutomatically qualifying leads and notifying sales when someone is ready for outreach (“Hot” lead).\u003c\/li\u003e\n  \u003cli\u003eReducing manual support load by escalating only when the conversation requires a human.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWhatsApp Cloud API\u003c\/strong\u003e: webhook handling and response delivery.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI\u003c\/strong\u003e: agent classification and drafting short sales replies.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSupabase\u003c\/strong\u003e: customers, conversation storage, deduplication by WhatsApp message ID, and CRM updates.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack\u003c\/strong\u003e: team alerts for Hot leads and human-needed flags.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\u003c\/strong\u003e: \u003cem\u003ewebhook\u003c\/em\u003e, \u003cem\u003eif\u003c\/em\u003e, \u003cem\u003eset\u003c\/em\u003e, \u003cem\u003ecode\u003c\/em\u003e, \u003cem\u003eslack\u003c\/em\u003e, \u003cem\u003esupabase\u003c\/em\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46223929802931,"sku":"N8N-20928","price":20.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/bYJ36WMQZ10Aa_CGc_BjN_EpyOz8Aq.png?v=1791968859","url":"https:\/\/buyflowscripts.com\/products\/whatsapp-lead-replies-with-openai-supabase-slack-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}