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.
- Download JSON
n8n: log WhatsApp messages to Google Sheets
Built-in nodes and n8n's Google Sheets node.
- Create a Google Sheet. Paste this into the first row, one name per column:
Time Direction Chat From Name Type Text Has file Message ID Event ID- Import the workflow. In Add row to sheet pick your Google account, the document and the sheet.
- Publish and copy the Webhook node's Production URL.
- In WhatSync Developers add a webhook with that URL and the events
message.receivedandmessage.sent. Paste its signing secret into Verify signature.
What a row holds
{
"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"
}Chatis the other person's number for a one-to-one chat and the group's name for a group.Directionissentfor your own messages, including the ones a workflow sent.Has filesays whether there was a photo, document or voice note. The file itself is not copied. Get a link with get_attachment_link and theMessage 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.