Skip to content

Triggers

A trigger is the event that starts a workflow. Batida supports several event-based triggers that cover the most common automation scenarios.

Available triggers

TriggerDescription
Incident openedFires when a new incident is created
Status changedFires when an incident transitions to a new status
Severity changedFires when an incident's severity level is updated
Incident resolvedFires when an incident is marked as resolved
Alert triggeredFires when an external alert is received
Maintenance scheduledFires when a maintenance window is created
Comment addedFires when a comment is posted on an incident
Commander assignedFires when a Commander is assigned to an incident

Configuring trigger conditions

Most triggers support additional conditions to narrow down when the workflow runs. For example, you can configure a workflow to run only when:

  • An incident is opened with severity P1.
  • An incident's status changes to "Monitoring".
  • An alert is triggered for a specific monitor.
json
{
  "trigger": "incident_opened",
  "conditions": {
    "severity": "P1",
    "type": "technical"
  }
}

Multiple triggers

A single workflow can have multiple triggers. This is useful when you want the same automation to run in different scenarios. For example, a Slack notification workflow might trigger on both "incident opened" and "severity changed."

Incident opened (P1)  ----\
                           --> Notify #incidents-critical channel
Severity changed (to P1) --/

Trigger evaluation order

When multiple workflows share the same trigger, they all run in parallel. There is no guaranteed execution order between workflows. If you need steps to run in a specific order, combine them into a single workflow.

Webhook triggers

In addition to built-in triggers, you can configure a workflow to start when an inbound webhook receives a specific payload. This lets you integrate with external systems that Batida does not natively support.

  1. Navigate to Settings > Webhooks and create an inbound webhook endpoint.
  2. In your workflow, select Webhook received as the trigger.
  3. Select the webhook endpoint and optionally define a payload filter.

See Webhook management for full setup instructions.

WARNING

Avoid creating workflows that trigger each other in a loop. Batida has a built-in safeguard that stops a workflow if it has already run 10 times within one hour for the same incident.

Built by the Batida team