TICKET MANAGEMENT

Predict SLA misses from ticket history and escalate to PagerDuty

Hourly, scores open tickets against a historical breach model stored in Postgres and pages an on-call lead through PagerDuty when the predicted miss probability crosses…

CategoryTicket Management
Enginesim
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerEvery hour
  • ActionFetch open ticketsZendeskZendesk
  • ActionLook up historical handle timesPostgreSQLPostgres
  • LogicScore breach probability within 4h
  • LogicFilter above risk threshold
  • OutputOpen PagerDuty incident for on-callPagerDutyPagerDuty

What it does

This workflow uses your own resolution history to estimate breach risk instead of relying only on the raw SLA clock. It pulls open tickets, joins each against a Postgres table of historical handle times by queue, priority, and tag, then computes a probability that the ticket will miss SLA in the next four hours. Tickets above the risk threshold trigger a PagerDuty incident so a lead can intervene before the breach lands.

When to use it

Use this when simple time-remaining math under-predicts breaches because some ticket types reliably run long. The model captures that pattern and warns you early on the tickets that statistically blow up.

How it works

  1. 1An hourly schedule starts the run.
  2. 2Fetch all open tickets from Zendesk with their queue, priority, and tags.
  3. 3Query Postgres for historical median and tail handle times matching each ticket's attributes.
  4. 4Compute predicted finish time and the probability it lands after the SLA deadline within 4 hours.
  5. 5Filter to tickets above the configured risk threshold.
  6. 6Open a PagerDuty incident summarizing the at-risk set and assigning the support on-call.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect ZendeskTickets, queues, knowledge base.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect PagerDutyIncidents, on-call, escalations.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.