Notify revenue team of subscriptions scheduled to cancel
When a customer schedules a subscription to cancel, your revenue team gets an email right away with the customer and the date it ends, so they can reach out in time.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/notify-revenue-team-of-subscriptions-scheduled-to-cancel/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Sales · Renewal management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/notify-revenue-team-of-subscriptions-scheduled-to-cancel
Set it up with the CLI
- Add it. Copies the folder into
zaps/notify-revenue-team-of-subscriptions-scheduled-to-cancel/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/notify-revenue-team-of-subscriptions-scheduled-to-cancel - 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 notify-revenue-team-of-subscriptions-scheduled-to-cancel - Check it. Its recent runs, with status and errors.
npx zap-pack logs notify-revenue-team-of-subscriptions-scheduled-to-cancel
zaps/notify-revenue-team-of-subscriptions-scheduled-to-cancel/
- 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 2 to fill in
- connections/gmail.tsThe
gmailaccount it uses - connections/stripe.tsThe
stripeaccount it uses - triggers/updated-customer-subscription.tsWhat starts it:
stripeupdated_customer_subscription - 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 Stripe subscription changes (
stripe,updated_customer_subscription). The run continues only if the subscription hascancel_at_period_endset to true; any other update stops the run and sends nothing. - Gmail sends one email to the revenue distribution list and the account owner. The subject names the customer, and the body lists the subscription ID, customer ID, customer email and the date the current period ends.
The Zap only sends the alert. It doesn't change the subscription or the customer.
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 |
|---|---|
REVENUE_TEAM_EMAIL |
The revenue team's distribution address. Put one address here. |
ACCOUNT_OWNER_EMAIL |
The account owner's address. Put one address here, or repeat the revenue address if there is no separate owner. |
Also review the defaults with them:
- The trigger watches the live Stripe account. Test-mode events are off by default; ask whether the user wants them.
- The email is sent from the connected Gmail account. Ask whether it should come from another sender.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/notify-revenue-team-of-subscriptions-scheduled-to-cancel, replace each REPLACE_… value as this file says, then run npx zap-pack deploy notify-revenue-team-of-subscriptions-scheduled-to-cancel, 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
stripe(the account whose subscriptions are watched; the trigger uses it) andgmail(the account that sends the alert) to the user's connections. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/updated-customer-subscription.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 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
Run this sample as a draft test before publishing, with a subscription that is scheduled to cancel:
{
"id": "sub_EXAMPLE123",
"cancel_at_period_end": "true",
"current_period_end": "2026-11-30T00:00:00Z",
"customer__id": "cus_EXAMPLE456",
"customer__name": "Example Customer",
"customer__email": "customer@example.com",
"status": "active"
}
Check that one email arrived at the revenue address and the account owner's address, with the customer name in the subject and the period end in the body. Then send the same sample with cancel_at_period_end set to "false" and check that the run skips and sends nothing. If run-status tools aren't available, check Gmail directly. Ask the user to delete the test emails; the agent doesn't delete them. Then publish, confirm the trigger is active.
Notes
- Stripe sends a subscription update every time the subscription changes, so a subscription that stays scheduled to cancel can trigger more than one alert.
- If the customer has no email in Stripe, the body says so and the alert still goes out.
- To attach deal stage and owner to the alert, add a CRM lookup before the email. To track outreach, create a follow-up task in the project tool instead of, or as well as, the email.
- Keep real addresses and account IDs out of
workflow.ts; anyone who can read the file sees where alerts go. Change nothing else in the code.