8
n8n 中文网amn8n.com

AI Telegram 聊天摘要器 - 使用 @telepilotco-n8n-nodes-telepilot

高级

这是一个AI, Marketing领域的自动化工作流,包含 17 个节点。主要使用 Set, Filter, SplitOut, Aggregate, ManualTrigger 等节点,结合人工智能技术实现智能自动化。 AI Telegram 聊天摘要器 - 使用 @telepilotco/n8n-nodes-telepilot

前置要求
  • MongoDB 连接字符串
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "2fa7acc0cd134988fb8b40b8d8b56c9f29ee37789503fef505450e2733dc2bdf",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "ce077951-bcd3-47b5-833f-ab6ffa45ba42",
      "name": "当点击“执行工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -460,
        -220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "46856e0f-8bc1-43b4-ad99-0231ddae0cf8",
      "name": "分离输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        200,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0ffe7cdc-e5eb-46dd-9572-a6f904ae300a",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -80,
        140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1a6e5385-1e93-4fa0-a5c5-009a50f1b4ce",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        140,
        140
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "cb26e1b0-b6bf-4f2c-ba21-c9c67dc52631",
      "name": "OpenRouter 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        120,
        360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0278536a-f7d2-4e6b-af64-a3ca68f2f78a",
      "name": "MongoDB 聊天记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryMongoDbChat",
      "position": [
        280,
        360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "47c84dce-62f2-44e2-9f83-1d477ac2ff9d",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -460,
        -20
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "cfbe9deb-68cf-43e6-8c63-00d95265c8c1",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        220,
        -360
      ],
      "webhookId": "b0697338-a2a6-4f38-b78b-970e420b6947",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f439d06c-b213-486d-8372-48895a3fc3e6",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        -560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f318fa9a-2a33-4b0f-9f8f-8407448e31a2",
      "name": "过滤最近 2 小时",
      "type": "n8n-nodes-base.filter",
      "position": [
        640,
        -120
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "359f44ca-ff53-49ad-b03b-3cb7f292f83a",
      "name": "获取消息文本",
      "type": "n8n-nodes-base.set",
      "position": [
        420,
        -120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "c6263e66-e4c0-4ac1-bd90-605c8cdfe758",
      "name": "跳过空消息",
      "type": "n8n-nodes-base.filter",
      "position": [
        880,
        -120
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "413334ab-8855-4cac-9869-b9f51ca279b9",
      "name": "发送摘要到聊天",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        540,
        140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "80c82a08-c34a-4c41-b773-6e7f4040cd88",
      "name": "最近消息历史",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        -20,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7d0d6d19-0631-4db2-82cf-0a5b08afd6c4",
      "name": "按名称获取聊天 ID",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        -240,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d48357c3-9e56-4e31-b76b-f2d5d663a1ab",
      "name": "尝试此操作以检查登录",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        740,
        -360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2c1f5fa4-0c8b-4b1f-8811-611ce3d4d17d",
      "name": "Telegram 登录",
      "type": "@telepilotco/n8n-nodes-telepilot.telePilot",
      "position": [
        440,
        -360
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send Summary To Chat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Get message text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get message text": {
      "main": [
        [
          {
            "node": "Filter Last 2 hours",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Chat Id By Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Skip Empty Message": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Last 2 hours": {
      "main": [
        [
          {
            "node": "Skip Empty Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Chat Id By Name": {
      "main": [
        [
          {
            "node": "Last Messages History",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MongoDB Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Last Messages History": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Telegram Login",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get Chat Id By Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

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

作者
Alexey from Mingles.ai

Alexey from Mingles.ai

@alexx

Integration architect with 15+ years of experience building seamless system connections and AI-powered automation solutions. Founder of Mingles.ai an AI automation startup specializing in intelligent workflow optimization. Expert in connecting complex systems, APIs, and creating custom n8n automations that transform business operations.

外部链接
在 n8n.io 查看

分享此工作流