8
n8n 中文网amn8n.com

UptimeRobot告警转Telegram带视觉验证

高级

这是一个DevOps领域的自动化工作流,包含 16 个节点。主要使用 If, Set, Code, Crypto, Telegram 等节点。 UptimeRobot告警转Telegram带视觉验证

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Google 账号和 Gmail API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "5e2cdd86a9e1ca2fc82cc63db38d1710d5d6a5c6fe352258a6f7112815bcd512"
  },
  "nodes": [
    {
      "id": "bf86c33a-dc2b-4eee-8ebd-72c94f318d71",
      "name": "提取ID和URL",
      "type": "n8n-nodes-base.code",
      "position": [
        -800,
        100
      ],
      "parameters": {
        "jsCode": "const regex = /\\[(https:\\/\\/dashboard\\.uptimerobot\\.com\\/monitors\\/(\\d{9})\\?[^\\]]*)\\]/;\nconst statusMap = {\n  0: \"paused\",\n  1: \"not checked yet\",\n  2: \"up\",\n  8: \"seems down\",\n  9: \"down\"\n};\n\n// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n  item.json.monitorUrl = $input.first().json.text.match(regex)?.[1];\n  item.json.monitorId = $input.first().json.text.match(regex)?.[2];\n}\n\nreturn $input.all();"
      },
      "typeVersion": 2
    },
    {
      "id": "7ec4d205-fc84-480b-9442-d018840ebdab",
      "name": "提取状态详情",
      "type": "n8n-nodes-base.code",
      "onError": "continueErrorOutput",
      "position": [
        -20,
        100
      ],
      "parameters": {
        "jsCode": "const statusMap = {\n  0: \"paused\",\n  1: \"not checked yet\",\n  2: \"up\",\n  8: \"seems down\",\n  9: \"down\"\n};\n\n// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\nitem.json.monitorStatus = statusMap[$input.first().json.status] || \"unknown\"; // Fallback to \"unknown\" if invalid\nitem.json.lastStatusChange = $input.first().json.logs[0].datetime || \"unknown\";\nitem.json.lastStatusChangeReason = $input.first().json.logs[0].reason.detail || \"unknown\";\n}\n\nreturn $input.all();"
      },
      "typeVersion": 2
    },
    {
      "id": "99fe7d7a-7482-4210-a649-cbdf8d16148d",
      "name": "发送文本消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1420,
        240
      ],
      "webhookId": "889e3369-dea1-4968-9e91-9433535c79ba",
      "parameters": {
        "text": "=🚦 Monitor Status Update\n\n📛 Monitor: {{ $('Extract Status Details').item.json.friendly_name }}\n\n🔄 Status: {{ \n  $('Extract Status Details').item.json.monitorStatus === 'up' \n    ? '✅ UP' \n    : $('Extract Status Details').item.json.monitorStatus === 'down' \n      ? '🔴 DOWN' \n      : $('Extract Status Details').item.json.monitorStatus === 'paused' \n        ? '⏸️ PAUSED' \n        : '⚠️ ' + $('Extract Status Details').item.json.monitorStatus\n}}\n\n⏰ Last Changed: {{ new Date($('Extract Status Details').item.json.lastStatusChange * 1000).toLocaleString() }}\n\n📝 Reason: `{{ $('Extract Status Details').item.json.lastStatusChangeReason || 'N/A' }}`\n\n🔗 Monitor: {{ \"https://dashboard.uptimerobot.com/monitors/\"+ $('Extract Status Details').item.json.id }}",
        "chatId": "your-chat-id-goes-here",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "zOyZS1KQgzAKuMtI",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "81039eb1-d1f8-47d1-9c85-aa3af0cc5efd",
      "name": "发送照片消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1420,
        -80
      ],
      "webhookId": "58ee819b-ac78-48b0-a4a2-36396607d11f",
      "parameters": {
        "chatId": "your-chat-id-goes-here",
        "operation": "sendPhoto",
        "binaryData": true,
        "additionalFields": {
          "caption": "=🚦 Monitor Status Update\n\n📛 Monitor: {{ $('Extract Status Details').item.json.friendly_name }}\n\n🔄 Status: {{ \n  $('Extract Status Details').item.json.monitorStatus === 'up' \n    ? '✅ UP' \n    : $('Extract Status Details').item.json.monitorStatus === 'down' \n      ? '🔴 DOWN' \n      : $('Extract Status Details').item.json.monitorStatus === 'paused' \n        ? '⏸️ PAUSED' \n        : '⚠️ ' + $('Extract Status Details').item.json.monitorStatus\n}}\n\n⏰ Last Changed: {{ new Date($('Extract Status Details').item.json.lastStatusChange * 1000).toLocaleString() }}\n\n📝 Reason: `{{ $('Extract Status Details').item.json.lastStatusChangeReason || 'N/A' }}`\n\n🔗 Monitor: {{ \"https://dashboard.uptimerobot.com/monitors/\"+ $('Extract Status Details').item.json.id }}",
          "fileName": "screenshot.png"
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "zOyZS1KQgzAKuMtI",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6b9f61b7-4743-49c6-9297-e947571592c6",
      "name": "Screenshotmachine-secret",
      "type": "n8n-nodes-base.crypto",
      "position": [
        500,
        -60
      ],
      "parameters": {
        "value": "={{$('Extract Status Details').item.json.url + $('Conf').item.json.screenshotmachine_secret}}",
        "dataPropertyName": "hash"
      },
      "typeVersion": 1
    },
    {
      "id": "954f7be4-239b-417b-a99e-c3a6c6aefc9a",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        860,
        -60
      ],
      "parameters": {
        "url": "https://api.screenshotmachine.com",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpQueryAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $('Extract Status Details').item.json.url }}"
            },
            {
              "name": "dimension",
              "value": "={{ $('Conf').item.json.screenshotmachine_dimension }}"
            },
            {
              "name": "device",
              "value": "={{$('Conf').item.json.screenshotmachine_device}}"
            },
            {
              "name": "format",
              "value": "={{$('Conf').item.json.screenshotmachine_format}}"
            },
            {
              "name": "hash",
              "value": "={{ $json.hash }}"
            }
          ]
        }
      },
      "credentials": {
        "httpQueryAuth": {
          "id": "LWirmPTloM5aKiku",
          "name": "Query Auth account"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "fb11bb7b-0413-483e-a3b5-309814c31978",
      "name": "Gmail 触发器",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -1700,
        100
      ],
      "parameters": {
        "simple": false,
        "filters": {
          "sender": "alert@uptimerobot.com"
        },
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyX",
              "unit": "minutes",
              "value": 5
            }
          ]
        }
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "HI2iZSvhvC5XOdpp",
          "name": "Gmail account 2"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "114961d1-786e-47bb-bd3c-71749be825aa",
      "name": "获取多个监视器",
      "type": "n8n-nodes-base.uptimeRobot",
      "position": [
        -400,
        100
      ],
      "parameters": {
        "filters": {
          "logs": true,
          "mwindow": true,
          "monitors": "={{ $('Extract ID and URL').first().json.monitorId }}",
          "alert_contacts": true
        },
        "resource": "monitor"
      },
      "credentials": {
        "uptimeRobotApi": {
          "id": "mMuD3pmTC8dMUjCK",
          "name": "Uptime Robot account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "30b16a00-edbf-427e-a222-fa2f69ed47a5",
      "name": "配置",
      "type": "n8n-nodes-base.set",
      "position": [
        -1220,
        100
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "0439ef08-5f5d-4462-8d26-461553c19a8f",
              "name": "take_screenshot",
              "type": "boolean",
              "value": true
            },
            {
              "id": "9bb41b66-e203-44d7-9b47-a871820f9dfb",
              "name": "screenshotmachine_secret",
              "type": "string",
              "value": "your-secret-goes-here"
            },
            {
              "id": "82ffd79c-fd61-443e-94d4-1234a6279ca8",
              "name": "screenshotmachine_device",
              "type": "string",
              "value": "desktop"
            },
            {
              "id": "5817b498-bf20-43fc-9d02-db6683457f4f",
              "name": "screenshotmachine_dimension",
              "type": "string",
              "value": "1366xfull"
            },
            {
              "id": "8f15e188-2a9f-4b6e-a0d7-c36bfeac9c8c",
              "name": "screenshotmachine_format",
              "type": "string",
              "value": "png"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "fece81e3-af89-4a01-816d-7c875613233c",
      "name": "如果需要截图",
      "type": "n8n-nodes-base.if",
      "position": [
        240,
        80
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "49483f42-43d4-4a27-87a1-07fd2009b001",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{$('Conf').item.json.take_screenshot}}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "f53b5a16-a13f-444b-96d6-daf37cc5b242",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        -640
      ],
      "parameters": {
        "color": 5,
        "width": 360,
        "height": 880,
        "content": "# 1. Gmail触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "90db3579-0108-497c-8e78-e3678a32db33",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        80
      ],
      "parameters": {
        "color": 7,
        "width": 400,
        "height": 840,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "71904568-3452-4e5e-b77e-e4469c397bda",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1360,
        -640
      ],
      "parameters": {
        "color": 5,
        "width": 360,
        "height": 880,
        "content": "# 2. 工作流设置"
      },
      "typeVersion": 1
    },
    {
      "id": "88cb2f0b-604a-401d-9119-2070b8e9056a",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        -640
      ],
      "parameters": {
        "color": 5,
        "width": 360,
        "height": 900,
        "content": "# 3. UptimeRobot设置"
      },
      "typeVersion": 1
    },
    {
      "id": "2cbbd484-5320-463b-8fb1-baa1efcc335a",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -640
      ],
      "parameters": {
        "color": 5,
        "width": 360,
        "height": 760,
        "content": "# 4. ScreenshotMachine(可选)"
      },
      "typeVersion": 1
    },
    {
      "id": "88324346-583c-4731-b0fa-ce242a575b96",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        -640
      ],
      "parameters": {
        "color": 5,
        "width": 360,
        "height": 1020,
        "content": "# 5. Telegram设置"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {
    "Extract ID and URL": [
      {
        "id": "195dea8d9658db9e",
        "to": {
          "html": "<span class=\"mp_address_group\"><a href=\"mailto:ventsislavminev@gmail.com\" class=\"mp_address_email\">ventsislavminev@gmail.com</a></span>",
          "text": "ventsislavminev@gmail.com",
          "value": [
            {
              "name": "",
              "address": "ventsislavminev@gmail.com"
            }
          ]
        },
        "date": "2025-03-28T21:29:21.000Z",
        "from": {
          "html": "<span class=\"mp_address_group\"><span class=\"mp_address_name\">UptimeRobot</span> &lt;<a href=\"mailto:alert@uptimerobot.com\" class=\"mp_address_email\">alert@uptimerobot.com</a>&gt;</span>",
          "text": "\"UptimeRobot\" <alert@uptimerobot.com>",
          "value": [
            {
              "name": "UptimeRobot",
              "address": "alert@uptimerobot.com"
            }
          ]
        },
        "html": "<html>\n    <head>\n          <meta name=\"viewport\" content=\"width=device-width\">\n          <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n            <title>Monitor is  DOWN : google.com\n                    </title>\n    </head>\n    <body style=\"font-family: 'Roboto', Arial, sans-serif; color: #131a26; background: #fefefe; line-height: 1.3em;\">\n      <div style=\"font-family: 'Roboto', Arial, sans-serif; color: #131a26; background: #fefefe; box-sizing: border-box; line-height: 1.3em;\">\n        <div style=\"background: #131a26; padding: 45px 15px;\">\n          <div style=\"max-width: 600px; margin: 0 auto;\">\n            <table style=\" width: 100%; font-size: 14px; color: #ffffff;\" width=\"100%\">\n              <tbody style=\"\">\n                <tr style=\"\">\n                  <td width=\"180\" style=\" font-size: 36px;\">\n                    <a href=\"https://dashboard.uptimerobot.com?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLogo\" style=\" color: #3bd671 !important;\"><img src=\"https://cdn.mcauto-images-production.sendgrid.net/3e8054f26aace367/6a696f89-4c68-4736-83c3-c08df64e1a0d/549x79.png\" alt=\"UptimeRobot\" width=\"180\" style=\" max-width: 180px; display: inline-block;\"></a>\n                  </td>\n                  <td style=\" text-align: right; font-size: 12px;\" align=\"right\">\n                    <a href=\"https://dashboard.uptimerobot.com/monitors/798811078?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLink\" style=\" color: #3bd671 !important; text-decoration: none;\">Go to monitor &rarr;</a>\n                  </td>\n                </tr>\n              </tbody>\n            </table>\n            <div>\n              <h1 style=\"font-size: 36px; color: #ffffff; margin-top: 45px; margin-bottom: 10px; line-height: 28px;\">\n                    google.com is <span style=\"color:#df484a\">down</span>.\n                              </h1>\n            </div>\n          </div>\n        </div>\n        <div style=\"max-width: 600px; margin: 30px auto 0 auto; padding: 0 10px;\">\n\n          <div style=\"background: #ffffff; border-radius: 6px; box-shadow: 0 20px 40px 0 rgba(0,0,0,0.1); padding: 25px; border: 1px solid #efefef; font-size: 14px; margin-bottom: 25px;\">\n            <div>\n\n              <p style=\"line-height: 20px;\">Hello Guybrush Threepwood,</p>\n                  <p style=\"line-height: 20px;\"><strong>We just detected an incident on your monitor. Your service is currently down.</strong></p>\n                  <p style=\"line-height: 20px;\">We will alert you when it&apos;s up again.</p>\n                          </div>\n\n            <div style=\"padding: 20px; background-color: #f9f9f9; border-radius: 6px; margin-top: 25px; line-height: 16px;\">\n\n              <div style=\"font-size: 12px; color: #687790;\">Monitor name</div>\n              <h2 style=\"font-size: 14px; margin-bottom: 5px; margin-top: 3px;\">google.com</h2>\n              <hr style=\"border: 1px solid #dedede; border-bottom: 0; margin: 10px 0;\">\n\n              <div style=\"color: #687790; font-size: 12px;\">Checked URL</div>\n              <h2 style=\"font-size: 14px; margin-bottom: 5px; margin-top: 3px; line-height: 16px;\"><code>\n                <a href=\"https://google.com\" style=\"color: #131a26 !important; text-decoration: none !important;\">https://google.com</a></code></h2>\n              <hr style=\"border: 1px solid #dedede; border-bottom: 0; margin: 10px 0;\">\n\n              <div style=\"color: #687790; font-size: 12px;\">Root cause</div>\n              <h2 style=\"font-size: 14px; margin-bottom: 5px; margin-top: 3px;\">\n                  DNS Resolving problem\n              </h2>\n              <hr style=\"border: 1px solid #dedede; border-bottom: 0; margin: 10px 0;\">\n\n              <div style=\"font-size: 12px; color: #687790;\">Incident started at</div>\n              <h2 style=\"font-size: 14px; margin-bottom: 5px; margin-top: 3px;\">2025-03-28 21:29:19</h2>\n              <hr style=\"border: 1px solid #dedede; border-bottom: 0; margin: 10px 0;\">\n\n\n\n              <div style=\"text-align: center; padding: 15px 0;\">\n                <table>\n                  <tr>\n                    <td>\n                      <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n                          <tr>\n                              <td align=\"left\" style=\"border-radius: 25px; background-color: #3bd671; text-align: center;\">\n                                  <a href=\"https://dashboard.uptimerobot.com/incidents/692179501?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=viewIncident\" target=\"_blank\" style=\"font-size: 16px; color: #ffffff !important; font-weight: bold; text-decoration: none;border-radius: 25px; padding: 12px 25px; border: 1px solid #3bd671; display: inline-block;\">View incident details</a>\n                              </td>\n                          </tr>\n                      </table>\n                    </td>\n                    <td align=\"left\" style=\"border-radius: 25px; text-align: center; padding-left: 10px;\">\n                        <a href=\"https://dashboard.uptimerobot.com/incidents/692179501?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=commentIncident\" target=\"_blank\" style=\"font-size: 16px; color: #3bd671 !important; font-weight: bold; text-decoration: none; border-radius: 25px; padding: 12px 25px; border: 1px solid #3bd671; display: inline-block;\">Comment incident</a>\n                    </td>\n                  </tr>\n                </table>\n              </div>\n\n            </div>\n          </div>\n<div style='margin-bottom: 25px;'>\n  <table style='width: 100%;'>\n    <tr>\n      <td\n        style='background: #131a26; color: #ffffff; border-radius: 6px; box-shadow: 0 20px 40px 0 rgba(0,0,0,0.1); padding: 25px; border: 1px solid #efefef; font-size: 14px; border: 0;'>\n        <h2>\n          <strong style=\"color: orange;\">TIP:</strong> Never miss an incident, with recurring notifications.\n        </h2>\n        <p>\n          You can set the frequency of alerts for a period of downtime.\n        </p>\n        <p style=\"font-size: 18px; line-height: 24px;\">\n          <strong><a href=\"https://app.uptimerobot.com/billing/pricing/?utm_source=alertMessage&utm_medium=email&utm_campaign=downRecurringNotifFree&utm_content=upsellCTA\" style=\"color: #3bd671;\">Upgrade your account</a></strong>.\n        </p>\n      </td>\n    </tr>\n  </table>\n</div>\n<div style=\"border-top: 1px solid #dedede; font-size: 12px; color: #687790; text-align: center; padding: 25px 0;\">\n              This email was sent by\n              <a href=\"https://uptimerobot.com/?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=footerLink\" style=\"color: #3bd671 !important;\">UptimeRobot</a>.\n\n              You can update your alert preferences in the  <a href=\"https://dashboard.uptimerobot.com/account/notifications?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=footerSetting\" style=\" color: #3bd671 !important;\">dashboard</a>.\n          </div>\n\n          <img src=\"https://www.google-analytics.com/collect?v=1&tid=UA-1748433-31&cid=555&t=event&ec=emails&ea=open&dt=DOWN\">\n\n        </div>\n      </div>\n  </body>\n</html>\n",
        "text": "UptimeRobot\n[https://cdn.mcauto-images-production.sendgrid.net/3e8054f26aace367/6a696f89-4c68-4736-83c3-c08df64e1a0d/549x79.png]https://dashboard.uptimerobot.com?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLogo\nGo to monitor →\n[https://dashboard.uptimerobot.com/monitors/798811078?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLink]\n\n\nGOOGLE.COM IS DOWN.\n\nHello Guybrush Threepwood,\n\nWe just detected an incident on your monitor. Your service is currently down.\n\nWe will alert you when it's up again.\n\nMonitor name\n\n\nGOOGLE.COM\n\n--------------------------------------------------------------------------------\n\nChecked URL\n\n\nHTTPS://GOOGLE.COM [https://google.com]\n\n--------------------------------------------------------------------------------\n\nRoot cause\n\n\nDNS RESOLVING PROBLEM\n\n--------------------------------------------------------------------------------\n\nIncident started at\n\n\n2025-03-28 21:29:19\n\n--------------------------------------------------------------------------------\n\nView incident details\n[https://dashboard.uptimerobot.com/incidents/692179501?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=viewIncident]\n\nComment incident\n[https://dashboard.uptimerobot.com/incidents/692179501?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=commentIncident]\n\n\nTIP: NEVER MISS AN INCIDENT, WITH RECURRING NOTIFICATIONS.\n\nYou can set the frequency of alerts for a period of downtime.\n\nUpgrade your account\n[https://app.uptimerobot.com/billing/pricing/?utm_source=alertMessage&utm_medium=email&utm_campaign=downRecurringNotifFree&utm_content=upsellCTA].\n\nThis email was sent by UptimeRobot\n[https://uptimerobot.com/?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=footerLink].\nYou can update your alert preferences in the dashboard\n[https://dashboard.uptimerobot.com/account/notifications?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=footerSetting].\n[https://www.google-analytics.com/collect?v=1&tid=UA-1748433-31&cid=555&t=event&ec=emails&ea=open&dt=DOWN]",
        "headers": {
          "to": "To: ventsislavminev@gmail.com",
          "date": "Date: Fri, 28 Mar 2025 21:29:21 +0000",
          "from": "From: UptimeRobot <alert@uptimerobot.com>",
          "subject": "Subject: Monitor is DOWN: google.com",
          "arc-seal": "ARC-Seal: i=1; a=rsa-sha256; t=1743197362; cv=none;\r\n        d=google.com; s=arc-20240605;\r\n        b=WSrgF5B2R8AcNSkRjRXbU6jxYQ5UQXABlXhSWx1YrXIT99G7X24N2dLZDkQhBlWftM\r\n         yBa1IQjW6UfpN4/Z75Byz9Tze1HA69DUvKVl7RWjhlV6t47oOhAXrao/xUC0Og4imO9g\r\n         U0yXmpJKNrQADamQfxTXn4a55UCHfaFwTrUDLmrjQUnbxiutKiHvLFARk7+G3SH3M2P7\r\n         Xh6rCBwxbDBJUUSvIL+ySUt5bfU17fcULQF8DmPw8MxvgsiWAMZOkzk91iv0ACbbQfxR\r\n         n1RVobgXhAG1kPV82AdW30ZBbn1zfgq0o4x9YE7Yd+TJ8b9l0sdbcELDRMySTeA7Am9S\r\n         pk9A==",
          "received": "Received: from [127.0.0.1] ([54.225.82.45]) by uptimerobot.com with\r\n MailEnable ESMTPA; Fri, 28 Mar 2025 21:29:26 +0000",
          "message-id": "Message-ID: <1743197361042.713600@uptimerobot.com>",
          "x-received": "X-Received: by 2002:a05:6830:3817:b0:72a:1b3b:2384 with SMTP id 46e09a7af769-72c6378f55cmr585919a34.11.1743197362505;\r\n        Fri, 28 Mar 2025 14:29:22 -0700 (PDT)",
          "return-path": "Return-Path: <alert@uptimerobot.com>",
          "content-type": "Content-Type: text/html; charset=utf-8",
          "delivered-to": "Delivered-To: ventsislavminev@gmail.com",
          "mime-version": "MIME-Version: 1.0",
          "received-spf": "Received-SPF: pass (google.com: domain of alert@uptimerobot.com designates 216.144.250.150 as permitted sender) client-ip=216.144.250.150;",
          "dkim-signature": "dkim-signature:v=1; c=relaxed/relaxed; h=content-type:from:to:subject:message-id:content-transfer-encoding:date:mime-version;\r\n d=uptimerobot.com; s=mail2; a=rsa-sha256;\r\n bh=2X2paaoQfujiqhyqcazLeKlIwB6CI75CdpNEq8KxGVE=;\r\n b=pbOMwmHIQOOloM1gryqaobFZ6VJu9/Hma9qXf9raLL/mWTqN6fSOU0npQfO5K8dNS\r\n bblqSXzsIkmNnlydHGdgRbavfF/vvUhVGNQfqyBO9WLHQcuCacVbtNbW9YvPC/nHF4o\r\n Ey1B7v33JmWqdQI4cZgp9Lo8Ljh4kap2l4kVPDHy3GQOilsEbzLiP7VnWOnZ9tssd4a\r\n ClYhL4IAf0Ssq1KXaJthhdpIoJ8EuEr+QaaRckREGTNL3Tu7zJmmYQL+btMlkfzaHJX\r\n +N8YTvFKDa6FJs5slHVh3zLAbI3VxHLMLkajmTp6XIAMBHa6FaZohZMermXpN2hDVHD\r\n T2kEq+rnw==;",
          "x-google-smtp-source": "X-Google-Smtp-Source: AGHT+IHyL3vn3XKymo0OJ4P2f4KU9ono+DPbVXxHWdKagbXvQyb89ZK3rvtS93i6W1fhu09UPQtB",
          "arc-message-signature": "ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;\r\n        h=mime-version:date:content-transfer-encoding:message-id:subject:to\r\n         :from:dkim-signature;\r\n        bh=2X2paaoQfujiqhyqcazLeKlIwB6CI75CdpNEq8KxGVE=;\r\n        fh=aJDgD/1lkBCz2h4McHDOLFDESMNqTdzkQeO9wFTM4OI=;\r\n        b=DqqXyR/4xmYBmFgvmCli9/9lbUT7YL1vOECIFWd0g8IbG7tg+3rBQrxYern0nFcAUZ\r\n         hF6doIbNkGp4Ope2/ibwfFHd7105qRnzlNsVCWFqAPhG+j6lkqOtD2ixzmUfmsG/+5tv\r\n         QvFg89Tt3NcYHkbm1FjZ+bC6Vr/+rL10BJsZKtk2NbK8mgWuxmdB6i9HQWpGKrPTytGl\r\n         OCBvQ7A5w+wx4Gvc706ZxlAuKdrDjCIOz8CKbw78bJNN46s9Jdla9risRJvGF76AClaH\r\n         5I13uhj02kF+ukY3yW5a3nD6t05J86RK7TBAr4NfE74CyAS2Tn/gY5JcBk96YQHxg/jd\r\n         Togw==;\r\n        dara=google.com",
          "authentication-results": "Authentication-Results: mx.google.com;\r\n       dkim=pass header.i=@uptimerobot.com header.s=mail2 header.b=pbOMwmHI;\r\n       spf=pass (google.com: domain of alert@uptimerobot.com designates 216.144.250.150 as permitted sender) smtp.mailfrom=alert@uptimerobot.com;\r\n       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=uptimerobot.com",
          "content-transfer-encoding": "Content-Transfer-Encoding: quoted-printable",
          "arc-authentication-results": "ARC-Authentication-Results: i=1; mx.google.com;\r\n       dkim=pass header.i=@uptimerobot.com header.s=mail2 header.b=pbOMwmHI;\r\n       spf=pass (google.com: domain of alert@uptimerobot.com designates 216.144.250.150 as permitted sender) smtp.mailfrom=alert@uptimerobot.com;\r\n       dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=uptimerobot.com"
        },
        "subject": "Monitor is DOWN: google.com",
        "labelIds": [
          "IMPORTANT",
          "CATEGORY_UPDATES",
          "INBOX"
        ],
        "threadId": "195de33012755ff0",
        "messageId": "<1743197361042.713600@uptimerobot.com>",
        "monitorId": "798811078",
        "monitorUrl": "https://dashboard.uptimerobot.com/monitors/798811078?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLink",
        "textAsHtml": "<p>UptimeRobot<br/>[<a href=\"https://cdn.mcauto-images-production.sendgrid.net/3e8054f26aace367/6a696f89-4c68-4736-83c3-c08df64e1a0d/549x79.png\">https://cdn.mcauto-images-production.sendgrid.net/3e8054f26aace367/6a696f89-4c68-4736-83c3-c08df64e1a0d/549x79.png</a>]<a href=\"https://dashboard.uptimerobot.com?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLogo\">https://dashboard.uptimerobot.com?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLogo</a><br/>Go to monitor &rarr;<br/>[<a href=\"https://dashboard.uptimerobot.com/monitors/798811078?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLink\">https://dashboard.uptimerobot.com/monitors/798811078?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=headerLink</a>]</p><p><a href=\"http://GOOGLE.COM\">GOOGLE.COM</a> IS DOWN.</p><p>Hello Guybrush Threepwood,</p><p>We just detected an incident on your monitor. Your service is currently down.</p><p>We will alert you when it&apos;s up again.</p><p>Monitor name</p><p><a href=\"http://GOOGLE.COM\">GOOGLE.COM</a></p><p>--------------------------------------------------------------------------------</p><p>Checked URL</p><p><a href=\"HTTPS://GOOGLE.COM\">HTTPS://GOOGLE.COM</a> [<a href=\"https://google.com\">https://google.com</a>]</p><p>--------------------------------------------------------------------------------</p><p>Root cause</p><p>DNS RESOLVING PROBLEM</p><p>--------------------------------------------------------------------------------</p><p>Incident started at</p><p>2025-03-28 21:29:19</p><p>--------------------------------------------------------------------------------</p><p>View incident details<br/>[<a href=\"https://dashboard.uptimerobot.com/incidents/692179501?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=viewIncident\">https://dashboard.uptimerobot.com/incidents/692179501?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=viewIncident</a>]</p><p>Comment incident<br/>[<a href=\"https://dashboard.uptimerobot.com/incidents/692179501?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=commentIncident\">https://dashboard.uptimerobot.com/incidents/692179501?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=commentIncident</a>]</p><p>TIP: NEVER MISS AN INCIDENT, WITH RECURRING NOTIFICATIONS.</p><p>You can set the frequency of alerts for a period of downtime.</p><p>Upgrade your account<br/>[<a href=\"https://app.uptimerobot.com/billing/pricing/?utm_source=alertMessage&utm_medium=email&utm_campaign=downRecurringNotifFree&utm_content=upsellCTA\">https://app.uptimerobot.com/billing/pricing/?utm_source=alertMessage&utm_medium=email&utm_campaign=downRecurringNotifFree&utm_content=upsellCTA</a>].</p><p>This email was sent by UptimeRobot<br/>[<a href=\"https://uptimerobot.com/?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=footerLink\">https://uptimerobot.com/?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=footerLink</a>].<br/>You can update your alert preferences in the dashboard<br/>[<a href=\"https://dashboard.uptimerobot.com/account/notifications?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=footerSetting\">https://dashboard.uptimerobot.com/account/notifications?utm_source=alertMessage&utm_medium=email&utm_campaign=down-recurring-notification-free&utm_content=footerSetting</a>].<br/>[<a href=\"https://www.google-analytics.com/collect?v=1&tid=UA-1748433-31&cid=555&t=event&ec=emails&ea=open&dt=DOWN\">https://www.google-analytics.com/collect?v=1&tid=UA-1748433-31&cid=555&t=event&ec=emails&ea=open&dt=DOWN</a>]</p>",
        "sizeEstimate": 11867
      }
    ]
  },
  "connections": {
    "Conf": {
      "main": [
        [
          {
            "node": "Extract ID and URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Send a photo message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Conf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many monitors": {
      "main": [
        [
          {
            "node": "Extract Status Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract ID and URL": {
      "main": [
        [
          {
            "node": "Get many monitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Status Details": {
      "main": [
        [
          {
            "node": "If Screenshot Required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Screenshot Required": {
      "main": [
        [
          {
            "node": "Screenshotmachine-secret",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Screenshotmachine-secret": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 开发运维

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量16
分类1
节点类型9
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Ventsislav Minev

Ventsislav Minev

@vminev

IT professional and n8n enthusiast

外部链接
在 n8n.io 查看

分享此工作流