Skip to main content
Some steps in an alert’s life need a person to decide: handing the alert to another operations center with a note about what was already checked, or calling an internal service to look something up. A custom alert action packages one of those steps into a button on the alert. An administrator defines the action once — what it sends, where it goes, and what the responder has to type first. The responder then picks it from the Actions menu on any alert it applies to. Recipients and format are fixed by the definition, so the only decision left at 3 AM is what to write. You build it with the same tool as the rest of Automation Actions — the difference is the trigger. Every other trigger fires on an event; this one waits for a person.
Read the alert → collect what the responder types → deliver it by email, REST call, or channel message.

Building a Custom Alert Action

Go to Settings → Shared Resources → Automation Actions → New, and pick User runs a custom alert action as the trigger. To make the action appear only on one team’s alerts, create it under that team instead of at the organization level.

Conditions

A custom alert action can be limited to the alerts it makes sense for, with conditions on the alert’s Field, Severity, Provider, and — for an organization-level action — Team. Set them on the whole action, on an individual delivery step, or both. The Variables input step takes no conditions: it always runs, so every delivery step has its values. Conditions decide which alerts offer the action, and which steps run when a responder picks it. An action for Datadog alerts only never appears on a PagerDuty alert; an action that emails one team for SEV0 and another for everything else carries that split as two Send email steps with their own conditions.

Step order

A custom alert action has a fixed shape:
  • An optional Variables input step.
  • One or more delivery steps — Invoke REST connection, Send email, or Publish to Channel. At least one is required.

Defining the input fields

Each field in a Variables input step has: The delivery steps can then use these values as placeholders anywhere they accept them — an email subject and body, a REST URL, headers, query, or JSON body — alongside the usual alert placeholders like {{ alert_title }} and {{ alert_severity }}. Your own fields are written with a prefix, as {{ __variables__.customer_name }}. Pick both kinds from the placeholder list in the editor rather than typing them by hand.

Who Sees the Action

An action appears on an alert only when all of these hold:
  • The automation is Enabled.
  • It is organization-level, or scoped to the team the alert belongs to. An alert with no team sees only organization-level actions.
  • The alert matches the action’s conditions, and at least one delivery step’s conditions. An action with no conditions appears on every alert in its scope.
  • The person viewing the alert has the Run alert actions permission. Read-only members never do, and the Actions menu does not show for them.

Running One from an Alert

Group 1321314819 On the alert, the responder opens the Actions menu and picks the action. A dialog opens showing:
  • The input fields, if the action defines any.
  • What this runs — a preview of exactly what will be sent: recipients, subject, channels, message body, with the alert values and their inputs already filled in. A delivery step whose conditions the alert does not match is listed as Skipped: conditions not met and does not run; only the steps that ran are marked Succeeded or Failed afterwards.
  • Run action.
Custom Alert02 If every step succeeds, the dialog stays open and shows Action completed, with each step in What this runs marked Succeeded. Close it with Done, or press Run again to repeat it. If a step fails, the others still run. The dialog shows Action failed and lists only the steps that did not go through, each with the reason under it. When some of them did go through, it adds a warning: Steps marked as succeeded have already run. Running the action again repeats them. Either way, the alert’s timeline gets an entry — who ran which action, and whether it succeeded. The Execution Logs tab of the automation action holds the run itself: one row per delivery step, with the outcome of each. Both the timeline entry and the View this run link in the dialog open it, filtered to that one run. Custom Alert03 Alert > Timeline Custom Alert04 Automation Action > Execution Logs tab