Capture incoming data from webhooks and log it into Google Sheets
Every request sent to your Zapier webhook URL adds a row to your Google Sheet with the time it arrived and its data, so incoming data is logged for tracking and analysis.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/log-incoming-webhook-data-to-google-sheets/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Data & Analytics · Data automation
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/log-incoming-webhook-data-to-google-sheets
Set it up with the CLI
- Add it. Copies the folder into
zaps/log-incoming-webhook-data-to-google-sheets/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/log-incoming-webhook-data-to-google-sheets - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy log-incoming-webhook-data-to-google-sheets - Check it. Its recent runs, with status and errors.
npx zap-pack logs log-incoming-webhook-data-to-google-sheets
zaps/log-incoming-webhook-data-to-google-sheets/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 1 to fill in
- connections/google-sheets.tsThe
google-sheetsaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a POST, PUT or GET request arrives at the Zapier webhook URL (
webhook,hook_v2, "Catch Hook"). The whole request body is passed on. - Google Sheets adds one row to the sheet's first tab with the time the request was received and the payload as JSON text.
Every request adds a row. The Zap only writes to the sheet; it never changes or deletes anything else.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
SPREADSHEET_ID |
The sheet that receives the data: ask which sheet it is, then look up its ID (the long ID in its URL) with the user's Google Sheets connection |
Also review the defaults with them:
WORKSHEET_ID: the tab that receives rows."0"is the first tab. The tab's first row must hold column headers.RECEIVED_AT_COLUMNandPAYLOAD_COLUMN: column keys such asCOL$A, not header names. Map them to the columns the user wants, or point one at an empty column they don't use.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/log-incoming-webhook-data-to-google-sheets, replace each REPLACE_… value as this file says, then run npx zap-pack deploy log-incoming-webhook-data-to-google-sheets, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
google-sheetsto the user's Google Sheets connection for the account that owns the sheet. The webhook trigger needs no account. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswithwebhook, find the row whosekeyishook_v2, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Webhook URL: after the trigger is set up, Zapier gives it a unique URL. Give that URL to the sender. Treat it as a secret; it is not written into this folder.
- Fields: inspect the
add_rowaction's fields with the user's Google Sheets connection before the first test run, and fix any column key inconfig.tsthat doesn't match the sheet.
Test it
Run this sample as a draft test (run_workflow_draft in Zapier MCP), using a test request the user sends to the webhook URL for this, not real data:
{
"name": "Test Person",
"message": "This is a test request for the webhook log."
}
Confirm that one new row appears in the sheet with the time and the payload text. If run-status tools aren't available, check the result in Google Sheets directly. The user deletes the test row, not the agent.
Notes
- Once the Zap is published and its trigger is active, every request to the webhook URL adds a row. Anyone with the URL can add rows, so share it only with the senders who need it.
- The payload is stored as JSON text in one column. Split it into separate columns later with the sheet's own formulas if the user needs them.
- Never commit a real spreadsheet ID or a real webhook URL.