Email team about new sheet leads
When a new lead is added to your Google Sheet, your team gets an email with the lead's details so they can follow up quickly.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/email-team-about-new-sheet-leads/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Sales · Lead management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/email-team-about-new-sheet-leads
Set it up with the CLI
- Add it. Copies the folder into
zaps/email-team-about-new-sheet-leads/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/email-team-about-new-sheet-leads - 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-team-about-new-sheet-leads - Check it. Its recent runs, with status and errors.
npx zap-pack logs email-team-about-new-sheet-leads
zaps/email-team-about-new-sheet-leads/
- 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/new-row-notify-hook.tsWhat starts it:
google-sheetsnew_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 row is added to the bottom of the leads worksheet in Google Sheets (
google-sheets,new_row_notify_hook). - If the row has neither a name nor an email, the run stops (blank row).
- Email by Zapier sends one plain-text email to the team address. The subject is
New lead: <name>(the email address when the name is blank). The body lists each filled column asLabel: value: Name, Email, Phone, Company, Notes.
The Zap only reads the sheet and sends email. It never edits a row.
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 it lives | What goes there |
|---|---|---|
TEAM_EMAIL |
config.ts |
The team member or shared inbox address that gets each lead email |
spreadsheet |
triggers/new-row-notify-hook.ts (REPLACE_SPREADSHEET_ID) |
The leads spreadsheet: the long ID in its URL |
worksheet |
triggers/new-row-notify-hook.ts (REPLACE_WORKSHEET_ID) |
The tab holding the leads (the first tab is "0") |
Also review the column map with them: LEAD_COLUMNS in workflow.ts assumes columns A to E hold name, email, phone, company and notes. The worksheet needs a header row, and its headers must match that order.
Ask them:
- Which spreadsheet and tab holds the leads, and which columns hold the name, email, phone, company and notes? If they have no sheet yet, offer to create one with those five headers.
- Which team member or shared inbox should get the emails?
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/email-team-about-new-sheet-leads, replace each REPLACE_… value as this file says, then run npx zap-pack deploy email-team-about-new-sheet-leads, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. Either way, name the workflow Email team about new sheet leads (zapier.sh/email-team-about-new-sheet-leads): zap-pack takes that name from this file's title, so leave the title as it is, and with Zapier MCP give the workflow that name when you create it. 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-sheets(the account that owns the leads spreadsheet) to the user's connection. The trigger uses it. Email by Zapier needs no connection and gets no alias. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/new-row-notify-hook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them, with the trigger'sspreadsheetandworksheetparams from the user's answers. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, 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. - Fields: inspect each action's fields with the user's connections and sample the trigger before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Add a row to a test sheet the user controls (or use one they just added), and set TEAM_EMAIL to an address the user controls so no one else gets the test email. Then run it as a draft test run (run_workflow_draft in Zapier MCP) with the trigger's record as input. Sample input:
{
"id": 2,
"row": 2,
"COL$A": "[install-test] Sample Lead",
"COL$B": "sample.lead@example.com",
"COL$C": "555-0100",
"COL$D": "Example Co",
"COL$E": "Asked for a demo"
}
Check that one email arrived with the subject New lead: [install-test] Sample Lead and a body listing the five fields. A row with only a name still sends, with the empty fields left out. A row with no name and no email returns { skipped: true, reason: "empty-lead" } and sends nothing. If run-status tools aren't available, check the inbox directly. Publish after the checks pass, and wait until the trigger reads back as active. The user deletes the test rows and emails, not the agent.
Notes
- The trigger fires only for rows added at the bottom of the sheet; editing an existing row doesn't send again.
- Email by Zapier sends from a Zapier address, so the team can't reply straight to the lead. They copy the lead's email address out of the message. Use Gmail for sending from a team address.
- Email by Zapier is limited to 10 sends an hour on paid plans, so a burst of leads can hit that limit.
- Empty cells are left out of the trigger record and so out of the email.
- Never commit a real team address or spreadsheet ID.