8
n8n 中文网amn8n.com

MAIA - 健康检查

中级

这是一个DevOps领域的自动化工作流,包含 7 个节点。主要使用 Telegram, HttpRequest, GoogleSheets, ScheduleTrigger 等节点。 使用Google表格和Telegram警报进行网站健康检查

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "wng5xcxlYA6jFS6n",
  "meta": {
    "instanceId": "d2672089b9e343ad3bc90ba1f1f190228becae384176d65238d27962069ff47d",
    "templateCredsSetupCompleted": true
  },
  "name": "MAIA - 健康检查",
  "tags": [],
  "nodes": [
    {
      "id": "10335465-853d-47ea-aad7-34460c741b74",
      "name": "无操作,不执行任何动作",
      "type": "n8n-nodes-base.noOp",
      "position": [
        860,
        -20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ea7771ba-3d35-423a-9813-2a65448a15fc",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        860,
        160
      ],
      "webhookId": "6c02772a-8f40-4d9b-8fe5-220aac63c34e",
      "parameters": {
        "text": "=Health Check :  {{ $json.URLS }}\n\n{{ $json.error.code }}",
        "chatId": "1548053076",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "QYefc34gGshZQURo",
          "name": "Telegram account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "bae03dc7-e35b-4760-8de8-151d2d97391b",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a53fba9c-0f7e-4757-8bcd-e3622845e804",
      "name": "获取URL",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        220,
        0
      ],
      "parameters": {
        "options": {},
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17-tY9_wn-D2FV627Sx3-Z3abqFYvz794edej7es5J6w/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "17-tY9_wn-D2FV627Sx3-Z3abqFYvz794edej7es5J6w"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "rh63B66L9pJsButh",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "c96a2070-953b-4a03-a308-dae92d841851",
      "name": "检查URL",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        520,
        0
      ],
      "parameters": {
        "url": "={{ $json.URLS }}",
        "options": {}
      },
      "typeVersion": 4.2,
      "alwaysOutputData": false
    },
    {
      "id": "4fe54bbe-32ef-41d2-94f8-2a7d4ec175b6",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -220
      ],
      "parameters": {
        "content": "## 步骤 1"
      },
      "typeVersion": 1
    },
    {
      "id": "96f8b3bb-d3e1-415a-a849-84b1d524acb5",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        320
      ],
      "parameters": {
        "content": "## 步骤 2"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "704c7308-7759-4f31-ab94-c2c53e3c5ed7",
  "connections": {
    "Check URL": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Urls": {
      "main": [
        [
          {
            "node": "Check URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch Urls",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 开发运维

需要付费吗?

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

工作流信息
难度等级
中级
节点数量7
分类1
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Hugues Stock

Hugues Stock

@hpstock

Hobbyist n8n automation maker, I build custom automations for people.

外部链接
在 n8n.io 查看

分享此工作流