Skip to main content

Customer support WhatsApp bot with Google Docs knowledge base and Gemini AI

Workflow preview

Workflow preview
100%
Customer support WhatsApp bot with Google Docs knowledge base and Gemini AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Document Aware WhatsApp AI Bot for Customer Support Google Docs Powered WhatsApp Support Agent 24/7 WhatsApp AI Assistant with Live Knowledge from Google Docs Description Template Smart WhatsApp ...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.whatsapp, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.whatsapptrigger, n8n-nodes-base.aitransform, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tharwat Mohamed.

Original n8n.io source

1.1 Workflow description

Title
Customer support WhatsApp bot with Google Docs knowledge base and Gemini AI
Workflow name
Customer support WhatsApp bot with Google Docs knowledge base and Gemini AI
  • Document-Aware WhatsApp AI Bot for Customer Support

  • Google Docs-Powered WhatsApp Support Agent

  • 24/7 WhatsApp AI Assistant with Live Knowledge from Google Docs

📝Description Template

Smart WhatsApp AI Assistant Using Google Docs

Help customers instantly on WhatsApp using a smart AI assistant that reads your company’s internal knowledge from a Google Doc in real time. Built for clubs, restaurants, agencies, or any business where clients ask questions based on a policy, FAQ, or services document.

⚙️ How it works

  • Users send free-form questions to your WhatsApp Business number (e.g. “What are the gym rules?” or “Are you open today?”)

  • The bot automatically reads your company’s internal Google Doc (policy, schedule, etc.)

  • It merges the document content with today’s date and the user’s question to craft a custom AI prompt

  • The AI (Gemini or ChatGPT) then replies back on WhatsApp using natural, helpful language

  • All conversations are logged to Google Sheets for reporting or audit

> 💡Bonus: The AI even understands dates inside the document and compares them to today’s date — e.g. if your document says “Closed May 25 for 30 days,” it will say “We're currently closed until June 24.

đź§° Set up steps

  1. Connect your WhatsApp Cloud API account (Meta)

  2. Add your Google account and grant access to the Doc containing your company info

  3. Choose your AI model (ChatGPT/OpenAI or Gemini)

  4. Paste your document ID into the Google Docs node

  5. Connect your WhatsApp webhook to Meta (only takes 5 minutes)

  6. Done — start receiving and answering customer questions!

> đź“„ Works best with free-tier OpenAI/Gemini, Google Docs, and Meta's Cloud API (no phone required). Everything is modular, extensible, and low-code.

🔄 Customization Tips

  • Change the Google Doc anytime to update answers — no retraining needed

  • Add your logo and business name in the AI agent’s “System Prompt”

  • Add fallback routes like “Escalate to human” if the bot can't help

  • Clone for multiple brands by duplicating the workflow and swapping in new docs

🤝 Need Help Setting It Up?

If you'd like help connecting your WhatsApp Business API, setting up Google Docs access, or customizing this AI assistant for your business or clients…

đź“© I offer setup, branding, and customization services:

WhatsApp Cloud API setup & verification

Google OAuth & Doc structure guidance

AI model configuration (OpenAI / Gemini)

Branding & prompt tone customization

Logging, reporting, and escalation logic

Just send a message via:

Email: [email protected]

WhatsApp: +20 106 180 3236

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 2 - cleanAnswer

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - 24-hour window check

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Send Pre-approved Template Message to Reopen the Conversation

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 6 - Send AI Agent's Answer

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 7 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 8 - when message received

Type / Role
n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
Config choices
Version 1

Block 9 - Prepare Prompt

Type / Role
n8n-nodes-base.aiTransform - aiTransform
Config choices
Version 1

Block 10 - Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 11 - Date & Time

Type / Role
n8n-nodes-base.dateTime - dateTime
Config choices
Version 2

Block 12 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - company's knowledge

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 14 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

3. Summary Table

Workflow Customer support WhatsApp bot with Google Docs knowledge base and Gemini AI
Complexity intermediate
Nodes 14
Categories Support Chatbot, AI RAG
Author Tharwat Mohamed
Published 16 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4966/4966.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Customer support WhatsApp bot with Google Docs knowledge base and Gemini AI do?

Document Aware WhatsApp AI Bot for Customer Support Google Docs Powered WhatsApp Support Agent 24/7 WhatsApp AI Assistant with Live Knowledge from Google Docs Description Template Smart WhatsApp ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.