Create a workflow
At a glance
| Audience | App Admin |
|---|---|
| Plan | Premium (up to 10), Enterprise (unlimited) |
| Where in the app | Response Orchestration > Workflows |
Why and when to use this
Create a workflow when you need a rule that isn't built in: escalate unassigned alerts, update a field, call a webhook, or notify stakeholders on close. This article walks through a real example end to end.
The example
DB - Escalate Unassigned Critical to Incident Commander: if a critical database alert is still Open 15 minutes after it began, send a message to Carlos Reyes. Stop once the alert is no longer Open.
Step 1: Create the workflow
Go to Response Orchestration > Workflows and click Add Workflow.
Enter a Name.
Choose the Workflow Type: Alert.
Choose the Alert Type.
Turn on Scheduled and set Recurrence Interval (Minutes) to 5.
Click Add Workflow. It opens in the builder, disabled.

Add Workflow: (1) name, (2) type, (3) Scheduled and recurrence interval

The new workflow: (1) disabled, (2) time-based condition required, (3) stop condition required
Step 2: Add conditions
Click Add Condition.
Choose Time From Beginning (Minutes), operator is, value 15. Click Save.
Click Add Condition again, click Add, and choose Alert Status is Open. Click Save.

(1) every field you can test on an alert

(1) Alert Status values
Step 3: Add the action
Click Add Action and choose Send Message.
Choose the Escalation Policy or Response Play that sends the message.
Click Add Recipients and choose Carlos Reyes.
Enter a Subject, using { } to insert alert details, for example <<Alert.Description>>.
Enter the Message and click Submit.

Send Message: (1) policy, (2) send-to options, (3) recipients, (4) subject with a variable, (5) message
Step 4: Add a stop condition
Click Add Condition under Stop Conditions and choose Alert Status is not Open. Click Save.
Step 5: Enable and attach
Turn the workflow on with the Enabled toggle.
Open the escalation policy, go to Automate, click Add Workflow, and add it.

The finished workflow

Attached to Database Ops - Critical

Usage: (1) the policies and plays using this workflow
What happened in the live test
Test alert 216797 used Database Ops - Critical and was left unassigned:
| Time | Event |
|---|---|
| 10:22 | Alert created; Maya Chen (Primary) emailed |
| 10:27 | Sam Patel (Secondary) emailed; his SMS and call failed on a demo number |
| 10:37 | Priya Raman (Manager) emailed |
| 10:38 | Workflow sends the escalation message to Carlos Reyes |
| 10:43, 10:48, 10:53... | Workflow sends it again every 5 minutes |

Test alert 216797 Audit Trail: (1) Maya, (2) Sam with failed SMS and call in red, (3) Priya, (4) repeated workflow runs

Messages: (1) the workflow message repeating every 5 minutes
| Important: scheduled workflows repeat. A scheduled workflow re-checks its conditions every recurrence interval and runs its actions every time they're true. Time conditions such as "Time From Beginning is 15" behave like "at least 15." For example, the escalation message went to Carlos at 15 minutes and then every 5 minutes after that until the alert was closed. Design your stop condition around what should end the repeats, or use a recurrence long enough that repeats are acceptable as reminders. |
Best practices
Test on a demo policy first.
Always add a stop condition to scheduled workflows, and expect the action to repeat every interval until it's met.
Workflows in use can't be deleted. Remove them from policies first; check Usage.
Use variables in subjects so recipients know which alert it is.
Don't send a message through the same policy the workflow is attached to. AlertOps blocks this to prevent loops.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| Add doesn't add a second condition row | The first condition hasn't been saved | Save, then reopen and click Add |
| Pressing Escape lost my changes | Escape closes the drawer without saving | Click Save first |
| Workflow never runs | Disabled, or not attached to a policy | Enable it and attach it in Automate |
| Add Workflow is greyed out on a policy | The policy is used in a workflow's Send Message | Use a different policy for the message |
Condition operators
| Operator | True when the value |
|---|---|
| Is / Is Not | Equals, or doesn't equal, the value |
| Is Changed | Has changed since the last check |
| Is Any / Not Is Any | Matches, or matches none of, a list |
| Contains Any / Not Contains Any | Contains, or contains none of, the text |
| Matches Regex / Not Matches Regex | Matches, or doesn't match, a regular expression |
Useful standard conditions
Alert Status: Open, Assigned, On Hold, Closed, Cancelled.
Topic, Owner, and any custom field on the alert type.
Complete Delivery: everyone has been sent the notification.
Time From Beginning / Before SLA / After SLA: minutes (Scheduled required).
Message text
Mix fixed text with alert fields using Insert Keyword, for example "Still open after 30 minutes: <Subject>". Choose Send to Original Recipients to reach everyone on the alert, or name users and groups, such as a managers group, to reach people who weren't on it. Launch New Thread starts a separate conversation instead of replying on the alert.
Plans and permissions
| What | Available on | Permission needed | Built-in roles that include it |
|---|---|---|---|
| Workflows (Step 1: Create the workflow; Step 2: Add conditions; Step 3: Add the action; Step 4: Add a stop condition; and more) | Premium (up to 10), Enterprise (unlimited) | Workflows_Update to change; Workflows_View to view | Owner, App Admin |
Custom roles can include any of these permissions. See the Entitlements reference.