Ops pager — email on failure

FAILURE-ALERT PRESET: the Error Trigger's recovery lane sends an email (SMTP) with the failure details — import, fill the SMTP credential, done. The demo fails on purpose so the lane fires; the console mirrors the alert body.

What’s inside

5 nodes — every type links to its full reference page.

StepNodeType
Nightly export Inject input.inject
Export (fails) Stop and Error error-handling.stop-and-error
On failure Error Trigger error-handling.error
Email on-call Send Email output.send-email
Alert mirror Console utility.console

Import it

  1. Studio → Import — paste the JSON below (or the URL /docs/templates/ops-pager-email-on-failure.json).
  2. Or ask the AI Copilot with the JSON pasted after the phrase:
    import this workflow json into a new workflow named "Ops pager — email on failure"
  3. Any credentials the nodes need are ${credential.…} references — add them once in Admin → Credentials and the template picks them up. Nothing secret ships in a template.
The workflow document (flowdrome.workflow.v1, 5 node types)
{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Ops pager — email on failure",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Nightly export",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {
          "export": "daily-ledger"
        }
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "boom",
      "type": "error-handling.stop-and-error",
      "label": "Export (fails)",
      "category": "utility",
      "config": {
        "message": "export path \\\\vault\\ledger is unreachable",
        "errorCode": "EXPORT_UNREACHABLE"
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "onerr",
      "type": "error-handling.error",
      "label": "On failure",
      "category": "trigger",
      "config": {
        "includeNodeErrors": true
      },
      "position": {
        "x": 0,
        "y": 228
      }
    },
    {
      "id": "mail",
      "type": "output.send-email",
      "label": "Email on-call",
      "category": "output",
      "config": {
        "to": "oncall@example.test",
        "subject": "🚨 workflow failed: {{ $json.workflowName }}",
        "text": "{{ $json.error.message }}",
        "host": "${credential.smtp.host}",
        "user": "${credential.smtp.user}",
        "password": "${credential.smtp.password}"
      },
      "position": {
        "x": 530,
        "y": 228
      }
    },
    {
      "id": "mirror",
      "type": "utility.console",
      "label": "Alert mirror",
      "category": "utility",
      "config": {
        "message": "would email on-call: {{ $json.error.message }}"
      },
      "position": {
        "x": 530,
        "y": 406
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "boom",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "onerr",
      "sourcePort": "output",
      "targetNodeId": "mail",
      "targetPort": "input"
    },
    {
      "id": "e2",
      "sourceNodeId": "onerr",
      "sourcePort": "output",
      "targetNodeId": "mirror",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "FAILURE-ALERT PRESET: the Error Trigger's recovery lane sends an email (SMTP) with the failure details — import, fill the SMTP credential, done. The demo fails on purpose so the lane fires; the console mirrors the alert body."
  }
}

Generated from the verified demo corpus — this exact document seeds and runs on a fresh Flowdrome. Raw JSON: ops-pager-email-on-failure.json.