{"product_id":"n8n-whatsapp-waha-bilingual-ai-chatbot-with-gpt-4o-mini-memory","title":"n8n WhatsApp WAHA Bilingual AI Chatbot with GPT-4o-mini Memory","description":"\u003ch3\u003eTurn WhatsApp messages into intelligent, bilingual replies—with per-contact memory and smart human handoff\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow connects to \u003cstrong\u003eWAHA\u003c\/strong\u003e, listens for incoming WhatsApp messages, and uses an \u003cstrong\u003eOpenAI-powered assistant (GPT-4o-mini)\u003c\/strong\u003e to respond in the same language as the customer—\u003cstrong\u003eArabic or English\u003c\/strong\u003e. If a request is sensitive or unknown, it automatically \u003cstrong\u003eescalates to a human agent\u003c\/strong\u003e with full conversation context.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives WhatsApp events via webhook:\u003c\/strong\u003e WAHA sends \u003cem\u003emessage\u003c\/em\u003e events to the workflow’s POST webhook endpoint.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes incoming data:\u003c\/strong\u003e The workflow standardizes fields like \u003cem\u003echat ID\u003c\/em\u003e, \u003cem\u003esender name\u003c\/em\u003e, and \u003cem\u003emessage text\u003c\/em\u003e, plus required WAHA configuration values.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFilters non-customer noise:\u003c\/strong\u003e It ignores group chats, the bot’s own messages, and events with empty text.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eResponds with bilingual AI + memory:\u003c\/strong\u003e It sends the customer’s text to an OpenAI assistant that replies in the same language and uses \u003cstrong\u003erecent per-contact conversation history\u003c\/strong\u003e for context.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEscalates when needed:\u003c\/strong\u003e If the assistant output begins with \u003cstrong\u003e“ESCALATE”\u003c\/strong\u003e, the workflow forwards the conversation context to a designated \u003cstrong\u003ehuman agent WhatsApp chat ID\u003c\/strong\u003e and sends the customer a holding message.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends replies through WAHA:\u003c\/strong\u003e For normal requests, it returns the assistant’s response using WAHA’s \u003cstrong\u003esendText\u003c\/strong\u003e API.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCustomer support\u003c\/strong\u003e for Arabic\/English inquiries with continuity per contact.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSales\/lead qualification\u003c\/strong\u003e where uncertain requests trigger escalation to a human.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMulti-agent escalation\u003c\/strong\u003e for compliance-sensitive or complex questions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS operators\u003c\/strong\u003e who want WhatsApp automation without losing conversation context.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes:\u003c\/strong\u003e \u003ccode\u003ewebhook\u003c\/code\u003e, \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003ehttp request\u003c\/code\u003e (plus configuration helpers like sticky notes).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e WAHA webhook + WAHA \u003cstrong\u003esendText API\u003c\/strong\u003e, and \u003cstrong\u003eOpenAI\u003c\/strong\u003e (GPT-4o-mini).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSecurity:\u003c\/strong\u003e HTTP Header Auth using WAHA’s \u003cstrong\u003eX-Api-Key\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConfiguration:\u003c\/strong\u003e Update WAHA base URL, WAHA session name, business name, and the human agent WhatsApp chat ID in workflow values.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45748943257779,"sku":"N8N-17707","price":65.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/GQ3b5LDqGfM_4EBMmntKH_SgvUkJ4t.png?v=1785574998","url":"https:\/\/buyflowscripts.com\/products\/n8n-whatsapp-waha-bilingual-ai-chatbot-with-gpt-4o-mini-memory","provider":"N8N Commerce","version":"1.0","type":"link"}