What This Workflow Does
Customer support teams are drowning in repetitive questions while struggling to keep internal documentation accessible. This WhatsApp AI Support Bot solves both problems by creating an intelligent, 24/7 assistant that answers customer inquiries directly from your Google Drive documents.
The workflow automatically handles both text messages and voice notes—transcribing audio to text—then uses Retrieval-Augmented Generation (RAG) to find accurate answers in your company knowledge base. It maintains conversation context to avoid repetition and syncs weekly with your Google Drive folder, so non-technical staff can update answers simply by editing documents.
Unlike generic chatbots, this solution provides trustworthy, company-specific responses while maintaining a human-like tone. It's particularly valuable for businesses receiving high volumes of similar questions about products, services, policies, or procedures.
How It Works
1. Message Reception & Processing
When a customer sends a WhatsApp message (text or voice note), the workflow triggers. Voice notes are automatically downloaded and transcribed using OpenAI's speech recognition. The system maintains short-term memory of recent conversation turns to provide coherent, context-aware responses.
2. Knowledge Retrieval & Reranking
The customer's question queries your document knowledge base stored in Supabase. The system retrieves the most relevant document chunks, then uses Cohere's reranker to prioritize the most accurate information before feeding it to the AI model.
3. AI Response Generation
GPT-4.1-mini generates concise, helpful responses (under 100 words) based strictly on the retrieved company information. Guardrails prevent the AI from inventing answers or providing medical/financial advice not present in your documentation.
4. Weekly Knowledge Sync
A separate automation lane monitors your designated Google Drive folder for new or updated documents. When changes are detected, it downloads, chunks, embeds, and updates the vector database—keeping your bot's knowledge current without manual intervention.
Who This Is For
This template is ideal for customer-facing businesses that receive repetitive inquiries via WhatsApp. E-commerce stores answering product questions, service businesses explaining processes, educational institutions handling student queries, or any organization with documented policies that customers frequently ask about.
Teams overwhelmed by support volume will benefit most—especially those already using WhatsApp Business but struggling with response times. The solution works particularly well for companies with well-documented knowledge bases that just need an accessible interface for customers.
What You'll Need
- WhatsApp Business Cloud account with App ID, Token, and Phone Number ID
- OpenAI API key for both chat completions and embeddings
- Cohere API key for reranking functionality
- Supabase account with a project URL and anonymous key
- Google Drive with OAuth2 access and a dedicated folder for support documents
- n8n instance (cloud or self-hosted) to run the automation
Pro tip: Start with a small subset of your most frequently asked questions in Google Drive. This lets you test accuracy before scaling to your entire knowledge base.
Quick Setup Guide
- Import the template into your n8n instance using the downloaded JSON file.
- Configure credentials for WhatsApp, OpenAI, Cohere, Supabase, and Google Drive in n8n's credential management.
- Set your Google Drive Folder ID in the weekly sync trigger node.
- Verify Supabase table name matches your vector storage setup (default is "documents").
- Add initial documents to your Google Drive folder and trigger a manual sync to populate the knowledge base.
- Test with sample questions via WhatsApp to ensure responses are accurate and concise.
- Adjust system prompts as needed for your brand voice and response guidelines.
Key Benefits
24/7 automated support reduces response times from hours to seconds, improving customer satisfaction while freeing your team for complex issues.
Consistent, accurate answers drawn directly from your official documentation eliminate human error and ensure policy compliance across all customer interactions.
Voice note handling accommodates customers who prefer speaking over typing, making support more accessible and natural-feeling.
Self-updating knowledge base means marketing or support teams can improve answers by simply editing Google Docs—no technical skills required.
Cost-effective scaling handles unlimited customer inquiries without proportional staffing increases, dramatically reducing support costs per conversation.