> ## 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.

# Run Assistant Agent

## What It Does

Use **Run Assistant Agent** when you want an AI assistant to automatically triage a new alert. The agent analyzes the alert, then posts its findings as a **threaded reply under the alert message** — keeping all AI output tucked under the alert instead of adding channel noise.

You choose which agent runs: a built-in agent (**RCA**) or a reusable **Assistant Agent** you configured in **Agent Studio** with a custom prompt, integrations, and reference files.

> [!WARNING]
>
> **This action must follow a Publish to Channel action.** Run Assistant Agent is reply-only — it replies under the alert card that a **Publish to Channel** step posted earlier in the same automation. Add a Publish to Channel action *above* it, otherwise the automation cannot be saved.

![Assistant Agent](https://mintcdn.com/vibranium-labs/I_0RvV65IgQ7VVWJ/images/AssistantAgent.png?fit=max\&auto=format\&n=I_0RvV65IgQ7VVWJ\&q=85\&s=5fd38ee023c7feea623bc1ecb723ac7b)

## When To Use It

* Automatically kick off root-cause analysis the moment a high-severity alert fires
* Give responders a head start with likely causes and next steps before anyone opens the alert
* Run a custom, runbook-aware agent for a specific class of alerts (e.g. database issues)

## Before You Start

* The automation must use the **Alert Created** trigger — Run Assistant Agent only runs for new alerts.
* The automation must include a **Publish to Channel** action ordered **before** this one.
* To use a customized agent, create it first in **Agent Studio**. Otherwise pick the built-in **RCA** agent.

## How It Works

1. The alert-created automation fires and a **Publish to Channel** step posts the alert card.
2. Run Assistant Agent posts the agent's command as a reply under that card, the way a person would.
3. The selected agent analyzes the alert, using its instructions, allowed integrations, and any attachments.
4. The findings are posted as a **threaded reply** under the alert card. The card itself is not edited — everything the agent produces stays in the thread.

If no alert card was posted — because the Publish to Channel step was skipped by its conditions or failed — the action **silently does nothing**. There is nothing to reply under, and the user never saw an alert.

If the automation has **Group burst alerts into one analysis** turned on, the assistant does not run once per alert when several arrive together. The first alerts still run as above. The alert that brings the count to the threshold starts a group and waits; every alert this automation admits during the wait gets a short reply pointing at that first alert instead of its own analysis. When the wait ends, the agent runs **once** over the whole group and posts one analysis under the alert that started it. See **Grouping burst alerts** below.

## Configuration

| **Setting** | **What it does** |
| - | - |
| **Assistant agent** | Which agent runs for this action — a built-in agent (**RCA**) or one of your **Assistant Agents** from Agent Studio. |
| **Step conditions** | Optional filters that gate *this action only*. When empty, the action runs whenever the top-level trigger fires. Use this to run the agent on a narrower set of alerts than the rest of the automation (e.g. only `SEV0`). |
| **Group burst alerts into one analysis** | Off by default. When on, alerts that arrive together are investigated in one pass instead of one at a time. See **Grouping burst alerts** below. |
| **Alerts to start a group** | How many alerts this automation must admit within the window before a group starts. `2`–`100`, default `2`. The alert that reaches this count leads the group. |
| **Within (minutes)** | The window those alerts are counted over, measured from the first of them. `1`–`60`, default `5`. |
| **Wait before analysing (minutes)** | How long a started group keeps collecting further alerts before the single analysis runs. `1`–`60`, default `5`. |

## Step Conditions

Step conditions are layered on top of the automation's top-level conditions — the agent runs only when **both** match. This lets a single automation publish every alert that is `SEV1` or more severe to a channel, but only run the agent on `SEV0` alerts.

## Grouping burst alerts

One monitoring trigger firing across a fleet — the same process down on twenty hosts within a minute — produces twenty alerts, and by default twenty investigations, each seeing a single host. **Group burst alerts into one analysis** turns those into one investigation that sees all twenty.

**What counts as a group.** Every alert *this automation admits* within the window. The automation's own conditions are the definition — nothing else is compared, not titles, not hosts, not tags. That keeps the rule predictable, but it means:

> [!WARNING]
>
> **An automation with no conditions groups every alert it sees.** If it admits both a database alert and a network alert inside the same five minutes, they are investigated together. If that is not what you want, narrow the automation's conditions (for example, `title` contains `Process Down`), or split it into one automation per kind of alert.

**What each alert gets.**

* Alerts *before* the group starts run exactly as today, each with its own analysis.
* The alert that starts the group waits, then receives the one shared analysis under its card.
* Alerts admitted *during* the wait receive a reply under their own card naming the leading alert and linking to it: *"Several alerts arrived together within 5 minutes; the assistant is analysing them in one pass under alert 405 — PROBLEM: … Process Down."* No alert thread is left silent.

**What the agent is told.** The ids and titles of every alert in the group, with an instruction to analyse them together, to group them by what they are actually about first — they may not all be the same problem — and to report one finding per group. A broad automation therefore produces a structured answer rather than a confused one.

**If something fails**, the fuse fails open: the alert runs its own analysis as if grouping were off. Grouping can only ever reduce the number of investigations, never lose one.

**This is not Alert Grouping.** [Alert Grouping](https://docs.vibraniumlabs.ai/alerts/alert-grouping.md) collects related alerts, by properties you choose, into one *incident*. Burst grouping here only decides how often the *assistant* runs; it does not merge alerts, change paging, or create incidents. The two are independent and can both be on.

It works the same way in Slack and Microsoft Teams.

## Troubleshooting

> [accordion] The agent didn't post anything.
>
> * It needs a **Publish to Channel** action *before* it that actually posted. If that step was skipped (its conditions didn't match) or failed, the assistant silently does nothing.
> * Confirm this action's **step conditions** match the alert (e.g. it may be scoped to `SEV0` only).
> * It runs on **Alert Created** only — it is a no-op on other triggers.
> * If it uses a custom Assistant Agent, confirm that agent still exists and its integrations include the tools it needs.

> [accordion] I can't save the automation.
>
> * A Run Assistant Agent action requires a **Publish to Channel** action ordered above it. Add one, or move the publish step earlier.

> [accordion] An alert got a reply pointing at another alert instead of its own analysis.
>
> * Expected when **Group burst alerts into one analysis** is on: the alert arrived while a group was collecting, so it joined that group. The reply links to the leading alert; the shared analysis appears under that alert's card once the wait ends.

> [accordion] The group's analysis covered alerts that weren't about the same thing.
>
> * A group is whatever this automation admits within the window, so a broad automation groups unrelated alerts. Narrow the automation's conditions, or split it into one automation per kind of alert. The agent is asked to report one finding per group, so the answer should still separate them — but the fix is in the conditions.


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