intermediate35 minutes3 min read

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.

How to alert Slack before a Zendesk SLA breach

This recipe includes a downloadable n8n template and Claude Code skill.

Workflow

Check open tickets
SLA breach approaching?
Yes
Slack alert + escalate
No
Skip

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.

What you'll get
#sla-warnings
SLA Monitorapp9:41 AM

⏰ 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

View in Zendesk →

How it works

Regardless of which tool you use, every approach follows the same pattern:

  1. 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 includes target, elapsed, and is_completed for each SLA metric.
  2. Calculate remaining time — for each SLA metric that hasn't been completed, compare elapsed against target to find tickets within your warning threshold (e.g., 60 minutes before breach).
  3. 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

Prerequisites
  • 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:write scope

Choose your approach

Select an approach below to see the full step-by-step guide.

Compare approaches

Zendesk Automation

low
Cost: $0 (included)
Latency: real-time
Code: none
Reliability: 24/7 cloud

n8n

medium
Cost: $0-24/mo
Latency: polling
Code: low
Reliability: 24/7 cloud

Claude Code

low
Cost: Usage-based
Latency: on-demand
Code: none
Reliability: On demand

Zendesk Automation

low

Hourly automation checks 'hours until breach' — limited by 1-hour timing variance

Cost: $0 (included)View guide

n8n

medium

Poll ticket metrics every 15 min → filter approaching breaches → Slack Block Kit alert

Downloadable templateView guide

Claude Code

low

Guided Claude Code skill — ask Claude to check SLA status, filter by priority, or summarize breach trends conversationally

Downloadable skillView guide

Related Recipes

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.