{"product_id":"n8n-whatsapp-cloud-api-ai-assistant-w-data-tables","title":"n8n WhatsApp Cloud API AI Assistant w\/ Data Tables","description":"\u003ch3\u003eAutomatically answer WhatsApp Cloud API messages with an AI assistant—backed by Data Tables, FAQ grounding, and Telegram failure alerts\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow turns incoming \u003cstrong\u003eWhatsApp Cloud API\u003c\/strong\u003e messages into a guided AI conversation. It logs messages in \u003cstrong\u003en8n Data Tables\u003c\/strong\u003e, extracts readable text from voice, images, and PDFs, generates WhatsApp-friendly replies using \u003cstrong\u003eOpenAI\u003c\/strong\u003e with FAQ grounding, and notifies you via \u003cstrong\u003eTelegram\u003c\/strong\u003e when something goes wrong.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on new WhatsApp Cloud API messages\u003c\/strong\u003e (and ignores delivery\/read status updates).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes and deduplicates\u003c\/strong\u003e webhook payloads into one item per customer message, skipping old or unsupported message types.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs the raw message\u003c\/strong\u003e and uses Data Tables to prevent duplicate processing via message ID.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHandles media content\u003c\/strong\u003e: when the message includes audio, an image, or a document, it fetches the WhatsApp media URL, downloads the file, and uses \u003cstrong\u003eOpenAI\u003c\/strong\u003e plus \u003cstrong\u003ePDF text extraction\u003c\/strong\u003e to convert content into readable text (or records an explanation when unsupported or too large).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuffers rapid messages\u003c\/strong\u003e from the same customer, then saves cleaned content to a \u003cstrong\u003emessages\u003c\/strong\u003e Data Table.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds context with conversation memory\u003c\/strong\u003e: loads the customer’s recent history, marks the latest messages as answered, and composes a prompt combining history + the new input.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates a WhatsApp-style reply\u003c\/strong\u003e using an OpenAI chat model agent with a Data Tables \u003cstrong\u003eBusiness FAQ\u003c\/strong\u003e tool to stay grounded in your FAQ and business info.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends and stores the response\u003c\/strong\u003e, splitting formatted replies to fit WhatsApp limits.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eError handling\u003c\/strong\u003e: when failures occur, it sends an alert via \u003cstrong\u003eTelegram\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCustomer support for WhatsApp inquiries with FAQ-based, consistent responses.\u003c\/li\u003e\n  \u003cli\u003eAnswering questions sent as voice notes, images, or PDFs—without manual transcription.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators who want conversation memory and reliable logging via n8n Data Tables.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eDesigned for \u003cstrong\u003en8n automation workflows\u003c\/strong\u003e using nodes: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003ewait\u003c\/strong\u003e, \u003cstrong\u003eswitch\u003c\/strong\u003e, and \u003cstrong\u003etelegram\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eIntegrations: \u003cstrong\u003eWhatsApp Cloud API\u003c\/strong\u003e, \u003cstrong\u003eOpenAI\u003c\/strong\u003e, \u003cstrong\u003en8n Data Tables\u003c\/strong\u003e, \u003cstrong\u003eTelegram\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46196307099827,"sku":"N8N-20729","price":49.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/5XJAbCtrVTE43kT3n0v9w_FbHupcdT.png?v=1791622996","url":"https:\/\/buyflowscripts.com\/products\/n8n-whatsapp-cloud-api-ai-assistant-w-data-tables","provider":"N8N Commerce","version":"1.0","type":"link"}