Automations & Webhooks
An automation rule decides what happens when something happens in a project:
- When: one event, for example a guardrail violation, an agent that stops sending traces or a Budget AI threshold.
- If: optional conditions on the event's fields.
- Then: one or more paths, each with its own condition and up to 5 actions, such as a webhook, a Slack message, a PagerDuty incident or an email.
Rules also have limits (throttle, deduplication, aggregation, digest and active hours) that keep bursts of events from flooding a channel. Every rule that fires opens an alert on the Alerts page, where people can acknowledge and resolve it.
Open Project Settings → Automations (/project/<projectId>/settings/automations). The old address /project/<projectId>/automations redirects there. The Prompts page has an Automations button that opens the page. The Slack, Microsoft Teams, Jira, Linear, PagerDuty and ServiceNow integration pages have one too, which opens the list filtered to rules using that action. AI governance and Budget AI rules are managed separately; see Permissions.
The Automations page
The page has two tabs. Import and New rule sit next to them.
| Tab or section | What it shows |
|---|---|
| Rules | Every rule with its Name, event (When), actions (Then), Status and Last run. Search, and filter by Event, Action and Status. The switch on each row turns the rule on or pauses it. The row menu has Edit (or View), Duplicate, Test, Export JSON and Delete. With no rules yet, the tab shows a few templates, the template packs and See all templates. |
| Other alerts (under Rules) | Alerts that are set up on their own settings pages and do not use rules: Drift incidents, Device alerts, AI access requests and SIEM push, each with On or Off and a Settings link. |
| Runs | The latest runs of every rule. Filter by Rule, Status and Event, and open a run to see each action's result. |
A rule's status is Active, Paused, Failing (its last run failed) or Needs attention (an action was turned off after repeated failures, see Failures and auto-disable).
A project can have up to 100 rules. Rule names are unique within a project.
Create a rule
Start
Select New rule. A side panel opens: start from Blank rule (Pick the event and actions yourself) or from a template, for example Page on-call for blocked secrets, Email agent owners and platform owners when an agent stops sending traces or Email project admins when a blob storage export fails. To bring in a rule exported from another project, select Import and pick the JSON file.
When
Under When, pick the Event. Each rule listens to one event. See Events. If and Then stay locked until an event is picked.
If
Under If (optional), add conditions on the event's fields, for example Severity is at least High and Category is any of PCI, PHI. Leave it empty to run on every event. See Conditions.
Then
Under Then, select Add action, choose the action type and fill in its settings. To run different actions for different events, select Split into paths. See Paths and Actions.
Limits, alert and details
Under Limits, adjust the throttle and turn on deduplication, a digest or active hours if you need them. Under Alert, set the rule's Severity, any rule parameter of the event, and Escalate. See Alert settings. Under Details, add a Description and pick the Owner, who gets health emails about the rule.
Save
Save the rule. A new rule that is on is saved with Save and turn on. For a new webhook, ANTS Platform shows the signing secret once in Copy your webhook secret. Copy it into your receiver.
New rules are on by default. The On switch in the editor, and the switch in the list, turn a rule on or pause it. A duplicated rule starts paused.
The editor shows the steps in one card with the Flow diagram of the rule's paths beside it (Hide or Show). The top bar with Save stays visible while you scroll. The editor has a Visual and a JSON mode, and three tabs: Rule, Runs (this rule's runs) and Versions.
Template packs
Below the templates, the Recommended alarm pack creates 27 operational alert rules at once, for agent health, keys and credentials, cost, the gateway and platform operations. Nothing is created until you confirm:
- Select Review. A table lists every rule in the pack with its Rule, Event, Severity and Notify recipients, 10 rules per page. Hover over an event to see its description. Rules whose name already exists in the project are marked Exists, and the footer shows how many already exist.
- Select Enable N rules, where N is the number of rules that do not exist yet. Only those rules are created, each turned on, with its severity and an email and an in-app notification to the recipients below. When every rule exists, the button reads All rules exist and is disabled. Hide closes the review.
Rules that already exist with the same name are kept as they are, and the result shows how many were added and kept. The rules are ordinary rules: edit them afterwards, for example to add Teams, ServiceNow or LogicMonitor. Enabling the pack asks for step-up verification when it is turned on.
| Rule | Event | Severity | Recipients |
|---|---|---|---|
| Agent errors | Agent error rate above limit | High | Agent owners, Admin |
| Agent not responding | Agent stopped sending traces | High | Agent owners, Admin. Escalates to Owner after 6 hours. |
| Agent latency | Agent latency above limit | Medium | Agent owners |
| New agent discovered | New unregistered agent discovered | Low | Admin |
| Key created | Budget AI key created | Medium | Owner |
| Provider credential created | Provider credential created | Medium | Owner |
| Key expiring | Budget AI key expiring | High | Owner, Admin |
| API key expiring | API key expiring | High | Owner, Admin |
| Key expired | Key expired | High | Owner, Admin |
| Key rotated, Key revoked, Key deleted | Budget AI key rotated, revoked, deleted | Medium | Owner, Admin |
| Key unused | Budget AI key unused, 90 days | Low | Owner, Admin |
| Key abnormal usage | Budget AI key usage spike, 2x | High | Admin |
| Provider credential changed, Provider credential deleted | Provider credential changed, deleted | High | Owner, Admin |
| Budget at 80% | Budget threshold crossed, threshold from 80% to under 100% | Medium | Agent owners, Cost Analyst |
| Budget at 100% | Budget threshold crossed, threshold 100% or more | High | Agent owners, Cost Analyst |
| Cost spike | Cost spike, 2x | High | Agent owners |
| Rate limit reached | Rate limit reached | Medium | Key owner, Admin |
| Model or provider failure | Model or provider failure | High | Admin, Owner |
| Routing failover | Routing failover | Medium | Admin, Owner |
| Privileged role assigned | Privileged role changed | High | Owner |
| Integration delivery failure | Integration delivery failed | High | Admin, Owner |
| Retention job failure | Data retention job failed | Medium | Owner |
| Export failure | Blob storage export failed | High | Owner, Admin |
| Batch export failure | Export failed | High | Owner, Admin |
Owner, Admin and Cost Analyst are roles. If no one holds a role in the pack, the result warns No one has and the role, and rules sent only to that role reach nobody until someone holds it. Rules with other recipients still reach them.
Events
The Event picker groups the 66 events by area. The severity is the value the event carries, which conditions, PagerDuty, LogicMonitor and Teams use, unless the rule sets its own severity.
| Group | Event | Key | When it fires | Severity |
|---|---|---|---|---|
| Guardrails | Guardrail violation | guardrail.violation | A guardrail detected or blocked sensitive data, unsafe content or a custom rule: Real-time Enforcement blocks, custom detector, Secrets & Credentials and tool misuse matches, and Scheduled Detection results. See Policy Violation Webhooks. | From the violation |
| Guardrails | Tool misuse | guardrail.tool_misuse | An agent called a tool that is not on its allow-list, found by a guardrail check on the Budget AI gateway or through Portkey. | High when blocked, Medium when audit only |
| Agents | Drift alert opened | drift.alert_opened | A new drift alert opens for an agent. data.category is Drift, Tool misuse or Privilege escalation. | The drift alert's severity |
| Agents | Drift alert resolved | drift.alert_resolved | A drift alert was resolved automatically or by a person. Recovery event of Drift alert opened. | The drift alert's severity |
| Agents | Tool approval requested | approval.requested | An agent asked for approval before it can call a tool. See the note below. | High |
| Agents | Agent suspended | agent.suspended | An agent was suspended and its Budget AI keys were blocked. | High |
| Agents | Agent resumed | agent.resumed | A suspended agent was resumed. Not the same as Agent resumed sending traces. | Info |
| Agents | Governance request submitted | governance.request_submitted | A developer submitted evidence for a governance request. | Info |
| Agents | Governance request decided | governance.request_decided | A governance request was approved or sent back for changes. | Info |
| Agents | Model approval changed | model.approval_changed | A model was approved or its approval was removed. | Info |
| Agents | Agent stopped sending traces | agent.silent | An agent with silence alerts on has sent no traces for longer than its threshold. One event per outage. | Medium |
| Agents | Agent resumed sending traces | agent.traces_resumed | An agent that was reported silent sent a trace again. Recovery event of Agent stopped sending traces. | Info |
| Agents | Agent silence alert closed | agent.silence_stopped | A silent-agent alert ended without a trace: monitoring was turned off or restarted, or the agent was suspended. Closes the incident opened for the silent agent. | Info |
| Agents | Agent error rate above limit | agent.error_rate_exceeded | The share of an agent's traces with an error went above its limit over its window. See Health alerts. | High |
| Agents | Agent error rate back to normal | agent.error_rate_normal | The agent's error rate is back within its limit. Recovery event of Agent error rate above limit. | Info |
| Agents | Agent latency above limit | agent.latency_exceeded | An agent's p95 response time went above its limit over its window. | Medium |
| Agents | Agent latency back to normal | agent.latency_normal | The agent's p95 latency is back within its limit. Recovery event of Agent latency above limit. | Info |
| Agents | New unregistered agent discovered | agent.discovered | An agent sent its first trace and has no governance registration yet. Once per agent. | Low |
| Discover AI | Unsanctioned tool used | shadow_ai.unsanctioned_tool_used | Someone used an AI tool that your organization marked Unsanctioned. One event per person, device, tool and day. | From the tool's risk level |
| Discover AI | Unsanctioned tool daily digest | shadow_ai.unsanctioned_tool_digest | One summary per UTC day of every unsanctioned tool used. | The highest tool severity |
| Discover AI | Tool sanction changed | shadow_ai.tool_sanction_changed | An AI tool was sanctioned, tolerated or unsanctioned. | Info |
| Discover AI | AI access requested | shadow_ai.access_requested | Someone asked for access to an AI tool. | Info |
| Discover AI | AI access decided | shadow_ai.access_decided | An AI access request was approved or rejected. | Info |
| Discover AI | AI warning dismissed | shadow_ai.warn_dismissed | Someone dismissed the warning shown for an AI tool. Rules on this event must use Only when it happens repeatedly. | Low |
| Discover AI | AI access blocked | shadow_ai.access_blocked | An access policy rule blocked someone from an AI tool. Fields: Tool, Rule, User email and Host. Rules on this event must use Only when it happens repeatedly. | Medium |
| Discover AI | AI warning justified | shadow_ai.warn_justified | Someone gave a reason to continue to an AI tool under an access policy warning. Same fields as AI access blocked. Rules on this event must use Only when it happens repeatedly. | Low |
| Devices | Device alert | device.alert | A device went silent or came back, lost its extension or agent, was enrolled on a software key, or a certificate revocation may not have taken effect yet. See Device alerts. | High for extension removed, agent unenrolled and revocation pending, Medium for software key issued, Low for silent, Info for back online |
| Devices | Device certificate expiring | device.certificate_expiring | A device certificate expires soon. | Medium, High on the last day |
| Budget AI | Budget threshold crossed | budget.threshold_crossed | Spend reached a budget threshold, for example 80% or 100%, reported in the budget's unit. | Low below 80%, Medium from 80%, High from 100% |
| Budget AI | Budget AI key created | gateway_key.created | A Budget AI key was created, by a person, the minting API or a claim link. Keys that live less than 7 days are skipped. | Medium |
| Budget AI | Budget AI key rotated | gateway_key.rotated | A Budget AI key was replaced by a new one. | Medium |
| Budget AI | Budget AI key revoked | gateway_key.revoked | A Budget AI key was blocked and can no longer call the gateway. | Medium |
| Budget AI | Budget AI key deleted | gateway_key.deleted | A Budget AI key was deleted. | Medium |
| Budget AI | Provider credential created | provider_credential.created | A provider credential, such as Azure OpenAI or Amazon Bedrock, was added or imported. | Medium |
| Budget AI | Provider credential changed | provider_credential.changed | A provider credential was edited, or its secret rotated, moved or rolled back. | High |
| Budget AI | Provider credential deleted | provider_credential.deleted | A provider credential was removed. | High |
| Budget AI | Budget AI key expiring | gateway_key.expiring | A Budget AI key expires in 30, 14, 7 or 1 days. A key created inside a stage gets only the closest one, and keys that live less than 7 days are skipped. | Medium, High from 7 days |
| Budget AI | Budget AI keys need rotation | gateway_key.rotation_needed | A person left and the Budget AI keys they created need rotating. Fields: Keys and Person email. | High |
| Budget AI | Budget AI key unused | gateway_key.unused | A Budget AI key has made no calls for at least the rule's Unused for (days). Checked once a day, and not repeated until the key is used and goes idle again. | Low |
| Budget AI | Budget AI key usage spike | gateway_key.usage_spike | A key's calls or spend in the last hour reached the rule's Spike multiplier times its average for the same hour over the previous 7 days. | High |
| Budget AI | Cost spike | cost.spike | Today's spend for an agent or for the whole project reached the rule's Spike multiplier times its 7-day daily average. Checked hourly, at most once per agent or project per day. | High |
| Budget AI | Rate limit reached | gateway.rate_limited | The gateway refused requests because a key, department or project hit its requests or tokens per minute limit. At most once per key and limit every 5 minutes. | Medium |
| Budget AI | Model or provider failure | gateway.provider_failure | A deployment kept failing and was taken out of rotation until its cooldown ends. | High |
| Budget AI | Model or provider recovered | gateway.provider_recovered | A deployment that was failing is serving requests again. Recovery event of Model or provider failure. | Info |
| Budget AI | Routing failover | gateway.routing_failover | Traffic moved to a backup model group because the first choice failed. At most once per model group per hour. | Medium |
| Budget AI | Model price sync failed | model_sync.failed | The daily model and price sync failed, or prices were held for review. Prices stay as they were. Once per failure streak. | Medium |
| Access | Person deprovisioned | access.user_deprovisioned | SCIM or Okta reconciliation removed a person from the organization. | Medium |
| Access | API key created | api_key.created | A project API key was created. | Info |
| Access | API key revoked | api_key.revoked | A project API key was deleted. | Info |
| Access | API key expiring | api_key.expiring | A project API key expires soon. | Medium, High on the last day |
| Access | Key expired | key.expired | A Budget AI key or project API key reached its expiry date. Once per key. Keys that live less than 7 days are skipped. | High |
| Access | Privileged role changed | rbac.privileged_role_assigned | Someone was given, removed from or demoted from the Owner role or a built-in or custom role that can manage members, roles, security settings or the organization, through the members page, an invitation, SCIM, group role mapping or Okta reconciliation. | High |
| Data | Export completed | export.completed | A batch export finished. | Info |
| Data | Export failed | export.failed | A batch export failed after its last attempt. | Medium |
| Data | Blob storage export failed | integration.blob_storage_failed | A scheduled or manual blob storage export failed after its last attempt. | High, Medium when partly exported |
| Data | Blob storage export recovered | integration.blob_storage_recovered | An export succeeded after one or more failed runs. Recovery event of Blob storage export failed. | Info |
| Data | Blob storage export alert closed | integration.blob_storage_stopped | A failing export was turned off or deleted before it recovered. Closes the incident opened for the failure. | Info |
| Data | Data retention job failed | data_retention.failed | A retention run failed after its last retry, naming the data that was not deleted. At most once per project per day. | Medium |
| Data | Retention purge failed | retention.purge_failed | A data retention or audit retention purge could not finish. Field: What was being purged. At most once per organization per day. | High |
| Investigations | Investigation case changed | investigation.case_changed | A case's status, owner or tags changed. | Info |
| Audit | Audit log entry | audit.event | Any entry written to the audit log. | Info |
| Audit | Audit settings changed | audit.settings_changed | An audit setting was changed, such as content-view logging or audit retention. Fields: Setting and the actor's email. | High |
| Audit | Audit export stopped | audit.export_stale | No audit export to the SIEM bucket has succeeded for 3 hours or more. Field: Hours since last export. | High |
| Audit | Audit log integrity check failed | audit.integrity_broken | The daily integrity check found an audit entry that was changed or deleted. Fields: Reason and Entries checked. | High |
| Prompts | Prompt version changed | prompt.version_changed | A prompt version was created, updated or deleted. Shown only when the Prompts module is visible. | Info |
| Operations | Integration delivery failed | automation.delivery_failed | An action could not deliver to Teams, ServiceNow, email or another channel after its retries. At most once per action per hour. See Delivery failure alerts. | High |
Severities are Info, Low, Medium, High and Critical.
Tool approval requested can be picked, but in this release pending tool approvals are shown only in ANTS Platform: the people who can decide get a Tool approval needed notification in the bell. Rules on this event do not run yet.
- Organization events. Tool sanction changed, Person deprovisioned and Privileged role changed happen at organization level. Each project with an enabled rule on them gets the event.
- Only new events. A rule acts on events that happen while it is on. Turning a rule on does not send earlier events. Guardrail violations and device alerts are picked up within a few seconds. After an outage, violations, audit log entries and budget thresholds older than 24 hours are skipped.
- Drift and tool misuse. Drift alerts come from the hourly drift check, which must be turned on for your ANTS deployment. Agent behaviour signals open drift alerts with the category
Tool misuseorPrivilege escalation. See Drift Alerts. - Agent health. Error rate and latency limits are set per agent or as a project default with Health alerts in the AI Agent Center, and silence thresholds with Silence alerts. Both are off until you turn them on. See AI Agent Center.
- Key events. Budget AI key and provider credential events are raised from the audit log, so every way of making the change raises them.
- Gateway events. Rate limit reached, Model or provider failure and Routing failover are raised by the Budget AI gateway without slowing down requests.
- Unsanctioned tools. Only tools marked Unsanctioned explicitly fire these events. See Unsanctioned tool alerts.
Recovery events
Some events have a recovery event that ends the problem: Drift alert resolved, Agent resumed sending traces, Agent silence alert closed, Agent error rate back to normal, Agent latency back to normal, Model or provider recovered, Blob storage export recovered and Blob storage export alert closed. A recovery event resolves the open alert of the event it closes, and the incidents its PagerDuty, ServiceNow and LogicMonitor actions opened. See Resolve incidents.
Any enabled rule on an event with a recovery event makes the project listen for that recovery event, so its alert resolves even without a rule of its own. To send a message when the problem ends, for example an all-clear email, add a rule on the recovery event.
Conditions
Conditions compare an event field with a value. The fields depend on the event, for example Category, Severity, Outcome, Source, Labels, Agent, Agent name and User email for a guardrail violation.
| Field type | Operators |
|---|---|
| Choice (category, outcome, status) | is any of, is none of |
| Text | equals, does not equal, contains, does not contain, starts with, ends with, matches (regular expression, up to 200 characters), is empty, is not empty |
| Number | =, !=, >, >=, <, <=, is between |
| Severity | is at least, is at most, is any of, is empty, is not empty |
| Yes or no | is true, is false |
| Agent, tool, member | is any of, is none of, is empty, is not empty |
| List (labels, tools) | contains any of, contains all of, contains none of |
| Date | is within the last, is before, is after |
Combine conditions with AND or OR, negate a group, and nest groups for logic like A and (B or C). The AND, OR and Not controls appear once there are two or more conditions. Groups go up to 3 levels deep, and a rule can have up to 50 conditions in total, counting the conditions on its paths. The editor sums up the rule in plain English next to a diagram of its paths.
A condition can filter out an alert you expect. For example, Agent stopped sending traces is Medium, so a condition Severity is at least High never matches it, while the outage still counts as reported.
Paths
A rule starts with one path. Split into paths adds an If path and an Otherwise path, so different events run different actions, for example page on-call for Critical and post to Slack for the rest.
- A rule has up to 5 paths, and each path up to 5 actions.
- Each path has its own conditions. The Otherwise path has none, runs when no other path matched, and must be last.
- Match mode: First match runs only the first path that matches, like if and else if. All matching runs every path that matches.
- Use Add path, Add Otherwise path, and the path menu (Move up, Move down, Remove path) to arrange them.
Actions
Each action uses the project's integrations from Project Settings → Integrations. An action whose integration is not connected shows Connect ... first, and a saved action that needs setup shows Needs setup.
| Action | What it does | Settings |
|---|---|---|
| Webhook | Sends a signed HTTPS POST with the event as JSON. See Webhooks. | URL, API version, Headers |
| Slack | Posts a message with the title, the body, the severity and an Open in ANTS button. | Channel, Message. Needs the Slack integration. |
| Microsoft Teams | Posts a card with the event, severity and rule to the project's Teams channel. | Title, Message. Needs the Microsoft Teams integration. |
| PagerDuty | Triggers an incident on an agent's PagerDuty service, and can acknowledge and resolve it. | Service, Severity (From event severity, Critical, Error, Warning or Info), Summary, Resolve automatically. Needs the PagerDuty integration with Event Routing on. |
| ServiceNow incident | Creates an incident, and can acknowledge and resolve it. | Impact, Urgency, Assignment group, Short description, Description, Close when resolved. Needs the ServiceNow integration with incident creation on. |
| Jira issue | Creates an issue. | Jira project, Issue type (default Task), Priority, Labels, Summary, Description. Needs the Jira integration. |
| Linear issue | Creates an issue. | Team, Priority, Title, Description. Needs the Linear integration. |
| LogicMonitor | Sends an alert to a LogicMonitor portal, and a clear when it recovers. | Portal, Source name, Bearer token, Severity, Clear when resolved, Title, Message. See LogicMonitor. |
| Sends an email with a link to the event. | Recipients, Subject, Body. Needs an email server on the deployment. | |
| In-app notification | Adds a notification to the bell in ANTS Platform. | Recipients, Title, Message. Needs in-app notifications on for the organization. |
Recipients
Email and in-app notifications go to any mix of:
| Recipient | Who |
|---|---|
| Members | The project members you pick. |
| Roles | Everyone who holds the role when the alert fires, in the organization or in this project. Any built-in or custom role can be picked, and a role created later appears in the list. A person's project role counts when they have one, otherwise their organization role, and members whose project role is None get nothing. A role nobody holds reaches nobody, and a deleted custom role shows as Missing role. |
| Rule owner | The rule's owner. |
| Agent owners | The owners of the agent the event is about, when it has one. |
| Project admins | Members who can edit rules of the event's product: Owners and Budget AI Owners for Budget AI events, and Owners, Governance Owners and Security & Compliance for the other events. |
| Platform owners | Everyone who can change the organization settings: the Owner role. |
| Key owner | The person who owns the Budget AI key the event is about, when it has one. A key owner who left the organization is not notified. |
| Other addresses | Email only: up to 50 addresses outside the project. |
Recipients are worked out when the alert fires, so people who join or leave a role need no rule change. Non-members are never emailed through roles or owners. Members who hold only a Budget AI role are reached for Budget AI events only.
Message templates. Titles and messages can use {{variable}} to insert event values, such as {{severity}}, {{subject.name}}, {{data.category}} or {{links.app}}, and {{#list}}...{{/list}} to repeat for each item of a list. The editor lists the variables of the chosen event and shows a preview. An unknown variable is an error when you save. A template can be up to 4 KB. Leave a template empty to use the event's default message.
An action's menu has Send test, Turn off or Turn on, and Remove.
Resolve incidents
PagerDuty, ServiceNow and LogicMonitor actions can close what they opened. With Resolve automatically (PagerDuty), Close when resolved (ServiceNow) or Clear when resolved (LogicMonitor) on, the incident is resolved when the source event resolves:
- the event's recovery event arrives for the same incident, for example Agent resumed sending traces for the same agent, or Drift alert resolved for the same drift alert;
- someone with automations edit access selects Resolve on the alert, or the alert expires.
Acknowledge on the alert also acknowledges the PagerDuty incident and moves the ServiceNow incident to In Progress with a work note. LogicMonitor has no acknowledge. Only actions that sent a trigger for that incident are updated, and updates go one way, from ANTS Platform to the incident tool.
A failure series is one incident, not one per event: a silent agent is one incident per outage, and a failing blob storage export is one incident until it recovers.
Platform responses
Platform responses let a rule act on ANTS Platform itself. They are off by default. An organization admin turns them on with Automation responses in Organization Settings → Features.
| Response | Events | What it does |
|---|---|---|
| Suspend agent | Guardrail violation, Tool misuse, Drift alert opened, Budget threshold crossed | Suspends the agent and blocks its Budget AI keys |
| Block Budget AI key | Budget threshold crossed, Budget AI key expiring, Budget AI key usage spike | Blocks the key |
| Set tool sanction | Unsanctioned tool used, AI access requested, AI warning dismissed | Sets the tool to Sanctioned, Tolerated or Unsanctioned for the organization |
| Add to investigation case | Guardrail violation | Adds the trace to the case queue you pick |
- Adding a response needs the permission for that change (for example Budget AI key admin to suspend an agent or block a key), and step-up verification when it is turned on. Project API keys cannot add responses.
- With Require approval on, the response waits in the run as Awaiting approval, and the rule owner and project admins get a notification. A member who can edit automations selects Approve or Reject on the run. A response that is not decided within 24 hours is cancelled.
- Responses run as the system, and every change is written to the audit log with the rule. They are never sent by Send test.
Alert settings
The Alert step sets how the rule's alerts are ranked and followed up.
| Setting | What it does | Default |
|---|---|---|
| Severity | Event default, or Info, Low, Medium, High or Critical. Replaces the event's own severity for this rule: conditions, messages, the webhook payload, PagerDuty, LogicMonitor and the Alerts page all use it. | Event default |
| Escalate | If the rule's alert is still open after After (hours) (1 to 168), the people you pick are notified once by email and in-app, titled "Escalated: " and the alert title. Acknowledging or resolving the alert before then stops it. Recipients are picked as for an action, without other addresses. | Off, 6 hours |
Rule parameters
Some events take a number on the rule instead of a condition. It appears in the Alert step.
| Event | Parameter | Default | Range |
|---|---|---|---|
| Budget AI key unused | Unused for (days): the rule acts on keys with no calls for at least this many days. | 90 | 1 to 3650 |
| Budget AI key usage spike, Cost spike | Spike multiplier: the rule acts when the current value is at least this many times the 7-day average. | 2x | 1.1x to 100x |
Spike checks skip a key, agent or project with less than 3 days of history, and a key hour with fewer than 20 calls or under $1 of spend. Agent and project cost spikes need at least $1 spent today.
Limits
| Control | What it does | Default |
|---|---|---|
| Throttle | At most Max runs per Window (minutes). Extra events are recorded as Throttled. | On, 60 runs per 60 minutes |
| Deduplicate | One run per combination of the chosen Fields (up to 5) within the window. Repeats are recorded as Deduplicated. | Off, 30 minutes |
| Only when it happens repeatedly (under When) | Runs once when the event happens Times times within Window (minutes) for the same group (Grouped by, up to 3 fields), then waits one window before counting again. The event carries an aggregate block with the count. | Off, 5 times in 10 minutes |
| Digest | One run per Interval (Hourly or Daily) that lists the events, instead of one per event. Events wait as In digest. | Off |
| Active hours | Runs only inside the window (Time zone, Start, End, Days). Outside hours: Skip the event, or Hold until open (recorded as Held). | Off, weekdays 09:00 to 18:00 UTC |
A rule uses either a digest or aggregation, not both.
Events with a recovery event notify once per incident. While the rule's alert for it is open, a repeat within 24 hours of the last one is recorded as Deduplicated and only counted on the alert. After 24 hours without a repeat, the old alert closes and the next repeat notifies again. An event that arrives after its incident already recovered, including one held for active hours, is dropped.
The silent-agent templates, and the rules created by Silence alerts, use a throttle of 100 runs per hour for the alert and 200 for the all-clear, so a project-wide outage is not cut off by the throttle. When you build your own rule on Agent stopped sending traces for a large project, keep its throttle at least as high.
Test a rule
- Test rule runs the conditions against the event's sample or against real events of that type from the last 7 days (up to 500), and shows which match. Nothing is sent.
- Send test on a saved action sends the event's sample, marked
"test": true, to the saved destination and shows the status, duration and the start of the response. It does not retry, never counts as a failure, never creates a run and never opens an alert. It is limited to 5 per action per minute. Save your changes first.
Runs
A run is stored when an event matched a rule, or was throttled, deduplicated, held or put in a digest. Events that match no rule are not stored. Open a run to see its path and each action's status (Pending, Awaiting approval, Succeeded, Failed, Skipped or Cancelled), attempts, HTTP status, the first 500 characters of the response and any error. A failed action has Retry.
Run details show the event payload only to members who can see that kind of event. Runs are deleted after 30 days.
Versions, import and export
- Every save adds a version. The Versions tab lists who changed the rule and when. Compare shows a version against the current rule, and restoring a version saves it as a new version, so you can switch back later.
- Export JSON downloads the rule. Import on the Rules list creates a rule from that file or from the rule JSON. Imported rules have no owner, and webhooks get new secrets.
Delivery and failures
- Each action is delivered once per event and rule, also when the same event arrives twice.
- An attempt times out after 10 seconds. Network errors, timeouts and
5xxanswers are retried up to 3 attempts in total, with backoff. A4xxanswer is not retried. - An action run that has not been delivered within 24 hours is cancelled.
- At most 50 deliveries per organization are in flight at once. The rest wait their turn.
Failures and auto-disable
After 5 failed deliveries in a row, the action that failed is turned off, not the whole rule. Its other actions keep running. The rule shows Needs attention, the action shows Turned off after failures, and the rule owner (or its creator) gets an email and an Automation action turned off notification. Fix the destination, then turn the action back on from its menu, or pause and turn on the rule, which turns its failed actions back on. Send test never counts toward this.
Delivery failure alerts
When an action still fails after its last retry, ANTS Platform raises Integration delivery failed with the failed channel (data.channel, for example TEAMS, SERVICENOW or EMAIL), the rule and the error. Create a rule on it to hear about broken channels through another one, for example email the project admins when Teams rejects alerts.
- At most one event per action per hour.
- A rule on this event never delivers through the channel that failed: its actions of that type are skipped.
- Failures of rules on Integration delivery failed itself never raise the event, so it cannot loop.
Webhooks
A webhook action posts one signed JSON request per event to your URL.
- Payload. New webhooks send the v2 event envelope, with
content-type: application/json; ants-api-version=v2. Webhooks moved from the old automations keep their v1 body. See Payload and Payload v1. - Signature. Each request carries
x-ants-signature: t=<unix timestamp>,v1=<hex signature>, an HMAC-SHA256 of"<t>.<raw body>"with the action's signing secret. See Headers and signature. The secret is shown once when the action is saved. Regenerate in the action replaces it, and the old one stops working. - Success is any
2xxanswer within 10 seconds. Redirects are not followed. - Destination. The URL must be
https://and resolve to public addresses only. See Destination rules. - Headers. Add your own headers and mark a header Secret to store it encrypted and never show it again.
Existing automations
Automations created before rules were moved to rules automatically. A prompt automation became a Prompt version changed rule, and a policy violation automation became one rule per event type it covered, for example "Name (Guardrails)" and "Name (Drift)". Moved rules have no throttle and keep their webhook URL, secret, headers and v1 payload. If some could not be converted, the Automations page lists them under "old automations were not moved to rules" with the reason. They no longer run, so recreate each one as a rule.
Public API
Rules can be managed with a project API key through /api/public/automations: list, create, get, replace and delete. See API Reference.
Permissions
Rules belong to one product, decided by their event. Rules on events in the Budget AI group are Budget AI rules; every other rule is an AI governance rule.
| Action | AI governance rules | Budget AI rules |
|---|---|---|
| View rules, runs and alerts | Automations read: Owner, Governance Owner, Security & Compliance, Cost Analyst, Governance Viewer, Auditor and Project Admin | Budget AI settings read: Owner, Budget AI Owner and Budget AI Viewer |
| Create, edit, test, import, enable a template pack, turn on or off, delete | Automations write: Owner, Governance Owner and Security & Compliance | Budget AI settings admin: Owner and Budget AI Owner |
-
Members see only the rules, runs and events of the products they can read. A member with only Budget AI access sees only Budget AI rules and events, and no Other alerts. A member without Budget AI access does not see Budget AI rules or events.
-
Creating or changing a rule of a product you cannot edit is refused, for example "Budget AI rules are created by Budget AI owners." Budget AI Department roles do not give access to Automations.
-
Project API keys can manage rules of both products.
-
Each event also needs read access to its data. For example, Guardrail violation rules need violations read and Discover AI users read, Device alert rules need Discover AI devices and users read, agent health and silence rules need agent profiles read, and Data retention job failed rules need project settings edit access. A role that cannot see an event cannot create or turn on rules on it.
-
When your deployment has step-up verification turned on, adding an action (also by creating or importing a rule, or enabling a template pack), changing a webhook URL, LogicMonitor destination or email recipients, regenerating a signing secret, approving a response and retrying a response ask for a code. Renaming, changing conditions or limits, and turning a rule on or off do not.
-
Every create, change, turn on or off, delete, restore, import, test send, retry and approval is written to the audit log as
automation, without secrets or event payloads. Acknowledging and resolving alerts is written asautomationAlert.
See Members & Roles.
Self-hosted deployments
Rules are evaluated and delivered by the worker service. Email actions need email turned on for the worker: EMAIL_ENABLED=true, SMTP_CONNECTION_URL, and EMAIL_FROM_ADDRESS_ADMIN or EMAIL_FROM_ADDRESS. Otherwise the run shows "Email is not configured".
| Worker setting | Default | Meaning |
|---|---|---|
QUEUE_CONSUMER_AUTOMATION_EVENT_QUEUE_IS_ENABLED | true | Evaluates events against rules |
QUEUE_CONSUMER_AUTOMATION_DELIVERY_QUEUE_IS_ENABLED | true | Delivers actions |
QUEUE_CONSUMER_AUTOMATION_MAINTENANCE_QUEUE_IS_ENABLED | true | Picks up violations and other events, runs the agent health, silence, spike and key checks, sends digests and escalations, releases held runs, expires approvals and alerts, and deletes old runs |
AUTOMATIONS_DISPATCH_CONCURRENCY | 10 | Events evaluated at once |
AUTOMATIONS_DELIVERY_CONCURRENCY | 20 | Deliveries at once |
AUTOMATIONS_MAX_INFLIGHT_PER_ORG | 50 | Deliveries in flight per organization |
AGENT_SILENCE_ALERTS_PER_WINDOW | 20 | Silent-agent alerts raised per project per window. Agents over the limit are alerted in later checks. |
AGENT_SILENCE_ALERT_WINDOW_MINUTES | 15 | Length of that window |
Webhook destinations on an internal network are allowed with POLICY_WEBHOOK_ALLOWED_DESTINATIONS. See Destination rules.
Next steps
- Alerts: acknowledge, resolve and escalate fired alerts
- Policy Violation Webhooks: payload, signature and receivers
- LogicMonitor
- API Reference: Automations
- Notifications
- Governance Notifications