{
  "name": "Monitor scheduled workflow health in n8n with automatic trigger checks",
  "nodes": [
    {
      "id": null,
      "name": "Test Run",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -464,
        -304
      ]
    },
    {
      "id": null,
      "name": "Daily Check at 9am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -464,
        -496
      ]
    },
    {
      "id": null,
      "name": "Fetch All Active Workflows",
      "type": "n8n-nodes-base.n8n",
      "position": [
        -224,
        -400
      ]
    },
    {
      "id": null,
      "name": "Discover Scheduled Workflows",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        -400
      ]
    },
    {
      "id": null,
      "name": "Get Latest Execution",
      "type": "n8n-nodes-base.n8n",
      "position": [
        272,
        -400
      ]
    },
    {
      "id": null,
      "name": "Check for Stale Workflows",
      "type": "n8n-nodes-base.code",
      "position": [
        512,
        -400
      ]
    },
    {
      "id": null,
      "name": "Any Stale?",
      "type": "n8n-nodes-base.if",
      "position": [
        752,
        -400
      ]
    },
    {
      "id": null,
      "name": "Alert — Workflows Missed Schedule",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        992,
        -496
      ]
    },
    {
      "id": null,
      "name": "All Healthy",
      "type": "n8n-nodes-base.noOp",
      "position": [
        992,
        -304
      ]
    },
    {
      "id": null,
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        -752
      ],
      "parameters": {
        "width": 524,
        "height": 798,
        "content": "## Monitor — Scheduled Workflow Health\n\nAutomatically detects when scheduled or polling-trigger workflows stop running. No hardcoded config needed — it auto-discovers all active scheduled workflows an"
      }
    },
    {
      "id": null,
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        -480
      ],
      "parameters": {
        "width": 480,
        "height": 260,
        "content": "## Discovery"
      }
    },
    {
      "id": null,
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        -480
      ],
      "parameters": {
        "width": 720,
        "height": 260,
        "content": "## Staleness Check"
      }
    },
    {
      "id": null,
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        -544
      ],
      "parameters": {
        "width": 480,
        "height": 380,
        "content": "## Alert or OK"
      }
    }
  ],
  "connections": {
    "Test Run": {
      "main": [
        [
          {
            "node": "Fetch All Active Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Any Stale?": {
      "main": [
        [
          {
            "node": "Alert — Workflows Missed Schedule",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "All Healthy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Check at 9am": {
      "main": [
        [
          {
            "node": "Fetch All Active Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Latest Execution": {
      "main": [
        [
          {
            "node": "Check for Stale Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Stale Workflows": {
      "main": [
        [
          {
            "node": "Any Stale?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch All Active Workflows": {
      "main": [
        [
          {
            "node": "Discover Scheduled Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Discover Scheduled Workflows": {
      "main": [
        [
          {
            "node": "Get Latest Execution",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}