Deploy a powerful n8n workflow to automate WhatsApp customer support. Uses Google Docs as a RAG knowledge base and Gemini AI for instant, context-aware replies, ensuring compliance with the 24-hour rule.
Download this n8n workflow template and start using it instantly.
Companies seeking to automate first-line WhatsApp customer support.
Users looking for high-quality n8n templates integrating AI and communication platforms.
Businesses needing a reliable AI solution that adheres strictly to the 24-hour WhatsApp response window, using a conditional n8n node.
Automation specialists deploying complex RAG systems using the n8n node suite.
This sophisticated n8n workflow solves the crucial problem of providing instant, accurate customer support over WhatsApp while adhering to Meta's strict 24-hour window policy. This system leverages a live Google Doc as a dynamic knowledge base (RAG implementation), ensuring the AI responses are always based on the latest company information. By utilizing the n8n Langchain integration for the AI Agent and the Gemini model, users receive intelligent, personalized answers. This specific n8n workflow template uses WhapAround to simplify the connection process, bypassing the complex setup of the WhatsApp Business Cloud API. This robust automation ensures every incoming message is processed, context is maintained via session memory using an n8n node, and appropriate responses (message or template) are chosen depending on the timing, making this a highly valuable, production-ready n8n solution.
WhapAround - Listeing n8n node, acting as a webhook n8n trigger for new WhatsApp messages.company's knowledge Google Docs n8n node fetches the current content of the designated support document.Prepare Prompt AI Transform n8n node formats the user's question, the current date, and the knowledge document into a highly structured finalPrompt for the AI.AI Agent n8n node uses the input prompt, the Google Gemini Chat Model, and the Simple Memory n8n node (maintaining context via the user's wa_id) to generate the support response. This is the core logic of the n8n workflow.24-hour window check code n8n node analyzes the message timestamp to verify if the response is still within the mandated 24-hour service window.If n8n node branches the n8n workflow execution based on the timing check.cleanAnswer code n8n node sanitizes the text, and the WhapAround - Respond Message n8n node sends the direct reply. If outside the window, the n8n workflow routes the execution to the WhapAround - Respond Template n8n node for compliance.WhapAround - Listeing n8n trigger node.company's knowledge Google Docs n8n node with the correct Document ID for your knowledge base. Ensure necessary Google OAuth credentials are set up for this n8n node.Google Gemini Chat Model n8n node connection. WhapAround - Listeing (Webhook n8n trigger): Initiates the n8n workflow upon receiving a WhatsApp message payload. This is the starting n8n trigger.
company's knowledge (Google Docs n8n node): Fetches the latest content from a specific Google Document ID, which acts as the dynamic knowledge base for the RAG system.
Prepare Prompt (AI Transform n8n node): Uses JavaScript to merge the user's question, the current date, and the large text body from the Google Doc into a single, cohesive prompt (finalPrompt).
Google Gemini Chat Model (Langchain n8n node): Configures the AI language model (Gemini 2.5 Flash), which powers the reasoning within the n8n workflow.
Simple Memory (Langchain n8n node): Maintains conversational history using the WhatsApp user ID (wa_id) as the session key, crucial for conversational AI within this n8n workflow.
AI Agent (Langchain n8n node): The core intelligence module. It processes the prompt, applies system instructions (acting as support staff), and generates the final answer.
24-hour window check (Code n8n node): A custom code n8n node that calculates the time elapsed since the user message to ensure WhatsApp compliance.
If (n8n node): A crucial flow control n8n node that routes the execution based on the withinWindow boolean.
Deploy a robust multilingual customer service chatbot using this powerful n8n workflow. It auto-detects languages (English, Spanish, French) and uses GPT-5 Nano for contextual responses.

Automate Zendesk ticket responses using a sophisticated n8n workflow. Integrate Mintlify RAG for documentation-backed replies, classify tickets, and ensure high-quality AI service using OpenRouter models.

Deploy a sophisticated n8n workflow to automate customer support. This template integrates Gmail, Google Sheets, ERP data, and OpenAI GPT-4o for rapid, context-aware response generation with human-in-the-loop approval.

Automate DEI eligibility screening using an n8n workflow that monitors Google Drive for CV uploads. This n8n template integrates Azure OpenAI (GPT-4o) with Google Sheets and Gmail for sophisticated HR automation.

Automate your AI news collection using this advanced n8n workflow. It uses Perplexity and GPT-4o to find, filter, deduplicate, and deliver daily tech news via Telegram.








































