{
  "name": "Website Uptime Monitor with Multi-Channel Alerts",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -720,
        340
      ],
      "id": "f605993d-216b-41a0-89de-a8d1d7700f92",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "url": "https://forgentsystems.com",
        "options": {
          "response": {
            "response": {
              "fullResponse": true
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -500,
        340
      ],
      "id": "8d389c22-ca01-4d97-ab86-a26a92e7e695",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "sendTo": "example@gmail.com",
        "subject": "=Forgent Systems Site is Down",
        "message": "=Hi there,\n\nThe website Forgent Systems is Down. Please do the needful as soon as possible.",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        140,
        180
      ],
      "id": "32e8f205-a541-491e-8fa7-d81f2967e2c9",
      "name": "Send Site is Down",
      "webhookId": "34f2ed84-e386-44a9-a200-b693e726d7d7",
      "credentials": {
        "gmailOAuth2": {
          "id": "BmKVNXwgdwaOPxRv",
          "name": "Gmail account"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$json[\"statusCode\"]}}",
              "operation": "equal",
              "value2": 200
            }
          ]
        }
      },
      "id": "d6bacb20-315f-458b-842c-b1e721cc2ec1",
      "name": "Is Site Up or Not?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        -280,
        340
      ]
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        140,
        40
      ],
      "id": "db02f797-89fd-4468-922c-2577157043e0",
      "name": "No Operation, do nothing"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.vapi.ai/call",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer vapi_api_key"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"assistantId\": \"assistantId\",\n  \"assistantOverrides\": {\n    \"variableValues\": {\n    \"name\":\"John\",\n    \"weburl\":\"forgentsystems\",\n    \"webdomain\":\"forgentsystems.com\"\n    }\n  },\n  \"customer\": {\n    \"number\": \"+15555550199\"\n  },\n  \"phoneNumberId\": \"c0f07f34-7039-442f-90c9-f0f8e1ce432d\"\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        140,
        640
      ],
      "id": "c26731b5-a1d2-4afd-bb41-6d2a6c93c5f2",
      "name": "Initialize Call",
      "alwaysOutputData": true
    },
    {
      "parameters": {
        "chatId": "-1002286661825",
        "text": "🚨 Alert: Hi there, | The Forgent Systems website is currently down. Kindly look into this issue and take necessary action as soon as possible.  Thank you.",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        140,
        460
      ],
      "id": "f6caafa2-bea3-42a1-baa2-0fbbb9b21035",
      "name": "Send message",
      "webhookId": "7751d010-a325-4944-a4be-ec66b0e71b74",
      "credentials": {
        "telegramApi": {
          "id": "bU8BFVjQWOVPPmn4",
          "name": "Telegram account"
        }
      }
    },
    {
      "parameters": {
        "select": "user",
        "user": {
          "__rl": true,
          "value": "U08VABMF1C6",
          "mode": "list",
          "cachedResultName": "forgentsystems"
        },
        "text": "🚨 Alert:\nHi there, The Forgent Systems website is currently down. Kindly look into this issue and take necessary action as soon as possible.  \nThank you.",
        "otherOptions": {
          "includeLinkToWorkflow": false
        }
      },
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        300,
        360
      ],
      "id": "7d0499cb-8be0-4fbe-9c8d-f05fb18d8fad",
      "name": "Slack",
      "webhookId": "bad7b23c-629a-4d49-9934-e677c893d0a9",
      "credentials": {
        "slackApi": {
          "id": "lz85sqlOpXsGnvue",
          "name": "Slack account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Is Site Up or Not?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Site Up or Not?": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Site is Down",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Initialize Call",
            "type": "main",
            "index": 0
          },
          {
            "node": "Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "167fd466-1b49-4e24-91cb-b4bb26195ef3",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "f1c26778ec36097a9722a22c47c5e9c01f00b8862dadd0121ec118026a370fa6"
  },
  "id": "uj6jIxhbYCQQbqIe"
}