Sync PagerDuty oncalls to Slack usergroups
Developer ToolAPI IntegrationRecipe ToolsBotsArtificial IntelligenceSales Enablement
What it does
When PagerDuty polling detects oncall changes, this automation looks up the matching Slack usergroup and updates it. Someone can rely on the usergroup to reach the current oncall without checking PagerDuty.
Who it's for
IT teams who need Slack usergroups to stay in sync with PagerDuty oncall schedules.
How teams use this
Keep oncall rosters current in Slack
Sync PagerDuty oncall schedules to Slack usergroups so the channel always shows the right people without manual updates. The team stays in sync across both tools.
Route alerts to the active oncall
Use the synced usergroup to mention the current oncall in alert notifications so the right person gets paged. Alerts go to whoever is scheduled in PagerDuty.
Broadcast oncall changes to multiple channels
Extend the lookup table to include more Slack channels and update each one with its corresponding oncall usergroup. Add rows to the table for each channel that needs the sync.
How it works
- Poll PagerDuty for oncall changes. Check PagerDuty at regular intervals via HTTP polling to detect when the oncall roster changes so the sync can run.
- Match oncall to Slack usergroup. Look up the PagerDuty to Slack Usergroup table to find which usergroup corresponds to the current oncall member.
- Fetch user details and update usergroup. Get user info for each oncall member from Slack and update the usergroup so it reflects the current roster.
- Update channel topic with oncall info. Change the channel topic to show the current usergroup so anyone in the channel sees who is oncall right now.