{
  "name": "Multiple websites monitoring with notifications including phone calls",
  "nodes": [
    {
      "id": "89285dd4-89d7-4726-b2d5-70b919d1738a",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1120,
        2425
      ]
    },
    {
      "id": "f624f586-07eb-4e5e-b748-9e5605e2b102",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -680,
        2425
      ]
    },
    {
      "id": "4bf3a7b5-62a1-402d-bf22-3222d1767a67",
      "name": "Check website status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -460,
        1900
      ]
    },
    {
      "id": "6f17ae5e-5451-4b78-99b1-20fa16255ead",
      "name": "Website URLs",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -900,
        2425
      ]
    },
    {
      "id": "9a429a0a-06f0-49ca-9d6a-d2bfa55a996c",
      "name": "Get Active Down Record",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -20,
        1800
      ]
    },
    {
      "id": "57f054ee-8f40-45a9-9da9-3befd1ac489c",
      "name": "Update Uptime and Total Downtime",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        420,
        1800
      ]
    },
    {
      "id": "e6575156-1a32-429a-9ee7-deef3c4f863d",
      "name": "Find Existing Record",
      "type": "n8n-nodes-base.code",
      "position": [
        200,
        2200
      ]
    },
    {
      "id": "220717dd-659a-44af-98f8-3e03aa0021ea",
      "name": "Add Downtime Record",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        640,
        2200
      ]
    },
    {
      "id": "59d163f7-771e-40e6-bf5f-e091de3233a9",
      "name": "Notify over Phone Call",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        860,
        2580
      ]
    },
    {
      "id": "5345ee2f-55bf-4211-bd40-286fbf522af0",
      "name": "Check Downtime Exists",
      "type": "n8n-nodes-base.if",
      "position": [
        420,
        2200
      ]
    },
    {
      "id": "ef94a17c-ddd7-48f2-88a1-a0dd3790e20b",
      "name": "Email Notification for Down",
      "type": "n8n-nodes-base.gmail",
      "position": [
        860,
        1975
      ]
    },
    {
      "id": "e79a52cd-7ea4-41fc-80e3-82ac947d4d1f",
      "name": "Slack Notification for Down",
      "type": "n8n-nodes-base.slack",
      "position": [
        860,
        2175
      ]
    },
    {
      "id": "8203750f-b83b-4f7e-9982-69bf88e3ccb2",
      "name": "Telegram Notification for Down",
      "type": "n8n-nodes-base.telegram",
      "position": [
        860,
        2375
      ]
    },
    {
      "id": "5a86f273-6c29-47c8-9c88-9f36bd56cfba",
      "name": "Email Notification for Up",
      "type": "n8n-nodes-base.gmail",
      "position": [
        640,
        1600
      ]
    },
    {
      "id": "19a35cc4-9477-476b-973c-02ccbe4746a4",
      "name": "Slack Notification for Up",
      "type": "n8n-nodes-base.slack",
      "position": [
        640,
        1800
      ]
    },
    {
      "id": "5465b80d-c302-4931-988e-f36ac48bcdef",
      "name": "Telegram Notification for Up",
      "type": "n8n-nodes-base.telegram",
      "position": [
        640,
        2000
      ]
    },
    {
      "id": "ddcd8c3d-a22e-4ae7-bf00-3677c6a9a10c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        1460
      ],
      "parameters": {
        "width": 560,
        "height": 280,
        "content": "### Website downtime monitoring with logging\nSample Sheet: https://docs.google.com/spreadsheets/d/1_VVpkIvpYQigw5q0KmPXUAC2aV2rk1nRQLQZ7YK2KwY/edit?usp=sharing\n- Sheet 1 - Add domain list for monitori"
      }
    },
    {
      "id": "1a4b919f-6e78-48f3-968d-0caae9fe56f4",
      "name": "If Down Record Exist",
      "type": "n8n-nodes-base.if",
      "position": [
        200,
        1800
      ]
    },
    {
      "id": "c60f06ef-ab17-40d1-91b7-1ed1683c9c42",
      "name": "If Site Up",
      "type": "n8n-nodes-base.if",
      "position": [
        -240,
        1900
      ]
    },
    {
      "id": "08a21aa6-89c6-406b-becd-43688b793b2c",
      "name": "Get Existing Down Records",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -20,
        2200
      ]
    }
  ],
  "connections": {
    "If Site Up": {
      "main": [
        [
          {
            "node": "Get Active Down Record",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Existing Down Records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Website URLs": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Check website status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Website URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Downtime Record": {
      "main": [
        [
          {
            "node": "Email Notification for Down",
            "type": "main",
            "index": 0
          },
          {
            "node": "Slack Notification for Down",
            "type": "main",
            "index": 0
          },
          {
            "node": "Telegram Notification for Down",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify over Phone Call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check website status": {
      "main": [
        [
          {
            "node": "If Site Up",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Existing Record": {
      "main": [
        [
          {
            "node": "Check Downtime Exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Down Record Exist": {
      "main": [
        [
          {
            "node": "Update Uptime and Total Downtime",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Downtime Exists": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add Downtime Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Active Down Record": {
      "main": [
        [
          {
            "node": "If Down Record Exist",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify over Phone Call": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Existing Down Records": {
      "main": [
        [
          {
            "node": "Find Existing Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Notification for Down": {
      "main": [
        []
      ]
    },
    "Slack Notification for Down": {
      "main": [
        []
      ]
    },
    "Telegram Notification for Up": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Notification for Down": {
      "main": [
        []
      ]
    },
    "Update Uptime and Total Downtime": {
      "main": [
        [
          {
            "node": "Email Notification for Up",
            "type": "main",
            "index": 0
          },
          {
            "node": "Slack Notification for Up",
            "type": "main",
            "index": 0
          },
          {
            "node": "Telegram Notification for Up",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}