Smart WhatsApp AI Assistant with Google Docs Knowledge Base by Muhammad AwaisSmart WhatsApp AI Assistant with Google Docs Knowledge Base by Muhammad Awais
Smart WhatsApp AI Assistant with Google Docs Knowledge Base
Smart WhatsApp AI Assistant with Google Docs Knowledge Base
Overview
A document-aware WhatsApp AI assistant built with n8n, Google Gemini, and Kapso that answers customer questions using the company's latest information stored in Google Docs.
The assistant provides 24/7 automated customer support, maintains conversational context, and logs every interaction for visibility and reporting.
Challenge
Businesses often receive repetitive WhatsApp questions about services, policies, schedules, availability, and operating rules.
Manual responses create several problems:
Repetitive workload for support teams
Slow response times
Inconsistent answers
Limited after-hours support
Difficulty keeping AI or support agents aligned with updated company information
Solution
I built an automated WhatsApp AI agent where a Google Doc acts as the single source of truth.
When the company updates its document, the assistant can use the latest information without requiring the workflow or AI prompt to be manually rebuilt.
Workflow
WhatsApp → Kapso → n8n Webhook → Google Docs → Gemini → Google Sheets → WhatsApp
Kapso receives an inbound WhatsApp message and forwards it to n8n.
n8n retrieves the latest company information from Google Docs.
The workflow combines the knowledge base, current date, customer question, and conversation history.
Google Gemini generates a grounded, conversational response.
A cleanup step formats the response for WhatsApp.
The conversation is logged to Google Sheets.
Kapso sends the response back within WhatsApp's 24-hour messaging window.
AI & Knowledge-Base Logic
The assistant is designed around a live knowledge-base workflow rather than relying only on static AI knowledge.
Key logic includes:
Google Docs as the business knowledge source
Conversational memory for contextual responses
Current-date awareness for schedules and time-sensitive information
Controlled prompts for friendly and professional responses
Fallback handling when AI processing fails
Support escalation message when a reliable response cannot be generated
This structure allows the business team to update FAQs, policies, services, and schedules by simply editing the Google Doc.
Conversation & Data Management
Every interaction can be recorded in Google Sheets, including:
Customer name
Phone number
Customer query
AI-generated response
Timestamp
Processing status
This creates a lightweight conversation log without requiring a separate customer-support platform.
Results
24/7 automated WhatsApp support
Approximately 50% fewer repetitive support tickets
70% faster response time
Consistent answers across customer conversations
Centralized knowledge management through Google Docs
Designed to handle approximately 50–500 messages per day
Technical Stack
n8n — workflow orchestration and automation
Kapso WhatsApp — WhatsApp messaging layer
Google Gemini — AI response generation
Google Docs — live business knowledge base
Google Sheets — conversation logging
JavaScript — data processing and response handling
Build Type: Self-initiated demonstration build
Role: AI Automation Engineer & WhatsApp AI Specialist
Platform: n8n
Industry: Customer Support / AI Automation