Researched: Sourced and summarized, not yet run end-to-end by us Customer support

WhatsApp chatbot answering support from Google Docs (n8n)

Last checked: · Sourced and summarized; not yet run end-to-end by us. What this means

At a glance

Setup estimate
1–2 h (ESTIMATE)
Tools
Industries
Local retail & hospitality, Agencies & consultancies, General (any small business)
View source template on n8n.io (opens in new tab)

Problem

FAQ and policy questions repeat all day

Who it's for

Clubs, gyms, restaurants, agencies and other local businesses whose customers ask the same policy, schedule and FAQ questions on WhatsApp ("Are you open today?", "What are the gym rules?"). The trigger: you already keep that information in a Google Doc and want WhatsApp answered around the clock from it, with every exchange logged to a sheet.

Skip it if customers mostly send voice notes or photos, need live booking or order data, or if you need a person to step in mid-conversation: the template answers text only and has no hand-off.

Tools and what each does

WhatsApp Business Cloud (Trigger + send nodes)
The trigger receives incoming messages from Meta; one send node replies with the answer, another can send a pre-approved template message.
Google Docs
Reads your company document in full on every message (the 'get' operation).
Prepare Prompt (code)
Joins today's date, the document text and the customer's question into one prompt, so the AI can reason about dates in the doc ('closed May 25 for 30 days').
AI Agent + Google Gemini chat model
Writes the answer. The system message tells it not to mention 'the document' and to answer directly. The author says an OpenAI model works too.
Simple Memory
Keeps recent turns per WhatsApp number (wa_id).
Google Sheets
Logs each exchange: user number, message, response and timestamp.
cleanAnswer + 24-hour window check (code + If)
Strips Markdown so WhatsApp shows plain text, then checks whether the customer's message is within 24 hours before replying free-form.

Browse by tool: n8n, WhatsApp, Google Docs, Google Gemini, Google Sheets

Steps

  1. A customer sends a WhatsApp message to your business number and the WhatsApp Trigger fires.
  2. The Google Docs node fetches your knowledge document.
  3. Prepare Prompt combines today's date, the document text and the message body.
  4. The AI Agent, using Gemini and the per-number memory, writes the reply.
  5. A Date & Time node stamps the run and Google Sheets appends a log row.
  6. cleanAnswer removes bold/italic markers and Markdown links.
  7. If the message is within 24 hours, the answer is sent as a normal WhatsApp text; otherwise the flow sends a template message to reopen the conversation.

Before you start

  • A Meta WhatsApp Business Cloud API setup (app, phone number ID, access token) connected to n8n, and the n8n webhook registered in Meta. Business verification time is UNKNOWN.
  • A Google Gemini API key (or an OpenAI key if you swap the model node).
  • A Google account connected to n8n, the Google Doc's ID, and a Google Sheet with User, Message, Response and Timestamp columns.
  • Setup estimate: 1–2 h (ESTIMATE). The author's own note calls the webhook step about 5 minutes.

What can go wrong

Needs a Meta WhatsApp Cloud API account (verification time UNKNOWN) and a Google Gemini or OpenAI key. Customer messages are sent to the AI provider and logged in Google Sheets. Answers are only as accurate as your Google Doc; add a hand-off to a person.

  • ModelUse gemini-3.6-flash. The template is set to 'models/gemini-2.5-flash-preview-04-17-thinking', built on the gemini-2.5-flash-preview-04-17 preview that Google's release notes (June 17, 2025) said would be deprecated on July 15, 2025; it no longer appears on Google's deprecations table, and Google now limits 2.5 models to existing users. Select gemini-3.6-flash in the Gemini chat model node before going live.
  • Source qualityHard-coded values from the author's setup: the Docs node's document ID, a phone number ID in both send nodes, and a system message naming the author's sports club. Replace all of them, or the bot answers as someone else.
  • Silent failurePrepare Prompt reads the message's text body. A voice note, photo or location has no text body, so that run is likely to error and the customer gets no reply.
  • ReliabilityMeta's docs say free-form replies are only allowed within 24 hours of the customer's last message; outside that window only pre-approved templates can be sent. The template's check compares against the message that just arrived, so it will almost always pass, and its fallback sends Meta's sample 'hello_world' template rather than an answer.
  • Silent failureMeta allows one webhook per app. n8n's docs warn that switching between test and production URLs overwrites it, so a live bot can stop receiving messages while you test.
  • Data privacyCustomer phone numbers and messages are sent to the AI provider and kept in Google Sheets indefinitely unless you prune the sheet. Check your provider's data terms and your local privacy rules.
  • ReliabilityAnswers are only as accurate as the document, and the bot never tells a customer how to reach a person.

How to adapt it

  • Add an escalation route (the author suggests 'Escalate to human'): when the answer says the info isn't available, notify staff by email or Slack with the customer's number.
  • Replace the 'hello_world' fallback with your own approved template that invites the customer to message again.
  • Handle non-text messages with an If node that replies 'Please type your question' when there's no text body.
  • Clone the workflow per brand or location, each pointing at its own Google Doc, as the author suggests.
  • Put your business name and tone into the system message; edit the Doc to change answers, with no retraining.

Sources we checked

Status
Researched: Sourced and summarized, not yet run end-to-end by us
Last checked
Details checked

Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.

Practical AI workflows for small businesses, every Tuesday

A few workflows each issue for lead follow-up, CRM, proposals, onboarding and support, each labeled Researched or Tested.

We'll email you a link to confirm. Unsubscribe in one click. Privacy policy.

Why trust it: every entry links its source and caveats, and nothing is called Tested until we publish the logs. Our method.

More customer support workflows