# How SLA timers work

See when each SLA clock starts, pauses, warns, and breaches on tickets and conversations.

Every target in an [SLA policy](/tickets/sla-policies/) runs as its own clock on a ticket or conversation. Each clock ends in one of three ways: met, breached, or canceled.

## When clocks start and stop

| Target | Starts when | Met when |
| --- | --- | --- |
| **First reply** | The policy is applied with no teammate reply yet, or the customer sends their first message. | A teammate replies to the customer. |
| **Next reply** | The customer writes after a teammate has replied. | A teammate replies to the customer. |
| **Follow-up** | A teammate replies. | A teammate replies again. A customer reply cancels this clock. |
| **Resolution** | The policy is applied. | The ticket resolves, or the conversation closes. |

Keep these rules in mind:

- **Public human replies only:** internal notes and dimmi agent replies do not meet reply targets.
- **Resolve and reopen:** resolving cancels open reply clocks; reopening starts them again.
- **Tickets take priority:** if a conversation has a customer ticket with a policy, that policy owns its clocks. Otherwise, the conversation uses any policy applied by a workflow.

## Office hours

Each clock counts only the open hours in its policy's schedule. dimmi calculates the exact due time the moment the clock starts.

## Paused clocks

| Policy setting | Clock pauses while |
| --- | --- |
| **Pause while waiting on the customer** | The ticket is in **Waiting on customer**, or the conversation is snoozed. |
| **Pause while waiting on another team** | The ticket is in **Waiting on team**. |

A paused clock freezes its remaining time. When it resumes, dimmi shifts the due time forward by the time spent paused. Paused clocks never warn or breach.

## Warnings and breaches

dimmi checks active clocks once per minute, so warnings and breaches can fire up to 1 minute after the exact timestamp. Each clock warns once and breaches once.

- **Warning time:** fires at the due time minus **Warn before a breach**. Targets shorter than the warning window never warn.
- **Webhooks:** ticket clocks send `ticket.sla_warning` on warning and `ticket.sla_breached` on breach. See [webhook events](/developers/webhooks/events/).
- **Workflows:** both warnings and breaches start workflows using the matching SLA trigger.
- **Breach actions:** breaching runs the policy's **On breach** actions automatically.

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
