Automatically escalate alarms to supervisors
Configure escalation rules that notify supervisors and managers when an alarm is not acknowledged in time.
What you will achieve
By the end of this tutorial you will have a complete escalation chain: when an alarm is not acknowledged within 15 minutes, an email will be sent to the supervisor; if it persists, a WhatsApp message will go to the manager. Estimated time: 20 minutes.
Prerequisites
- An active Rela AI account with dashboard access
- A machine agent with at least one alarm rule configured
- Contact details configured for the supervisor (email) and manager (WhatsApp)
- An active email account in Settings > Email Accounts
Step 1: Create an escalation rule
- In the sidebar, go to Agents and select your machine agent.
- Go to the Alarms > Escalation section.
- Click New Escalation Rule.
- Configure the basic fields:
- Name:
Critical Alarm Escalation - Trigger:
alarm_unack(unacknowledged alarm) - Wait time:
15minutes
- Name:
You should see the escalation form with the steps section available for configuration.
alarm_unack trigger activates when an alarm remains unacknowledged for the configured time. Other available triggers include alarm_active and task_overdue.Step 2: Add step 1 — Email to supervisor
- In the Escalation Steps section, click Add Step.
- Configure the first step:
- Order:
1 - Channel:
Email - Recipient: select the supervisor (e.g.,
Maria Lopez) - Email account: select your active email account
- Subject:
[URGENT] Unacknowledged alarm: {{alarm_name}} - Message:
The alarm "{{alarm_name}}" from agent "{{agent_name}}" has been unacknowledged for over 15 minutes. Please review and take immediate action.
- Order:
You should see step 1 listed with the Email channel and the selected recipient.
{{alarm_name}} and {{agent_name}} are automatically replaced with actual values when the escalation executes.Step 3: Add step 2 — WhatsApp to manager
- Click Add Step again.
- Configure the second step:
- Order:
2 - Additional delay:
15minutes (executes 30 minutes after the original alarm) - Channel:
WhatsApp - Recipient: select the manager (e.g.,
Roberto Sanchez) - WhatsApp number: select a connected number
- Message:
CRITICAL ALERT: The alarm "{{alarm_name}}" has been unacknowledged for 30+ minutes. The supervisor was notified but has not responded. Requires manager attention.
- Order:
You should see both steps listed in order, with cumulative times visible.
Step 4: Link the escalation to the alarm rule
- Go to Alarms > Rules.
- Select the existing alarm rule (e.g.,
High Vibration P-101). - In the Actions section, look for Escalation.
- Select
Critical Alarm Escalationfrom the dropdown. - Click Save.
You should see the alarm rule updated with the escalation linked and an escalation icon visible.
Step 5: Test with a critical event
- Send an event that triggers the alarm (use the agent's webhook):
curl -X POST https://api.rela.ai/v1/events/webhook/your_webhook_id \
-H "Content-Type: application/json" \
-d '{
"timestamp": "2026-03-26T14:00:00Z",
"machine_id": "P-101",
"metrics": {
"vibration_mm_s": 8.5,
"temperature_c": 75.0
},
"status": "running"
}'- Do NOT acknowledge the alarm. Wait 15 minutes.
- Verify in the dashboard:
- The alarm appears in Alarms with status
activeand priorityhigh. - After 15 minutes, the supervisor receives the email.
- The alarm appears in Alarms with status
You should see the active alarm and, after 15 minutes, an entry in the escalation log showing "Step 1 executed: Email to Maria Lopez".
Step 6: Verify the escalation works
- Go to Alarms > Escalation > Log.
- Look for the entry of the alarm you just tested.
- Verify the details:
| Time | Step | Channel | Recipient | Status |
|---|---|---|---|---|
| +15 min | 1 | Maria Lopez | Sent | |
| +30 min | 2 | Roberto Sanchez | Pending (or Sent if you waited 30 min) |
You should see the complete escalation log with timestamps and statuses for each step.
- To stop the escalation, acknowledge the alarm by clicking Acknowledge on the alarm page.
Summary
| Step | Action | Result |
|---|---|---|
| 1 | Create escalation rule | Rule with alarm_unack trigger at 15 min |
| 2 | Add step 1 | Email to supervisor configured |
| 3 | Add step 2 | WhatsApp to manager at 30 min |
| 4 | Link to alarm | Escalation associated with alarm rule |
| 5 | Test with event | Alarm generated and escalation started |
| 6 | Verify log | Escalation chain executed correctly |
Next steps
- Configure multiple escalation levels for more complex chains
- Integrate with external systems to notify tools like Slack or PagerDuty
- Review ISA 18.2 best practices for professional alarm management