{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Escalation — Outlook",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Open incident",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {
          "incident": "INC-88",
          "severity": "P1"
        }
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "send",
      "type": "output.outlook",
      "label": "Escalate",
      "category": "output",
      "config": {
        "credentialId": "",
        "accessToken": "${credential.microsoft.accessToken}",
        "operation": "send",
        "to": "mgmt@yourco.test",
        "cc": "",
        "bcc": "",
        "subject": "[{{ $json.severity }}] {{ $json.incident }} needs eyes",
        "bodyText": "Incident {{ $json.incident }} is {{ $json.severity }} — bridge is open.",
        "bodyHtml": "",
        "baseUrl": "",
        "timeoutMs": 15000
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Escalated",
      "category": "utility",
      "config": {
        "message": "escalated {{ $json.incident }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "send",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "send",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "SETUP: add a “microsoft-oauth2” credential in Admin → Credentials, then Test sends for real — the node is pre-wired with ${credential.…} references. Until then this demo saves and verifies but the send will report the missing credential. Escalates a P1 incident to management from your Microsoft 365 account."
  }
}