The routing rules behind an incident alert bot are the product, not the messages it posts. IT and SRE teams that built alert bots with Chinese vendors usually repeat the same mistakes: severity levels that no one agreed on, alerts posted to a broad channel instead of the on-call person, repeated notifications that drown the signal, and escalation paths that exist only in the vendor’s head. The mistake log below lists those failures, the rule that prevents each, and the delivery arrangement that keeps the rules usable after the build. The same routing design applies whether the bot runs in Slack or in a microsoft teams bot deployment, because the decisions are about severity, ownership, and escalation rather than the messenger.
The mistake log from IT teams that botched alert routing
The first recurring mistake is treating every alert as equal. A bot that posts every monitoring event to one channel creates noise that responders learn to ignore; a real outage arrives in the same feed as a routine warning and gets missed. The fix is an explicit severity model agreed with the operations team before the bot is configured: which signals are critical, which are warnings, which are informational, and what each level triggers. The mapping from source signal to severity should live in a readable rule table, not inside opaque code.
The second mistake is routing to a channel instead of to a person. A channel may sit empty overnight; the on-call rotation may not check it. Alert routing should bind each critical alert to the current on-call identity from the rotation schedule, with the channel used for shared context rather than as the paging target. The third mistake is no deduplication: a flapping service fires the same alert every few minutes, filling the feed and waking people repeatedly. The bot should suppress repeats within a window and summarize rather than re-post.
The fourth mistake is missing escalation. If the on-call person does not acknowledge within a stated window, the alert should move to a backup, a manager, or an incident queue. Without that rule, an unanswered alert dies in a direct message. The fifth mistake is invisible rules: the routing logic lives in the vendor’s hosted panel, so when the relationship ends the buyer cannot see, edit, or transfer the rules. Each of these mistakes shows up during a real incident, which is the worst time to discover them.
Rule one: severity levels and who is paged at each
Define severity levels against the impact the signal represents. Critical means service down or customer-facing impairment requiring immediate response; warning means degraded performance or a risk that may escalate; informational means a routine event for awareness. Each level carries a defined action: critical pages the on-call person directly and opens the incident channel; warning posts to the team channel without direct paging; informational lands in a digest or low-traffic feed. The operations team should sign off on the level definitions, because responders’ expectations about response speed depend on them.
The rule table should map each alert source, metric, and threshold to a severity. Source systems may send their own severity labels, but the bot should apply the buyer’s own model rather than trust incoming labels, because naming conventions differ between monitoring tools. Where a signal can mean different things in different services, the rule should branch on service or environment. The table should be editable by the buyer’s ops lead, not only by the vendor, since thresholds and severity assignments change as the system matures.
Acceptance should test the level mapping with sample alerts at each severity, confirming that critical alerts reach the on-call identity, warnings reach the channel, and informational events stay out of the paging path. Severity rules that have never been exercised against samples tend to misroute in production, because edge cases in source labels surface only when real monitoring traffic flows through.
Rule two: channel mapping and on-call rotation binding
Each service, environment, and severity needs a destination. Production critical alerts go to the on-call person for that service and to the incident war room; production warnings go to the service team channel; staging and test alerts go to a lower-traffic channel. The mapping should be explicit per service, not a single broad destination for everything. Channel membership should match the audience that needs the alert, and bot posts should not invite external members into sensitive incident channels.
On-call binding requires the bot to read the current rotation from the scheduling system. The rule should resolve who is on duty at alert time rather than messaging a fixed group that may include people off shift. If the rotation source cannot be read programmatically, the buyer should maintain a schedule the bot consults, with a weekly handover that updates the current on-call identity. The bot should handle an unresolved on-call case by escalating to a backup or queue rather than dropping the alert.
Related context follows the alert: the affected service, environment, region, the alert history for the same service, and a link to the runbook. The destination channel and the paged person are two parts of one routing decision; a bot that posts to the right channel but pages the wrong person fails the incident response the same way one that misses the channel entirely. Notification content rules are covered in a later section, but the destination choice should be agreed with responders before content is refined.
Rule three: deduplication, silence, and escalation paths
Deduplication rules define the repeat window for the same alert. A flapping check should fire once, then suppress repeats for a stated interval, posting a count of repeats rather than new messages. A resolved alert should post a recovery note, and the rule should distinguish a real recovery from another flap. The bot should also support a silence or maintenance window: during a planned deployment or known incident, alerts for the affected service are held or summarized instead of paging, with the silence period recorded in the incident log.
Escalation rules start from acknowledgement. A critical alert that has not been acknowledged within the on-call window moves to the backup on-call, then to the engineering manager or incident commander, per a chain written in advance. The rule should record each escalation step and timestamp, so post-incident review can see how long the alert waited before reaching a responder. Escalation should not be silent: each step notifies the next person and keeps the incident channel informed.
Failure in the routing system itself needs a path too. If the bot cannot reach the on-call schedule, cannot post to Slack, or loses its connector, an alert should reach a fallback destination the operations team monitors independently. Dependencies that can fail silently are covered in retries and alerts for China-built workflow bots, and the alerting bot should follow the same retry, backoff, and fallback pattern rather than assuming its own channel always works.
Rule four: notification content and the runbook link
Alert messages should carry the minimum facts a responder needs to act: service, severity, environment, the signal and its current value, duration, and a link to the relevant runbook or dashboard. The message should not include secrets, internal host credentials, or full logs; those stay in the incident system the link points to. Format should be consistent across sources so responders can scan a feed without parsing different layouts from different monitoring tools.
The runbook link is what turns a notification into a response. Each alert type should map to a documented first-response procedure: what to check first, who to contact, when to declare an incident. A bot that posts an alert with no procedure link forces responders to reconstruct the process under pressure. Content rules should also state what the bot does not post: customer-identifying data, internal code excerpts, and messages that speculate about causes, since incident comms should remain factual until the review.
Post-incident, the bot’s records feed the review: who was paged, when acknowledged, how it escalated, and which alerts fired repeatedly. Aggregated routing metrics, such as alert volume per service and time to acknowledgement, are useful in a scheduled report; reporting patterns for these exports are described in scheduled automation reporting exports. The review uses these records to adjust severity thresholds and routing before the next incident.
Source code escrow and what happens to the rules at exit
Routing rules are stored configuration, and the buyer must own it. Source code escrow and handover arrangements should cover the bot’s code, the rule table, the channel and rotation mappings, and the deployment scripts. If the vendor holds everything in a hosted panel the buyer cannot export, the routing rules are effectively locked in, and leaving means rebuilding the alert logic elsewhere. The agreement should state what the buyer receives at milestones: repository access, the editable rules file, credentials for the on-call schedule connector, and a runbook for redeployment.
Escrow matters more for alerting than for many other bots, because an incident tool cannot simply stop without a gap in paging. A transfer between vendors needs a period where the old and new systems can run alongside each other, alerts can be compared, and the rules can be recreated in the new deployment. The handover should include sample alerts for each rule so the successor can verify routing without waiting for a real outage. Buyers should ask whether the rules are plain readable configuration or compiled into closed code; the former can be transferred, the latter must be rebuilt.
Account ownership follows the same separation as other integrations: the Slack app, the rotation system connector, and the hosting account belong to the buyer, with the vendor holding revocable operator access. Cross-border hosting region should be stated in writing, since incident alerts may carry service details the buyer does not want routed through an unexpected jurisdiction. The escrow and ownership terms should be negotiated before the deposit, not raised when the relationship is already ending.
Testing routing rules against real incidents before reliance
Routing rules should be rehearsed before they carry production alerts. Run staged alerts at each severity against a staging workspace, using recent real alerts anonymized as test cases: a critical outage, a warning flap, a staging noise event, and an alert whose on-call person does not respond. Verify destinations, binding, deduplication, and escalation against each case. A staging alert the buyer can trigger and trace end to end is the evidence that the rules work; a vendor demo that only shows a successful post does not test the failure branches.
After launch, review routing records weekly for the first month: missed acknowledgements, misrouted alerts, repeated flaps, and escalations that fired. Tune thresholds and mappings against that evidence, and keep the rule table editable so adjustments do not wait on a vendor ticket. Over time, the routing system should carry fewer alerts as noise is filtered and severity assignments settle; the sign of a healthy alert bot is fewer pages, each reaching the right person with a procedure attached, rather than a busy feed that keeps everyone informed and nobody paged.
Leave a Reply