{"product_id":"n8n-whatsapp-reply-bot-waapi-gpt-4o-mini-auto-responses","title":"n8n WhatsApp Reply Bot: WaAPI + GPT-4o-mini Auto-Responses","description":"\u003ch3\u003eInstant WhatsApp auto-replies with WaAPI + GPT-4o-mini (including “ping → pong”)\u003c\/h3\u003e\n\u003cp\u003eTurn inbound WhatsApp messages into helpful, concise responses automatically. This n8n workflow listens for WaAPI message events, sends “seen” and typing indicators, and then uses an OpenAI \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e agent with short-term conversation memory to generate a reply per chat—plus a built-in \u003cstrong\u003eping\/pong\u003c\/strong\u003e health check.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eReceives a \u003cstrong\u003ePOST webhook\u003c\/strong\u003e from WaAPI and continues only when the incoming event type is a \u003cstrong\u003emessage\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eWaits briefly, then uses WaAPI to \u003cstrong\u003emark the chat as seen\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eWaits again, then uses WaAPI to display a \u003cstrong\u003etyping indicator\u003c\/strong\u003e while the response is generated.\u003c\/li\u003e\n  \u003cli\u003eChecks the incoming message text: if it equals \u003cstrong\u003e“ping”\u003c\/strong\u003e, it immediately sends \u003cstrong\u003e“pong”\u003c\/strong\u003e back to the same chat via WaAPI.\u003c\/li\u003e\n  \u003cli\u003eFor all other messages, forwards the message to an OpenAI chat model (\u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e) to create a \u003cstrong\u003eshort, language-matching reply\u003c\/strong\u003e using buffer memory keyed by \u003cstrong\u003echat ID\u003c\/strong\u003e (so conversations stay coherent during the short term).\u003c\/li\u003e\n  \u003cli\u003eStops typing and sends the generated response back to the WhatsApp chat using WaAPI.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCustomer support triage: respond quickly to common WhatsApp inquiries while keeping a short conversation context.\u003c\/li\u003e\n  \u003cli\u003eLead engagement: acknowledge messages with typing\/seen indicators and provide concise answers automatically.\u003c\/li\u003e\n  \u003cli\u003eOperational monitoring: use the built-in \u003cstrong\u003eping → pong\u003c\/strong\u003e to verify the workflow and WaAPI webhook connectivity.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003en8n nodes\/tools: \u003cstrong\u003ewebhook\u003c\/strong\u003e, \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003ewait\u003c\/strong\u003e, \u003cstrong\u003ewaapi\u003c\/strong\u003e (WaAPI send\/typing\/seen), and \u003cstrong\u003en8nn8n-nodes-langchainagent\u003c\/strong\u003e for the OpenAI chat agent.\u003c\/li\u003e\n  \u003cli\u003eOpenAI integration: \u003cstrong\u003eOpenAI chat model (gpt-4o-mini)\u003c\/strong\u003e with \u003cstrong\u003ebuffer memory keyed by chat ID\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup checklist\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eConnect your \u003cstrong\u003eWaAPI credentials\u003c\/strong\u003e in n8n and provide a valid \u003cstrong\u003einstanceId\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eAdd an \u003cstrong\u003eOpenAI API credential\u003c\/strong\u003e for \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eCopy the workflow webhook URL (path \u003cstrong\u003e\/waapi-chatbot\u003c\/strong\u003e) into your \u003cstrong\u003eWaAPI webhook\u003c\/strong\u003e configuration so WhatsApp message events are delivered to n8n.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45962017308851,"sku":"N8N-19211","price":30.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Ky8PaM87v6vZ0HyTaVW54_1rC0228g.png?v=1788599513","url":"https:\/\/buyflowscripts.com\/products\/n8n-whatsapp-reply-bot-waapi-gpt-4o-mini-auto-responses","provider":"N8N Commerce","version":"1.0","type":"link"}