Docs/Dashboards Automation/Automations

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 sectionWhat it shows
RulesEvery 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.
RunsThe 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:

  1. 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.
  2. 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.

RuleEventSeverityRecipients
Agent errorsAgent error rate above limitHighAgent owners, Admin
Agent not respondingAgent stopped sending tracesHighAgent owners, Admin. Escalates to Owner after 6 hours.
Agent latencyAgent latency above limitMediumAgent owners
New agent discoveredNew unregistered agent discoveredLowAdmin
Key createdBudget AI key createdMediumOwner
Provider credential createdProvider credential createdMediumOwner
Key expiringBudget AI key expiringHighOwner, Admin
API key expiringAPI key expiringHighOwner, Admin
Key expiredKey expiredHighOwner, Admin
Key rotated, Key revoked, Key deletedBudget AI key rotated, revoked, deletedMediumOwner, Admin
Key unusedBudget AI key unused, 90 daysLowOwner, Admin
Key abnormal usageBudget AI key usage spike, 2xHighAdmin
Provider credential changed, Provider credential deletedProvider credential changed, deletedHighOwner, Admin
Budget at 80%Budget threshold crossed, threshold from 80% to under 100%MediumAgent owners, Cost Analyst
Budget at 100%Budget threshold crossed, threshold 100% or moreHighAgent owners, Cost Analyst
Cost spikeCost spike, 2xHighAgent owners
Rate limit reachedRate limit reachedMediumKey owner, Admin
Model or provider failureModel or provider failureHighAdmin, Owner
Routing failoverRouting failoverMediumAdmin, Owner
Privileged role assignedPrivileged role changedHighOwner
Integration delivery failureIntegration delivery failedHighAdmin, Owner
Retention job failureData retention job failedMediumOwner
Export failureBlob storage export failedHighOwner, Admin
Batch export failureExport failedHighOwner, 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.

GroupEventKeyWhen it firesSeverity
GuardrailsGuardrail violationguardrail.violationA 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
GuardrailsTool misuseguardrail.tool_misuseAn 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
AgentsDrift alert openeddrift.alert_openedA new drift alert opens for an agent. data.category is Drift, Tool misuse or Privilege escalation.The drift alert's severity
AgentsDrift alert resolveddrift.alert_resolvedA drift alert was resolved automatically or by a person. Recovery event of Drift alert opened.The drift alert's severity
AgentsTool approval requestedapproval.requestedAn agent asked for approval before it can call a tool. See the note below.High
AgentsAgent suspendedagent.suspendedAn agent was suspended and its Budget AI keys were blocked.High
AgentsAgent resumedagent.resumedA suspended agent was resumed. Not the same as Agent resumed sending traces.Info
AgentsGovernance request submittedgovernance.request_submittedA developer submitted evidence for a governance request.Info
AgentsGovernance request decidedgovernance.request_decidedA governance request was approved or sent back for changes.Info
AgentsModel approval changedmodel.approval_changedA model was approved or its approval was removed.Info
AgentsAgent stopped sending tracesagent.silentAn agent with silence alerts on has sent no traces for longer than its threshold. One event per outage.Medium
AgentsAgent resumed sending tracesagent.traces_resumedAn agent that was reported silent sent a trace again. Recovery event of Agent stopped sending traces.Info
AgentsAgent silence alert closedagent.silence_stoppedA 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
AgentsAgent error rate above limitagent.error_rate_exceededThe share of an agent's traces with an error went above its limit over its window. See Health alerts.High
AgentsAgent error rate back to normalagent.error_rate_normalThe agent's error rate is back within its limit. Recovery event of Agent error rate above limit.Info
AgentsAgent latency above limitagent.latency_exceededAn agent's p95 response time went above its limit over its window.Medium
AgentsAgent latency back to normalagent.latency_normalThe agent's p95 latency is back within its limit. Recovery event of Agent latency above limit.Info
AgentsNew unregistered agent discoveredagent.discoveredAn agent sent its first trace and has no governance registration yet. Once per agent.Low
Discover AIUnsanctioned tool usedshadow_ai.unsanctioned_tool_usedSomeone used an AI tool that your organization marked Unsanctioned. One event per person, device, tool and day.From the tool's risk level
Discover AIUnsanctioned tool daily digestshadow_ai.unsanctioned_tool_digestOne summary per UTC day of every unsanctioned tool used.The highest tool severity
Discover AITool sanction changedshadow_ai.tool_sanction_changedAn AI tool was sanctioned, tolerated or unsanctioned.Info
Discover AIAI access requestedshadow_ai.access_requestedSomeone asked for access to an AI tool.Info
Discover AIAI access decidedshadow_ai.access_decidedAn AI access request was approved or rejected.Info
Discover AIAI warning dismissedshadow_ai.warn_dismissedSomeone dismissed the warning shown for an AI tool. Rules on this event must use Only when it happens repeatedly.Low
Discover AIAI access blockedshadow_ai.access_blockedAn 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 AIAI warning justifiedshadow_ai.warn_justifiedSomeone 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
DevicesDevice alertdevice.alertA 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
DevicesDevice certificate expiringdevice.certificate_expiringA device certificate expires soon.Medium, High on the last day
Budget AIBudget threshold crossedbudget.threshold_crossedSpend 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 AIBudget AI key createdgateway_key.createdA 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 AIBudget AI key rotatedgateway_key.rotatedA Budget AI key was replaced by a new one.Medium
Budget AIBudget AI key revokedgateway_key.revokedA Budget AI key was blocked and can no longer call the gateway.Medium
Budget AIBudget AI key deletedgateway_key.deletedA Budget AI key was deleted.Medium
Budget AIProvider credential createdprovider_credential.createdA provider credential, such as Azure OpenAI or Amazon Bedrock, was added or imported.Medium
Budget AIProvider credential changedprovider_credential.changedA provider credential was edited, or its secret rotated, moved or rolled back.High
Budget AIProvider credential deletedprovider_credential.deletedA provider credential was removed.High
Budget AIBudget AI key expiringgateway_key.expiringA 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 AIBudget AI keys need rotationgateway_key.rotation_neededA person left and the Budget AI keys they created need rotating. Fields: Keys and Person email.High
Budget AIBudget AI key unusedgateway_key.unusedA 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 AIBudget AI key usage spikegateway_key.usage_spikeA 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 AICost spikecost.spikeToday'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 AIRate limit reachedgateway.rate_limitedThe 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 AIModel or provider failuregateway.provider_failureA deployment kept failing and was taken out of rotation until its cooldown ends.High
Budget AIModel or provider recoveredgateway.provider_recoveredA deployment that was failing is serving requests again. Recovery event of Model or provider failure.Info
Budget AIRouting failovergateway.routing_failoverTraffic moved to a backup model group because the first choice failed. At most once per model group per hour.Medium
Budget AIModel price sync failedmodel_sync.failedThe daily model and price sync failed, or prices were held for review. Prices stay as they were. Once per failure streak.Medium
AccessPerson deprovisionedaccess.user_deprovisionedSCIM or Okta reconciliation removed a person from the organization.Medium
AccessAPI key createdapi_key.createdA project API key was created.Info
AccessAPI key revokedapi_key.revokedA project API key was deleted.Info
AccessAPI key expiringapi_key.expiringA project API key expires soon.Medium, High on the last day
AccessKey expiredkey.expiredA Budget AI key or project API key reached its expiry date. Once per key. Keys that live less than 7 days are skipped.High
AccessPrivileged role changedrbac.privileged_role_assignedSomeone 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
DataExport completedexport.completedA batch export finished.Info
DataExport failedexport.failedA batch export failed after its last attempt.Medium
DataBlob storage export failedintegration.blob_storage_failedA scheduled or manual blob storage export failed after its last attempt.High, Medium when partly exported
DataBlob storage export recoveredintegration.blob_storage_recoveredAn export succeeded after one or more failed runs. Recovery event of Blob storage export failed.Info
DataBlob storage export alert closedintegration.blob_storage_stoppedA failing export was turned off or deleted before it recovered. Closes the incident opened for the failure.Info
DataData retention job faileddata_retention.failedA retention run failed after its last retry, naming the data that was not deleted. At most once per project per day.Medium
DataRetention purge failedretention.purge_failedA data retention or audit retention purge could not finish. Field: What was being purged. At most once per organization per day.High
InvestigationsInvestigation case changedinvestigation.case_changedA case's status, owner or tags changed.Info
AuditAudit log entryaudit.eventAny entry written to the audit log.Info
AuditAudit settings changedaudit.settings_changedAn audit setting was changed, such as content-view logging or audit retention. Fields: Setting and the actor's email.High
AuditAudit export stoppedaudit.export_staleNo audit export to the SIEM bucket has succeeded for 3 hours or more. Field: Hours since last export.High
AuditAudit log integrity check failedaudit.integrity_brokenThe daily integrity check found an audit entry that was changed or deleted. Fields: Reason and Entries checked.High
PromptsPrompt version changedprompt.version_changedA prompt version was created, updated or deleted. Shown only when the Prompts module is visible.Info
OperationsIntegration delivery failedautomation.delivery_failedAn 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 misuse or Privilege 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 typeOperators
Choice (category, outcome, status)is any of, is none of
Textequals, 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
Severityis at least, is at most, is any of, is empty, is not empty
Yes or nois true, is false
Agent, tool, memberis any of, is none of, is empty, is not empty
List (labels, tools)contains any of, contains all of, contains none of
Dateis 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.

ActionWhat it doesSettings
WebhookSends a signed HTTPS POST with the event as JSON. See Webhooks.URL, API version, Headers
SlackPosts a message with the title, the body, the severity and an Open in ANTS button.Channel, Message. Needs the Slack integration.
Microsoft TeamsPosts a card with the event, severity and rule to the project's Teams channel.Title, Message. Needs the Microsoft Teams integration.
PagerDutyTriggers 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 incidentCreates 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 issueCreates an issue.Jira project, Issue type (default Task), Priority, Labels, Summary, Description. Needs the Jira integration.
Linear issueCreates an issue.Team, Priority, Title, Description. Needs the Linear integration.
LogicMonitorSends 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.
EmailSends an email with a link to the event.Recipients, Subject, Body. Needs an email server on the deployment.
In-app notificationAdds 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:

RecipientWho
MembersThe project members you pick.
RolesEveryone 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 ownerThe rule's owner.
Agent ownersThe owners of the agent the event is about, when it has one.
Project adminsMembers 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 ownersEveryone who can change the organization settings: the Owner role.
Key ownerThe 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 addressesEmail 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.

ResponseEventsWhat it does
Suspend agentGuardrail violation, Tool misuse, Drift alert opened, Budget threshold crossedSuspends the agent and blocks its Budget AI keys
Block Budget AI keyBudget threshold crossed, Budget AI key expiring, Budget AI key usage spikeBlocks the key
Set tool sanctionUnsanctioned tool used, AI access requested, AI warning dismissedSets the tool to Sanctioned, Tolerated or Unsanctioned for the organization
Add to investigation caseGuardrail violationAdds 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.

SettingWhat it doesDefault
SeverityEvent 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
EscalateIf 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.

EventParameterDefaultRange
Budget AI key unusedUnused for (days): the rule acts on keys with no calls for at least this many days.901 to 3650
Budget AI key usage spike, Cost spikeSpike multiplier: the rule acts when the current value is at least this many times the 7-day average.2x1.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

ControlWhat it doesDefault
ThrottleAt most Max runs per Window (minutes). Extra events are recorded as Throttled.On, 60 runs per 60 minutes
DeduplicateOne 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
DigestOne run per Interval (Hourly or Daily) that lists the events, instead of one per event. Events wait as In digest.Off
Active hoursRuns 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 5xx answers are retried up to 3 attempts in total, with backoff. A 4xx answer 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 2xx answer 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.

ActionAI governance rulesBudget AI rules
View rules, runs and alertsAutomations read: Owner, Governance Owner, Security & Compliance, Cost Analyst, Governance Viewer, Auditor and Project AdminBudget AI settings read: Owner, Budget AI Owner and Budget AI Viewer
Create, edit, test, import, enable a template pack, turn on or off, deleteAutomations write: Owner, Governance Owner and Security & ComplianceBudget 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 as automationAlert.

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 settingDefaultMeaning
QUEUE_CONSUMER_AUTOMATION_EVENT_QUEUE_IS_ENABLEDtrueEvaluates events against rules
QUEUE_CONSUMER_AUTOMATION_DELIVERY_QUEUE_IS_ENABLEDtrueDelivers actions
QUEUE_CONSUMER_AUTOMATION_MAINTENANCE_QUEUE_IS_ENABLEDtruePicks 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_CONCURRENCY10Events evaluated at once
AUTOMATIONS_DELIVERY_CONCURRENCY20Deliveries at once
AUTOMATIONS_MAX_INFLIGHT_PER_ORG50Deliveries in flight per organization
AGENT_SILENCE_ALERTS_PER_WINDOW20Silent-agent alerts raised per project per window. Agents over the limit are alerted in later checks.
AGENT_SILENCE_ALERT_WINDOW_MINUTES15Length of that window

Webhook destinations on an internal network are allowed with POLICY_WEBHOOK_ALLOWED_DESTINATIONS. See Destination rules.

Next steps

© 2026 ANTS Platform, Inc.Docs v1.0 · Last updated June 2026