{"product_id":"n8n-whatsapp-lead-qualification-with-wafly-openai-gpt-4o","title":"n8n WhatsApp Lead Qualification with Wafly + OpenAI GPT-4o","description":"\u003ch3\u003eQualify WhatsApp leads automatically with Wafly + OpenAI (GPT-4o) in n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow listens to inbound WhatsApp messages via Wafly, classifies each lead as \u003cstrong\u003ehot \/ warm \/ cold\u003c\/strong\u003e using OpenAI with per-phone conversation memory, replies instantly, and forwards only \u003cstrong\u003ehot leads\u003c\/strong\u003e to your configured sales phone number.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives WhatsApp messages\u003c\/strong\u003e through an n8n webhook configured for \u003cstrong\u003eWafly\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFilters noise and ignores non-leads\u003c\/strong\u003e by skipping echoes (messages sent \u003cem\u003efromMe\u003c\/em\u003e), group chats, non-\u003cstrong\u003eReceivedCallback\u003c\/strong\u003e events, and empty messages.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQualifies the lead with OpenAI\u003c\/strong\u003e (GPT-4o-mini) by sending the message text and using \u003cstrong\u003econversation memory keyed by the sender’s phone number\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses the model output defensively\u003c\/strong\u003e: if the returned JSON is malformed, it safely falls back to a \u003cstrong\u003ewarm\u003c\/strong\u003e classification and a neutral reply.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends a WhatsApp reply back to the sender\u003c\/strong\u003e using Wafly.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEscalates only when it’s “hot”\u003c\/strong\u003e: if the lead is marked hot, it sends a WhatsApp handoff message to the configured \u003cstrong\u003esalesPhone\u003c\/strong\u003e with lead details.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eTurn inbound WhatsApp inquiries into a prioritized sales pipeline (hot leads only get handoff).\u003c\/li\u003e\n  \u003cli\u003eAutomate first-response qualification with budget\/deadline flags and a concise reply.\u003c\/li\u003e\n  \u003cli\u003eReduce manual screening by maintaining per-lead context using phone-based memory.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eDesigned for \u003cstrong\u003eself-hosted n8n\u003c\/strong\u003e (does not run on n8n Cloud).\u003c\/li\u003e\n  \u003cli\u003eUses the community node \u003cstrong\u003en8n-nodes-wafly\u003c\/strong\u003e for WhatsApp messaging.\u003c\/li\u003e\n  \u003cli\u003eIntegrates \u003cstrong\u003eOpenAI Chat Model\u003c\/strong\u003e (GPT-4o-mini) for lead classification.\u003c\/li\u003e\n  \u003cli\u003eWorkflow includes nodes\/actions such as \u003cstrong\u003ewebhook\u003c\/strong\u003e, \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, and \u003cstrong\u003eno op\u003c\/strong\u003e to implement filtering, JSON handling, and routing.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSEO keywords:\u003c\/strong\u003e n8n WhatsApp workflow, Wafly lead qualification, OpenAI GPT-4o lead scoring, WhatsApp automation, hot warm cold routing.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46123249139891,"sku":"N8N-20082","price":29.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/MLsUXLgJ4hB2iLEOLG0r8_bWrJR45I.png?v=1790673925","url":"https:\/\/buyflowscripts.com\/products\/n8n-whatsapp-lead-qualification-with-wafly-openai-gpt-4o","provider":"N8N Commerce","version":"1.0","type":"link"}