Workflow builder (step-by-step)
Use this guide with the live Workflows page (/workflows). It mirrors the current Definitions / Instances tabs and Steps / Canvas / JSON editors.
For how this differs from ITSM approval definitions on the catalog, read ITSM approval vs automation workflows.
Before you start
- You have at least one runbook saved (automation team usually prepares these). See Runbooks.
- Your role can access AUTOMATE → Workflows (per your tenant RBAC).
Checklist: first workflow (runbook only)
- Open Workflows → Definitions.
- Click Add workflow.
- Enter a clear Name (e.g.
Incident triage — diagnostics first). - Stay in Steps mode.
- Click Add step if you need more than one row.
- For each step, choose Runbook and select the runbook from the dropdown (
refmust be non-empty before save). - Reorder by dragging the row handle or using ↑ / ↓ so execution order matches your SOP.
- Click Create.
- Click Run on the row. Wait for the banner to finish; read Last run result for success or errors.
Checklist: add a human approval gate
Approval steps are easiest to add in JSON mode (the Steps grid is optimized for runbook rows).
- Edit your workflow.
- Switch to JSON.
- Insert an object like
{ "type": "approval", "label": "Manager sign-off" }between the runbook steps where the pause should occur. - Optionally add
approvers(informational hints) ortimeout_minutes. - Click Save changes (validation must pass).
- Run the workflow. When the engine pauses on approval, open Instances → View → Approve or Reject the pending step.
Checklist: notification or delay
In JSON, examples:
- Notification:
{ "type": "notification", "message": "Workflow reached checkpoint A", "channel": "slack" }(channel behavior depends on tenant integration setup). - Delay:
{ "type": "delay", "delay_seconds": 60 }
Save, then test with Run and inspect Last run result / Instances as applicable.
Checklist: branch with a condition
Use JSON (or Canvas if you prefer the graph). Example:
{
"type": "condition",
"label": "Severity check",
"expression": "severity == 'critical'",
"skip_steps": [1]
}Expressions support comparisons described in the product schema (e.g. ==, !=, >). Fix validation errors shown on save if the expression is empty or malformed.
Checklist: generate a report from a workflow
- Create a report definition first under Reports — note its id. See Reports.
- In the workflow JSON, add a step:
{
"type": "generate_report",
"label": "Weekly summary",
"report_definition_id": "your-report-definition-id",
"format": "html"
}- Save and Run (or trigger from an automated context). Ensure the report id exists and your tenant can execute report jobs.
Canvas tips
- Switch to Canvas after you have steps, or build from scratch on the canvas.
- When switching modes, the product syncs graph ↔ ordered steps; if something looks wrong, verify in JSON.
- Select nodes to inspect or adjust connections per the on-screen controls.
Troubleshooting
| Symptom | What to do |
|---|---|
| Save fails with validation | Read the error string; empty runbook ref, bad condition expression, or invalid delay_seconds are common. |
| Run returns an error in Last run result | Check runbook permissions, integration credentials, and that referenced ids (runbook, report) exist. |
| No instances listed | Instances appear when the engine records them (e.g. approval flows). Pure synchronous runs may only show Last run result. |
| Wrong runbook order | Reorder in Steps mode or fix order in JSON array before save. |
See also
- Workflows module — Feature overview and step types table
- Automation — Execution jobs and scheduling context