Skip to content

Log every WhatsApp message to Google Sheets

Each message you receive or send in a saved chat becomes one row in a sheet. It only reads. Swap the last node to log into a CRM or database instead.

Set it up

New to n8n with WhatSync? Do the one-time setup in WhatsApp workflows in n8n first: the API key credential, importing, the webhook and the signing secret. It never sends, so it needs neither safe send nor the API key credential.

  • n8n: log WhatsApp messages to Google Sheets

    Built-in nodes and n8n's Google Sheets node.

    Download JSON
  1. Create a Google Sheet. Paste this into the first row, one name per column:
First row of the sheet (tab separated: paste into cell A1)
Time	Direction	Chat	From	Name	Type	Text	Has file	Message ID	Event ID
  1. Import the workflow. In Add row to sheet pick your Google account, the document and the sheet.
  2. Publish and copy the Webhook node's Production URL.
  3. In WhatSync Developers add a webhook with that URL and the events message.received and message.sent. Paste its signing secret into Verify signature.

What a row holds

Output of the Row node
{
  "Time": "2026-11-27T16:10:22.172Z",
  "Direction": "received",
  "Chat": "15550000001",
  "From": "15550000001",
  "Name": "Dora",
  "Type": "text",
  "Text": "Is my order ready?",
  "Has file": "no",
  "Message ID": "conn_example_3AF57978CD889ECD99E6",
  "Event ID": "evt_01M8EWB9K17A9NBCC8D92NYJR7"
}
  • Chat is the other person's number for a one-to-one chat and the group's name for a group.
  • Direction is sent for your own messages, including the ones a workflow sent.
  • Has file says whether there was a photo, document or voice note. The file itself is not copied. Get a link with get_attachment_link and the Message ID.
  • Only chats you chose under What's saved produce rows.
  • The Skip repeats node keeps a repeated event from adding a second row.

For a CRM or database, replace Add row to sheet with that tool's node. The Row node already holds clean, flat fields to map.

Tested on n8n 2.49 up to and including the Row node, with real signed events. The Google Sheets step itself was not run in testing, because it needs a Google sign-in. Check your first rows after you connect your own account.