{
  "name": "Monitor [PROD] workflows in real time with the n8n Public API dashboard",
  "nodes": [
    {
      "id": "b049d0bd-c963-4af8-93b4-b264249d06ff",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -48
      ],
      "parameters": {
        "width": 500,
        "height": 560,
        "content": "## 📊 n8n Resiliency Dashboard\n\nThis workflow generates a **real-time HTML dashboard** that monitors all your `[PROD]`-tagged workflows.\n\n### What it does\n- Lists all workflows tagged `[PROD]`\n- Fetche"
      }
    },
    {
      "id": "4e5b8ef5-396b-464f-85ae-67f1461bfa82",
      "name": "Sticky Note - Config",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        -80
      ],
      "parameters": {
        "width": 260,
        "height": 196,
        "content": "### ⚙️ Step 1 — Config\nSet your n8n base URL here.\n\n**Example:**\n`https://your-instance.n8n.cloud`\n\nThis URL is reused by all HTTP Request nodes."
      }
    },
    {
      "id": "acfacd6c-7846-48cc-a9a3-1e7201e0f7ef",
      "name": "Sticky Note - Fetch & Filter",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -80
      ],
      "parameters": {
        "width": 370,
        "height": 196,
        "content": "### 🔍 Step 2 — Fetch & Filter\nFetches all workflows via the n8n API, then filters only those tagged `[PROD]`.\n\nTo monitor a workflow, add the tag `[PROD]` to it in n8n Settings."
      }
    },
    {
      "id": "eaf0fc85-3cc8-4fbb-b5e5-766bac347fca",
      "name": "Sticky Note - Executions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        912,
        -80
      ],
      "parameters": {
        "width": 316,
        "height": 196,
        "content": "### 📥 Step 3 — Fetch Executions\nFor each `[PROD]` workflow, fetches the last **50 successes** and **50 errors** in parallel.\n\nBoth run simultaneously via branched connections."
      }
    },
    {
      "id": "bda8db2d-3b5a-4a03-9eb6-347d78d69118",
      "name": "Sticky Note - Compare & Render",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        -80
      ],
      "parameters": {
        "width": 628,
        "height": 196,
        "content": "### 📊 Step 4 — Compare & Render\nMerges success + error executions, computes per-workflow stats (success rate, error count, last error timestamp), builds a 7-day error chart and renders the full HTML d"
      }
    },
    {
      "id": "dd3be40c-a892-4397-9fcd-ec9f1e42cb40",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1376,
        320
      ]
    },
    {
      "id": "674276f1-5a50-44ca-8806-038ef9ffefc6",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2048,
        320
      ]
    },
    {
      "id": "ee08f9c3-ce24-4f4c-a4ce-d50a616674a8",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        256,
        320
      ]
    },
    {
      "id": "10ac5efd-4434-4f81-8448-9393ac45a36e",
      "name": "GET success",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1152,
        224
      ]
    },
    {
      "id": "4e6d2c87-39d5-4105-aa92-7b5d57529b65",
      "name": "GET error",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1152,
        416
      ]
    },
    {
      "id": "5bb16dd7-04ba-41df-bfc2-32073319d000",
      "name": "Compare",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        320
      ]
    },
    {
      "id": "68365082-a8dd-40b4-8f18-1af48964ac11",
      "name": "HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        1824,
        320
      ]
    },
    {
      "id": "84da998d-421b-4f28-842d-1a93eb6767c3",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "position": [
        480,
        320
      ]
    },
    {
      "id": "d60eac82-4de8-4621-8af9-ae8c665a184b",
      "name": "API: List Workflows",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        704,
        320
      ]
    },
    {
      "id": "0f66b66b-a520-4378-b75d-5737632f35a8",
      "name": "Filter: [PROD] Tag",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        320
      ]
    }
  ],
  "connections": {
    "HTML": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Compare",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Config": {
      "main": [
        [
          {
            "node": "API: List Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compare": {
      "main": [
        [
          {
            "node": "HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET error": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "GET success": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter: [PROD] Tag": {
      "main": [
        [
          {
            "node": "GET error",
            "type": "main",
            "index": 0
          },
          {
            "node": "GET success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API: List Workflows": {
      "main": [
        [
          {
            "node": "Filter: [PROD] Tag",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}