Email team about webhook events
Notify your team via email when a specific event is posted to your webhook, so new tasks and updates reach people quickly.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/email-team-about-webhook-events/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Business Owners · Team communication
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/email-team-about-webhook-events
Set it up with the CLI
- Add it. Copies the folder into
zaps/email-team-about-webhook-events/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/email-team-about-webhook-events - 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-webhook-events - Check it. Its recent runs, with status and errors.
npx zap-pack logs email-team-about-webhook-events
zaps/email-team-about-webhook-events/
- 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
- 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: an event posted to a Webhooks by Zapier catch hook (
webhook,hook_v2). Each POST starts one run. - Filter (built as code, not a step): optional list of event names worth emailing, read from the payload field named by
EVENT_FIELD. The list is empty by default, so every event is emailed. Events not on a non-empty list are skipped. - Email by Zapier sends one plain-text email to the recipient. The subject is the payload's title field, or "New <event> event" when there is none. The body lists each field in
FIELDSasLabel: value; nested values appear as compact JSON.
The Zap only sends email. It never writes back to the sender.
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 |
|---|---|
REPLACE_RECIPIENT_EMAIL |
The email address or team list that gets each event email (config.ts) |
Also settle with them, since the payload shape differs for every sender:
- What the sender posts: ask for an example payload. Rename
EVENT_FIELD,TITLE_FIELDand thefieldnames inFIELDS(all inworkflow.ts) to match its keys, and drop or add rows so the body shows what the team needs. EVENTS_TO_EMAIL(inworkflow.ts): optional. Event names worth emailing, such astask.created. Empty emails every event.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/email-team-about-webhook-events, replace each REPLACE_… value as this file says, then run npx zap-pack deploy email-team-about-webhook-events, 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 webhook events (zapier.sh/email-team-about-webhook-events): 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: none. Webhooks by Zapier and Email by Zapier need no connection.
- Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.tsis a setting, not code: set the workflow's trigger binding from it. 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 the email action's fields, and sample the trigger, before the first test run. Fix any key in
workflow.tsthat doesn't match.
Test it
Run this sample as a draft test before publishing, with REPLACE_RECIPIENT_EMAIL set to an address the user controls so no one else gets the test email:
{
"event": "task.created",
"title": "[install-test] Review the Q3 plan",
"description": "[install-test] Sample task for the install check.",
"assignee": "install-test@example.com",
"url": "https://example.com/tasks/install-test-001"
}
Check that one email arrived with the subject [install-test] Review the Q3 plan and a body listing the event, title, description, assignee and link. If EVENTS_TO_EMAIL is set, also send an event not on the list and check that no email arrives. If run-status tools aren't available, check the inbox directly. Then publish, confirm the trigger is active, and give the user their webhook URL to point the sender at. The user deletes the test emails, not the agent.
Notes
- The field names in the sample are defaults, not a contract. The agent must adjust them to the user's real payload.
- Nested values (objects and lists) appear in the body as compact JSON. Fields missing from a payload are left out of the body.
- Email by Zapier sends from a zapiermail.com address and is limited to 10 sends an hour on paid plans. A busy sender will hit that limit; use Gmail or SMTP for higher volume.
- Anyone with the webhook URL can trigger emails to the recipient, so keep it private.
- Never commit a real recipient address or webhook URL.