{"product_id":"n8n-workflow-auto-rotate-on-call-using-google-calendar-slack","title":"n8n Workflow: Auto Rotate On-Call Using Google Calendar + Slack","description":"\u003ch3\u003eAutomatically rotate weekly on-call duty—using Google Calendar, Slack, and public holidays\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow automatically chooses the fairest available on-call engineer each week, creates\/updates the on-call marker in \u003cstrong\u003eGoogle Calendar\u003c\/strong\u003e, and coordinates handovers in \u003cstrong\u003eSlack\u003c\/strong\u003e—including leave coverage and region-aware public holidays via the \u003cstrong\u003eNager.Date\u003c\/strong\u003e API.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on schedule and edits:\u003c\/strong\u003e runs every \u003cstrong\u003eThursday at 10:00\u003c\/strong\u003e and also triggers whenever an \u003cstrong\u003eon-call Google Calendar event\u003c\/strong\u003e is updated.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds scheduling context:\u003c\/strong\u003e reads past on-call events plus upcoming leave events from Google Calendar, then fetches \u003cstrong\u003epublic holidays\u003c\/strong\u003e using the \u003cstrong\u003eNager.Date API\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSelects the most suitable assignee:\u003c\/strong\u003e calculates the target on-call week and picks the best available person based on recent on-call history, required rest weeks, leave events, and region-specific public holidays.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates and announces assignments:\u003c\/strong\u003e if the weekly run finds no on-call event yet, it creates an \u003cstrong\u003eall-day on-call event\u003c\/strong\u003e in Google Calendar and posts the assignment to a Slack channel.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCoordinates handover:\u003c\/strong\u003e waits until the configured handover time, then updates the \u003cstrong\u003eSlack channel topic\u003c\/strong\u003e to reflect the current on-call person.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eManages swaps safely:\u003c\/strong\u003e when an edit looks like a swap, it validates the new assignee against the same rules and sends an approval request in Slack. If approved, it updates the Google Calendar marker and confirms in Slack; if not, it reverts the change and posts the reason.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eWeekly on-call rotations for SaaS teams who need equitable distribution.\u003c\/li\u003e\n  \u003cli\u003eCoverage planning that accounts for individual leave and \u003cstrong\u003epublic holidays\u003c\/strong\u003e automatically.\u003c\/li\u003e\n  \u003cli\u003eSlack-based approval flow for controlled on-call swaps.\u003c\/li\u003e\n  \u003cli\u003eTeams that want a single source of truth (Google Calendar) and live channel visibility (topic updates).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e Google Calendar (OAuth2), Slack, Nager.Date API\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/logic used:\u003c\/strong\u003e \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003ewait\u003c\/code\u003e, \u003ccode\u003emerge\u003c\/code\u003e, \u003ccode\u003eslack\u003c\/code\u003e, \u003ccode\u003eswitch\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup:\u003c\/strong\u003e configure OAuth2 credentials and select the on-call calendar + leave calendar, including the \u003cstrong\u003e“On-Call Week Edited”\u003c\/strong\u003e trigger.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46132801962163,"sku":"N8N-20179","price":61.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/ZtDbwPh9DFav4wPLfVDDz_X3tRV6O7.png?v=1790759309","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-auto-rotate-on-call-using-google-calendar-slack","provider":"N8N Commerce","version":"1.0","type":"link"}