Update active rotation event to current on-call contact
When a rotation event on your on-call calendar is active right now, its contact is posted to your routing channel so the current on-call is applied immediately.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/update-active-rotation-event-to-current-on-call-contact/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Engineering · Engineering operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/update-active-rotation-event-to-current-on-call-contact
Set it up with the CLI
- Add it. Copies the folder into
zaps/update-active-rotation-event-to-current-on-call-contact/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/update-active-rotation-event-to-current-on-call-contact - 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 update-active-rotation-event-to-current-on-call-contact - Check it. Its recent runs, with status and errors.
npx zap-pack logs update-active-rotation-event-to-current-on-call-contact
zaps/update-active-rotation-event-to-current-on-call-contact/
- 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/google-calendar.tsThe
google-calendaraccount it uses - connections/slack.tsThe
slackaccount it uses - triggers/event-updated.tsWhat starts it:
google-calendarevent_updated - workflow.tsThe code; each
ctx.stepis a step in the Zap 1 to fill in
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 Google Calendar event is created or updated on the rotation calendar (
google-calendar,event_updated). - Clock check: reads the current time and checks whether the event's start is at or before now and its end is after now. If not, the run stops and posts nothing.
- Contact: uses the event title as the contact handle. If the title is empty, it uses the default member list.
- Routing: posts one message to the routing channel (
slack) with the handle, the active window and the members.
The Zap never posts for an event that isn't active at the moment it runs.
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 |
|---|---|---|
REPLACE_CALENDAR_ID |
config.ts |
The rotation calendar. The trigger watches it, and the code does not read it |
REPLACE_ROUTING_CHANNEL |
config.ts |
The Slack channel that gets the routing message |
REPLACE_DEFAULT_MEMBER_EMAIL |
workflow.ts |
The people routed to when an event title gives no handle, as email addresses |
Also review the default with them: MENTION_CHANNEL in workflow.ts (false). Set it to true only if the routing message should ping the channel with @channel.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/update-active-rotation-event-to-current-on-call-contact, replace each REPLACE_… value as this file says, then run npx zap-pack deploy update-active-rotation-event-to-current-on-call-contact, 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-calendarto the user's Google Calendar connection for the account that owns the rotation calendar (the trigger uses it). Bindslackto the user's Slack connection for the workspace that holds the routing channel (it posts the routing message). - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/event-updated.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, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run this sample as a draft test run (run_workflow_draft in Zapier MCP) before publishing. Use a [install-test] event on the rotation calendar whose window covers the current time:
{
"id": "EVENT_ID",
"summary": "[install-test] On-call rotation",
"start": { "dateTime": "2026-10-29T18:50:00-04:00" },
"end": { "dateTime": "2026-10-29T22:00:00-04:00" }
}
Set the start and end so the window covers the moment you run it. Then check:
- Active path: the run output has
skippedabsent,routed.oktrue, and apermalinkfor the message in the routing channel. The message should show the event title, the window and the members. - Filter path: run again with a window that has already ended. The output should be
reason: "event-not-active", and the only operation that ran should becapture-checked-at. No message is posted.
If run-status tools aren't available, check the result in Slack directly. Ask the user to delete the test message and test event.
Notes
- The clock check uses the time the run reaches it, so a replayed run keeps its first check time.
endis exclusive: an event that has just ended is no longer active.- Google Calendar sends start and end as
start.dateTimeandend.dateTime. The code reads that shape. - If two events overlap, each one that updates posts its own message. Add de-duplication if that is noisy.
- Anyone who can post to the routing channel can see the on-call contact. Keep the channel appropriate for that.
- To notify on a routing change, add a Slack or email step after routing that runs only when the active contact differs from the last one posted.
- To flag urgent rotations, add a field to the routing payload, based on a calendar color or a name in the title.