← All case files
// case file
CASE / 01
Slack Alerting
SIESQLPYTSLA
SOURCE EVENTSLAGGING VIEWHOURLY JOBLAGCASE 01ALERTING OVER A LAGGING VIEW
● In productioncase file · 01 / 16
Case
#01
Where
GM OnStar
Categories
Python · Optimization
Read
~2 min
/01

Hourly Slack Alerting on a Laggy Siebel CRM View

Siebel CRMSQLPythonSlack API
Hourly polling against a reporting view with multi-hour lag, diffed against last-seen state. Used by 15 Commercial Ops teammates; they stopped missing new cases, replies, and assignments.
+
The Problem

The Siebel CRM reporting view Commercial Ops relied on lagged live case activity by several hours. New cases, customer replies, and assignments all sat invisible until someone happened to refresh a dashboard — there was no push notification layer on top of a CRM never built for one.

Adoption
Used by15 Commercial Ops teammates
BeforeNew cases, replies and assignments sat invisible until someone refreshed a lagging Siebel view
NowAbout 2 alerts a day, sent only when something new needs attention
DecisionWidened the lookback window from 60 to 720 minutes after tracing missed alerts to a roughly 4.5-hour lag in the source view, instead of just retrying.
IncidentA mid-run crash re-sent 17 alerts. Fixed by saving the watermark after every send, disabling job retries and seeding the 17 already sent.
How it's built

Built an hourly polling job against the lagging view that diffs against a last-seen cursor to detect genuinely new activity by type — new case, customer reply, or assignment — then posts formatted alerts to the right Slack channel. The job is designed around the view's inherent staleness rather than fighting it.

Technical Details
  • Last-seen cursor prevents duplicate alerts across runs
  • Classifies activity into new case / reply / assignment before routing
  • Slack webhook integration with channel-specific formatting
  • Tolerant of the CRM's multi-hour reporting lag by design
  • Runs hourly on a schedule, no manual trigger required
15
People alerted
~2
Alerts per day
0
Missed SLA windows
Siebel CRM viewmulti-hour lagHourly poll jobscheduledDiff vs cursorlast-seen stateClassify by typecase · reply · assignmentSlack alertsper-channel formatlag handled by designcursor stops duplicate alerts
Simplified flow. Illustrative only: no employer data or confidential details are shown.