> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vibraniumlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Alert Actions

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](https://docs.vibraniumlabs.ai/automations/automation-actions-overview.md) — 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

![](https://mintcdn.com/vibranium-labs/z6cYEzz6lasH-USn/images/automations/6.png?fit=max\&auto=format\&n=z6cYEzz6lasH-USn\&q=85\&s=bcdd9c47ab8df106c472b4de4126b4d2)

Each field in a **Variables input** step has:

| Field | What it is |
| - | - |
| **Key** | How you refer to the value in the steps below — e.g. `customer_name`. Starts with a letter; letters, numbers, and underscores only, up to 100 characters. |
| **Label** | What the responder sees above the input box — e.g. *Customer ID*. |
| **Type** | String, Long text, Number, Boolean, or Dropdown list. A dropdown list carries its own set of choices. |
| **Required** | Whether the responder must fill it in before the action can run. |
| **Default value** | Optional. What the box starts with when the dialog opens. For a dropdown list it has to be one of the choices. |

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.

![](https://mintcdn.com/vibranium-labs/z6cYEzz6lasH-USn/images/automations/7.png?fit=max\&auto=format\&n=z6cYEzz6lasH-USn\&q=85\&s=28527c2619f83d2b4b7050cded473233)

***

### 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](https://mintcdn.com/vibranium-labs/I_0RvV65IgQ7VVWJ/images/Group-1321314819.png?fit=max\&auto=format\&n=I_0RvV65IgQ7VVWJ\&q=85\&s=1ce9195890da9c2a1ebd4bee346069e9)

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](https://mintcdn.com/vibranium-labs/I_0RvV65IgQ7VVWJ/images/CustomAlert02.png?fit=max\&auto=format\&n=I_0RvV65IgQ7VVWJ\&q=85\&s=8a96101af2e4c214ec2e09c4049dae5c)

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](https://mintcdn.com/vibranium-labs/I_0RvV65IgQ7VVWJ/images/CustomAlert03.png?fit=max\&auto=format\&n=I_0RvV65IgQ7VVWJ\&q=85\&s=d1833521fef8925f2bced7cba5c4c84b)

Alert > Timeline

![Custom Alert04](https://mintcdn.com/vibranium-labs/I_0RvV65IgQ7VVWJ/images/CustomAlert04.png?fit=max\&auto=format\&n=I_0RvV65IgQ7VVWJ\&q=85\&s=b1044dd4607054a32ce5da5224cc8e34)

Automation Action > Execution Logs tab


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.