{
  "name": "Monitor website uptime and diagnose errors with Gemini and Slack alerts",
  "nodes": [
    {
      "id": "bf2344bb-71e3-4f4a-b5c6-ec05c5dab72b",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        -320
      ],
      "parameters": {
        "width": 352,
        "height": 768,
        "content": "## Website Uptime Monitor\n\n### How it works\n1. A schedule trigger checks your website every 5 minutes\n2. The HTTP Request node hits your URL and captures the response\n3. A Code node evaluates the stat"
      }
    },
    {
      "id": "cbac54a2-1ff0-40ff-9af5-0dcf22f716b9",
      "name": "Note - Health Check",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        -320
      ],
      "parameters": {
        "width": 520,
        "height": 388,
        "content": "## Health check\nHits the target URL and evaluates response status and timing."
      }
    },
    {
      "id": "5e2d74a1-690c-4796-b8e8-f60076824c38",
      "name": "Note - AI Diagnosis",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -320
      ],
      "parameters": {
        "width": 520,
        "height": 524,
        "content": "## AI error diagnosis\nGemini analyzes the error pattern and suggests probable root causes."
      }
    },
    {
      "id": "e6d00b03-a2df-40e7-9cb9-a44338eb08cb",
      "name": "Note - Notifications",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1088,
        -320
      ],
      "parameters": {
        "width": 428,
        "height": 532,
        "content": "## Logging and notifications\nLogs every check to Sheets. Sends Slack alerts for downtime and daily Gmail reports."
      }
    },
    {
      "id": "68eebcd0-915e-4457-ae4a-c35f458b9a4f",
      "name": "Check Every 5 Minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        80,
        -112
      ]
    },
    {
      "id": "21ac396b-19bb-4f9d-847a-cb3a4948d114",
      "name": "Check Website",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        -112
      ]
    },
    {
      "id": "7ec3b343-1860-468d-8e9f-4417c0e45cae",
      "name": "Evaluate Response",
      "type": "n8n-nodes-base.code",
      "position": [
        416,
        -112
      ]
    },
    {
      "id": "248e8e6d-3478-4952-a46d-d27c7183370d",
      "name": "Site Down?",
      "type": "n8n-nodes-base.if",
      "position": [
        592,
        -112
      ]
    },
    {
      "id": "7d8bbdad-f245-4d02-871e-a6c4423dad64",
      "name": "Diagnose Error",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        832,
        -208
      ]
    },
    {
      "id": "e59faeb3-ff7a-4315-8ce0-9de539e08e99",
      "name": "Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        976,
        -64
      ]
    },
    {
      "id": "6dfd4d21-59dc-4796-b249-73431ad8fce6",
      "name": "Log to Uptime Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1152,
        48
      ]
    },
    {
      "id": "b57e0410-499b-4b6a-82c9-17f06d4a4820",
      "name": "Alert Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1152,
        -208
      ]
    },
    {
      "id": "078aef20-a88b-4b9d-a201-c9412bfc6290",
      "name": "Send Daily Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1312,
        48
      ]
    }
  ],
  "connections": {
    "Site Down?": {
      "main": [
        [
          {
            "node": "Diagnose Error",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log to Uptime Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert Slack": {
      "main": [
        [
          {
            "node": "Log to Uptime Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Website": {
      "main": [
        [
          {
            "node": "Evaluate Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Diagnose Error": {
      "main": [
        [
          {
            "node": "Alert Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Evaluate Response": {
      "main": [
        [
          {
            "node": "Site Down?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Diagnose Error",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Log to Uptime Sheet": {
      "main": [
        [
          {
            "node": "Send Daily Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Every 5 Minutes": {
      "main": [
        [
          {
            "node": "Check Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}