Notify customers via email when they register for warranty in Google Sheets and Gmail
Every new or updated warranty registration in your sheet sends the customer a Gmail confirmation with a discount offer.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/email-warranty-registrations-from-google-sheets-via-gmail/
Paste into Claude, ChatGPT, Cursor or any agent.
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/email-warranty-registrations-from-google-sheets-via-gmail
Set it up with the CLI
- Add it. Copies the folder into
zaps/email-warranty-registrations-from-google-sheets-via-gmail/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/email-warranty-registrations-from-google-sheets-via-gmail - 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 email-warranty-registrations-from-google-sheets-via-gmail - Check it. Its recent runs, with status and errors.
npx zap-pack logs email-warranty-registrations-from-google-sheets-via-gmail
zaps/email-warranty-registrations-from-google-sheets-via-gmail/
- 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 5 to fill in
- connections/gmail.tsThe
gmailaccount it uses - connections/google-sheets.tsThe
google-sheetsaccount it uses - triggers/updated-row-notify-hook.tsWhat starts it:
google-sheetsupdated_row_notify_hook2 to fill in - 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 new or updated row is added to the warranty registration worksheet (
google-sheets,updated_row_notify_hook). - Workflow skips rows with no customer email address.
- Gmail sends the customer a confirmation email, with their name, a note that their warranty registration is on file, and the discount code for their next order.
Each new or changed row sends one email. The Zap only sends email; it never edits the sheet.
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 | Where | What goes there |
|---|---|---|
SPREADSHEET_ID |
config.ts, and spreadsheet in triggers/updated-row-notify-hook.ts |
The sheet holding warranty registrations: look up its ID (the long ID in its URL) with the user's Google Sheets connection |
WORKSHEET_ID |
config.ts, and worksheet in the trigger file |
The tab with the registrations: pick it from that sheet's tabs. Worksheets must have column headers |
CUSTOMER_NAME_HEADER |
config.ts |
The column header holding the customer's name, exactly as written in the sheet's first row |
CUSTOMER_EMAIL_HEADER |
config.ts |
The column header holding the customer's email address, exactly as written in the sheet's first row |
DISCOUNT_CODE |
config.ts |
The discount code to offer registered customers, from the user |
Use the same spreadsheet and worksheet IDs in both places, or the trigger and the config will watch different data.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/email-warranty-registrations-from-google-sheets-via-gmail, replace each REPLACE_… value as this file says, then run npx zap-pack deploy email-warranty-registrations-from-google-sheets-via-gmail, 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 registration sheet, andgmailto the user's Gmail connection for the mailbox that sends the emails. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/updated-row-notify-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_triggerswith that slug, find the row whosekeyisupdated_row_notify_hook, 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 the workflow. - Fields: inspect the trigger's fields and the Gmail
message(Send Email) action's fields with the user's connections, and fix any key inworkflow.tsthat doesn't match. The column headers inconfig.tsmust match the sheet's first row exactly.
Test it
Run this sample as a draft test (run_workflow_draft in Zapier MCP), in a row the user has added for testing, with an email address the user owns:
{
"Name": "Test Customer",
"Email": "test@example.com",
"Product": "Sample product",
"Purchase date": "2026-01-01"
}
Confirm that one email arrived in the user's mailbox with the customer's name and the discount code. The user deletes the test row and the test email, not the agent.
Notes
- Every new or changed row sends an email, so rows that are edited again send a second email. Keep the discount code and wording in
config.tsandworkflow.tsup to date before the Zap is turned on. - A row with no email address is skipped.
- Never commit a real spreadsheet ID, a real discount code or a customer's email address.