Latenode

Instant WhatsApp customer support with Google Docs knowledge base

This template receives a WhatsApp Business Cloud inbound message on a Latenode webhook, loads your Google Docs knowledge base, and asks ChatGPT for a reply.

WhatsApp Business Cloud sends that reply, or an approved template when Meta requires one. Google Sheets stores the thread. Connect Google Docs, Google Sheets, and WhatsApp Business Cloud. ChatGPT is a Latenode AI step. Put the Cloud API token on the WhatsApp Business Cloud connection.

Updated Sep 16, 2026Est. run: 39sEst. cost: $0.0025
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Answers WhatsApp Business Cloud messages from a Google Doc
  • Writes the reply with ChatGPT
  • Sends a live message or an approved template
  • Logs each thread in Google Sheets

How it works

1
Trigger

Receive the WhatsApp message

A webhook starts the scenario when WhatsApp Business Cloud posts a new inbound message.

2
Action

Load the knowledge base

Google Docs reads the knowledge document. JavaScript combines that text with the customer message.

3
AI

Write the reply

ChatGPT returns an answer grounded in the Doc. You do not paste an OpenAI key.

4
Action

Send and log

WhatsApp Business Cloud sends the reply, or an approved template when the care window is closed. Google Sheets appends user, message, reply, and time.

Setup guide

1

Add the webhook

Add a webhook trigger and paste its URL into Meta as the WhatsApp Business Cloud callback for inbound messages.

2

Connect Google Docs and Google Sheets

Add Google Docs and Google Sheets connections. Point Docs at the knowledge document. Use a Sheet with columns for user, message, reply, and time.

3

Connect WhatsApp Business Cloud

Add a WhatsApp Business Cloud connection and put the Cloud API token there. Approve a reopen template in Meta Business Manager for threads outside the care window.

4

Wire ChatGPT and send

Load the Doc, build the prompt in JavaScript, then send it to ChatGPT. Map the answer onto Send Message. Use Send Template Message when Meta requires a template. Log the row in Sheets. Send a test inbound message and confirm the reply.

Requirements

A WhatsApp Business Cloud number that can POST inbound messages to Latenode
A Google Doc Latenode can read as the knowledge base
A Google Sheet Latenode can append conversation rows to
A WhatsApp Business Cloud connection with the Cloud API token on that connection

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.