How to alert Slack before a Zendesk SLA breach
Notify Slack before Zendesk SLA breaches occur with proactive alerts. Compare native Automation, n8n, and Claude Code setup options.

This recipe includes a downloadable n8n template and Claude Code skill.
Workflow
Why alert before SLA breaches?
SLA breaches are preventable — but only if your team knows they're coming. By the time a ticket breaches its SLA, the damage is done: you've missed your response commitment, reporting takes a hit, and the customer's frustration has compounded. Teams that track SLA compliance typically see breach rates between 5-15%, with most breaches happening during peak hours when agents are handling multiple tickets and don't notice a timer running out.
Proactive Slack alerts when tickets approach their SLA deadline give agents a window to act. A first-reply-time warning 30 minutes before breach means the difference between a timely response and a missed commitment. Research from Zendesk's own benchmarking shows that teams with proactive SLA monitoring reduce breach rates by 30-50% compared to reactive workflows. Over time, the alert feed also surfaces capacity issues — if the same time slots, ticket types, or agents consistently approach breach, you can fix staffing and routing rather than reacting to individual misses.
⏰ SLA Breach Warning — 22 min remaining
Ticket: #63104 — Unable to export reports since update
Requester: Lisa Wang (Acme Corp)
SLA Target: 2h first reply (1h 38m elapsed)
Priority: High
Assigned: Unassigned
How it works
Regardless of which tool you use, every approach follows the same pattern:
- Identify at-risk tickets — search for open tickets and check their SLA metrics (first reply time, resolution time) against the configured targets. Zendesk exposes this via the ticket metrics API (
/tickets/{id}/metrics.json) which includestarget,elapsed, andis_completedfor each SLA metric. - Calculate remaining time — for each SLA metric that hasn't been completed, compare
elapsedagainsttargetto find tickets within your warning threshold (e.g., 60 minutes before breach). - Alert the team — post a formatted Slack message with the ticket number, subject, specific SLA metric at risk, time remaining, priority, and a direct link to the Zendesk ticket.
The approaches below differ in timing precision (hourly vs. 15-minute), formatting (email vs. Block Kit), and flexibility (fixed rules vs. conversational queries).
Which approach should I use?
- Zendesk Automation — zero-cost starting point using built-in "hours until breach" conditions. Best for teams who just need email alerts and don't need tight timing. The main limitation: automations run hourly with up to 1-hour variance, so a "2 hours before breach" warning might actually fire between 1-2 hours before breach.
- n8n (Recommended) — polls ticket metrics every 15 minutes and posts Block Kit alerts to Slack. Best for teams who need tighter timing precision and rich Slack formatting. Free when self-hosted; $24/mo on n8n Cloud.
- Claude Code — a guided Claude Code skill with workflow guidelines and API references. Ask Claude to check SLA status, filter by priority or agent, or summarize breach trends — it generates and runs the right code. Best for teams already using Claude Code who want conversational flexibility alongside scheduled checks.
What you'll need
- Zendesk account on a plan that supports SLA policies (Professional plan or above)
- SLA policies configured in Admin Center with response and resolution targets
- Slack workspace with a channel for SLA alerts (e.g., #sla-warnings)
- (For n8n/code approaches) Zendesk API credentials: subdomain, agent email, API token
- (For n8n/code approaches) Slack Bot Token with
chat:writescope
Choose your approach
Select an approach below to see the full step-by-step guide.
Compare approaches
| Approach | Complexity | Cost | Latency | Code | Reliability |
|---|---|---|---|---|---|
Zendesk Automation | low | $0 (included) | real-time | none | 24/7 cloud |
n8n | medium | $0-24/mo | polling | low | 24/7 cloud |
Claude Code | low | Usage-based | on-demand | none | On demand |
Zendesk Automation
lown8n
mediumClaude Code
lowZendesk Automation
lowHourly automation checks 'hours until breach' — limited by 1-hour timing variance
n8n
mediumPoll ticket metrics every 15 min → filter approaching breaches → Slack Block Kit alert
Claude Code
lowGuided Claude Code skill — ask Claude to check SLA status, filter by priority, or summarize breach trends conversationally
Related Recipes
How to send Slack alerts for low Zendesk CSAT scores
Zendesk + Slack
How to alert Slack when a VIP customer creates a Zendesk ticket
Zendesk + Slack
How to auto-triage and tag Zendesk tickets with triggers
Zendesk
How to send CSAT surveys after ticket resolution in Gorgias and alert Slack on low scores
Gorgias + Slack
Frequently Asked Questions
Looking to scale your AI operations?
We build and optimize automation systems for mid-market businesses. Let's discuss the right approach for your team.