Choose who should receive alerts: a Slack channel, email or webhook on the monitor itself, or a notification group your team shares across monitors (Settings → Notification groups). Your agent checks evaluation and delivery separately, and reports any missing access or consent.
Inspect the monitor first
queryError even when the command exits successfully. Firings are condition crossings, not a log of every successful evaluation. Use pagination when reviewing older firings.Configure delivery
The workspace must be claimed. Connect Slack and confirm the destination with the person. Read the existing monitor before changing its delivery list: supplyingdeliveryConfigs replaces that list, so retain any destinations that should stay.For a monitor that should deliver only to the selected Slack channel, save delivery.json:channel_not_found and the monitor is unchanged. Invite Struct to a private channel first, then apply and read back:type: "email" and config: { "to": ["[email protected]"] }, with at most 20 combined to and cc recipients. Webhook delivery uses type: "webhook" and an HTTPS config.url; optional hmacSecret and headers configure authentication. Inspect the MCP monitor schema for the current input contract. Do not copy masked webhook credentials into a new destination or put real credentials in a checked-in JSON file. Use protected temporary input when required.Send to a notification group
A notification group is a named set of Slack channels and webhooks that several monitors share. Firings and repeats go to the groups’ destinations as well as the monitor’s owndeliveryConfigs; a destination listed twice gets one message. All-clears go only to destinations that received that firing and are still configured. People manage groups in the web app under Settings → Notification groups.Reuse a group that already covers the right destinations before creating one:struct notification-groupsneeds CLI 3.1.0 or newer. Ifstruct notification-groups --helpfails, use the MCP notification group tools, or ask the person to use Settings.
C0123ABCDE), #name (#on-call) or Slack link; Struct resolves and stores the canonical channel ID (invite Struct to private channels first, or pass their channel ID/link). --repeat sets how often a still-firing alert is sent again: at least 1m (at least 15m for iMessage), at most 3 reminders. Notification groups also support:- Webhooks (
--fileJSON with anhttpsURL resolving to a public address, optionalhmacSecretandheaders). - iMessage (
--imessage <email>/--imessage-chat <chat-id>, optional--investigate): requires iMessage enabled on the workspace, an active pairing (Settings → Account → iMessage) for person recipients, and an existing group chat containing Struct and the editor for chat recipients. Discover eligible recipients and chat IDs first withstruct notification-groups imessage-recipients --json. - SMS (
--sms <E.164>): start verification withstruct phone-numbers add <E.164>, then complete it withstruct phone-numbers verify <E.164> --code <code>.
notificationGroupIds. It replaces the monitor’s list of groups, so read the monitor first and keep any that should stay. Save groups.json:to/cc set counts once. A monitor that sends to Struct triage ("type": "managed_monitors") can’t also use groups. A group that a monitor still uses can’t be deleted; remove it from those monitors first. Creating, changing, testing and deleting groups needs the configure permission.Prove the path
Test every configured destination in a notification group without forcing a real monitor to fire:struct notification-groups testships in the upcoming CLI release. Until then, callPOST /api/notification-groups/{group_id}/testor use a disposable monitor with a controlled workload.
test requests a clearly marked [Test] notification for every configured Slack channel, webhook, iMessage recipient and SMS number in the group (claimed workspaces only) and returns per-destination {type, target, ok, error, errorCode} outcomes. Confirm ok: true for every destination, then confirm the actual test notification arrived at each destination before calling alert routing complete. For iMessage, success means the alert was handed to the teammate; for SMS, it means the provider accepted the message. A saved destination or successful monitor preview alone does not establish delivery.