8
n8n 中文网amn8n.com

我的工作流 10

高级

这是一个AI, IT Ops领域的自动化工作流,包含 22 个节点。主要使用 Set, Code, Gmail, Markdown, Telegram 等节点,结合人工智能技术实现智能自动化。 基于Mistral OCR、AI处理和多渠道交付的文档解析与数据提取

前置要求
  • Google 账号和 Gmail API 凭证
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "templateCredsSet": true
  },
  "name": "我的工作流 10",
  "nodes": [
    {
      "id": "9b0c6fc6-2c03-4e5f-b129-43b11888fa13",
      "name": "发送 PDF 到 Mistral",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1640,
        100
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "32edae3a-e552-4575-8d99-c6ce064ae592",
      "name": "mistral - 获取签名 URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1440,
        100
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e7436b34-9e01-4e42-97f3-fa407f1fb000",
      "name": "Mistral 云聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        -1000,
        280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1b60d348-d6b9-42bf-b971-da1a7a3a1ca1",
      "name": "获取简报",
      "type": "n8n-nodes-base.set",
      "position": [
        -640,
        100
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "7a4024de-6dae-4036-aa7f-6fe373b7991c",
      "name": "获取解析后的发票",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1220,
        100
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f95d753c-4bd6-4932-b74c-6a68ab98eb88",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1000,
        100
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "404954f1-af1d-4fcb-a3d1-201b9741cb6f",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        -420,
        100
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b3f495f8-9a04-4635-9749-58dec45f9ff1",
      "name": "编辑字段2",
      "type": "n8n-nodes-base.set",
      "position": [
        -200,
        100
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "87b13ec2-4f76-41bf-9bfb-989c635f04c7",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        420,
        -100
      ],
      "webhookId": "ANONYMIZED",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "5dc2f603-fa90-4fdd-b9ac-b87b99812d76",
      "name": "AI 代理1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        40,
        100
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "7309f58b-93b7-4d2c-b619-fac4eb5c6bbc",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        40,
        260
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "bf991841-7232-43df-b963-dbd0e51901c2",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -2860,
        100
      ],
      "webhookId": "ANONYMIZED",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "847bf975-da18-4080-bf02-8558bba0958a",
      "name": "下载文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1960,
        100
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a6623e11-8287-4b42-97c5-90947d518771",
      "name": "发送确认",
      "type": "n8n-nodes-base.telegram",
      "position": [
        400,
        500
      ],
      "webhookId": "ANONYMIZED",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b9153f5b-b0d7-4980-aa55-1a664b3e81ee",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -2680,
        100
      ],
      "webhookId": "ANONYMIZED",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6675052a-34fc-4b37-995d-4bf79e3b3d7c",
      "name": "Telegram1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        400,
        320
      ],
      "webhookId": "ANONYMIZED",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "81361897-90c6-46b5-93b9-0a4daf530f6c",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        -1800,
        100
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "12ae2d37-bd0a-4eb1-a3fb-b176eee50e7f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2980,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8013ae34-d6bf-41dd-b8f6-8783238aac8b",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2960,
        -360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "73bff933-7904-4cb6-a65a-81f13165aa5e",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a817ed3b-0a25-411d-ae79-3e288d28240d",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a9ee5219-77e2-42bb-a05a-8b1e93f0d32c",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -2900,
        -240
      ],
      "webhookId": "ANONYMIZED",
      "parameters": {},
      "typeVersion": 2.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ANONYMIZED",
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "send pdf to Mistral",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Markdown": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram": {
      "main": [
        []
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Parsed Invoice": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        []
      ]
    },
    "send pdf to Mistral": {
      "main": [
        [
          {
            "node": "mistral - get signed url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "mistral - get signed url": {
      "main": [
        [
          {
            "node": "Get Parsed Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, IT 运维

需要付费吗?

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

工作流信息
难度等级
高级
节点数量22
分类2
节点类型12
难度说明

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

作者

Experienced n8n workflow builder with a strong background in automation, API integrations, and process optimization. I've created efficient, scalable workflows across various platforms and use cases. Passionate about streamlining tasks and building smart, reliable solutions using n8n’s full capabilities.

外部链接
在 n8n.io 查看

分享此工作流