8
n8n 中文网amn8n.com

集成MS Teams的高级设备健康监测器

中级

这是一个DevOps领域的自动化工作流,包含 6 个节点。主要使用 If, GoogleDrive, HttpRequest, ConvertToFile, MicrosoftTeams 等节点。 使用Google Sheets和MS Teams集成对设备健康问题进行告警

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "CirUj0MHUPmdvfKX",
  "meta": {
    "instanceId": "a5c13100a5b68a9be4daa442c8f9a7f57ee72dbd3335147e7a1c40f98bc30f21",
    "templateCredsSetupCompleted": true
  },
  "name": "集成 MS Teams 的高级设备健康监测器 (n8n | API | Google Sheets)",
  "tags": [],
  "nodes": [
    {
      "id": "736d1ff8-3c90-47c7-aaff-88d8939d38f4",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -448,
        112
      ],
      "parameters": {
        "url": "https://688c83a8cd9d22dda5cd6aec.mockapi.io/temperature_n8n/equipments",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "fb624d6e-fc9a-406f-836d-9de8557d1bca",
      "name": "转换为文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        0,
        0
      ],
      "parameters": {
        "options": {
          "fileName": "equipment_list.xls"
        },
        "operation": "xls"
      },
      "typeVersion": 1.1
    },
    {
      "id": "57db253d-57b4-40e4-9616-eabec25a59ac",
      "name": "上传文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        240,
        0
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "g1zJbHftgJU7dGFb",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "9cb3ac4f-151f-4152-926b-23f5961c7b0d",
      "name": "温度和电压状态检查",
      "type": "n8n-nodes-base.if",
      "position": [
        -224,
        112
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "504acc0c-666e-4e06-8d8e-a9016931b140",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{ $json.temp }}",
              "rightValue": 60
            },
            {
              "id": "ee25a1d3-8cf0-421c-9268-6695ed0a5416",
              "operator": {
                "type": "number",
                "operation": "gt"
              },
              "leftValue": "={{ $json.voltage }}",
              "rightValue": 20
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "03921e71-6889-4da9-9657-e066fe24a17d",
      "name": "每15分钟定时触发",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -656,
        112
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 15
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "4e37c01e-ba3f-4d62-9b64-cf9e2c8161f0",
      "name": "创建聊天消息",
      "type": "n8n-nodes-base.microsoftTeams",
      "position": [
        320,
        288
      ],
      "webhookId": "604e5014-8c2d-4235-b52e-21b8af2af2f2",
      "parameters": {
        "chatId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "message": "=",
        "options": {},
        "resource": "chatMessage"
      },
      "credentials": {
        "microsoftTeamsOAuth2Api": {
          "id": "x7yguIMfsth0E3CJ",
          "name": "Microsoft Teams account"
        }
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "fa42135d-6255-44b0-9234-16e4ac02477a",
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Condition check for Temp and voltage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create chat message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger for Every 15 Min": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Condition check for Temp and voltage": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 开发运维

需要付费吗?

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

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

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

作者
WeblineIndia

WeblineIndia

@weblineindia

A Leading Software Engineering, Consulting & Outsourcing Services Company in USA & India serving Clients Globally since 1999.

外部链接
在 n8n.io 查看

分享此工作流