8
n8n 中文网amn8n.com

使用AI驱动评论自动化LinkedIn互动!💬✨

高级

这是一个AI, Marketing领域的自动化工作流,包含 18 个节点。主要使用 Telegram, HttpRequest, Agent, ChainLlm, ToolThink 等节点,结合人工智能技术实现智能自动化。 使用AI驱动评论自动化LinkedIn互动!💬✨

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "e5aa7986ab694604988fd614f16d3dd8cb275c306d75d6a818e14c909713473c"
  },
  "nodes": [
    {
      "id": "d3a072cc-9276-4f96-948c-f2c93090dbf2",
      "name": "Unipile:获取帖子详情",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        280,
        -340
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "17030513-b4ca-47bc-beea-f7d146de21a5",
      "name": "Unipile:评论帖子",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        140
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d3f45944-2c38-4555-ae98-5fd69d99f3ba",
      "name": "OpenAI:聊天模型(评论生成)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        580,
        60
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "706b9189-45ab-4578-96f4-b2bc5858b58a",
      "name": "触发器:收到聊天消息",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -780,
        -260
      ],
      "webhookId": "452de4b0-46d2-4d2c-bad8-bdd0ffbc3394",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a9e5f51e-2cf6-4fdc-81a3-2cef4b5a310c",
      "name": "OpenAI:聊天模型(帖子 ID 提取)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -220,
        100
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "4ff300e4-1a6c-4298-ae43-a5e97a8a9040",
      "name": "Unipile:添加帖子反应",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1840,
        -60
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "43a12068-8384-4dbc-b8bd-976ba370547b",
      "name": "LLM:提取帖子 ID",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -280,
        -240
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "f2930b41-7496-4ed4-89d5-10e700467b72",
      "name": "LLM:生成评论",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        720,
        -340
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "100e8868-230d-44f6-a863-2462db5a491a",
      "name": "Telegram:发送确认",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2360,
        -420
      ],
      "webhookId": "21d614af-b840-4488-90c5-ee15a3bcec0e",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "ac8aaed5-0093-4eb4-afbe-433346120a49",
      "name": "LLM:优化评论(思考中)",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        920,
        40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "858367ae-0b9e-40b7-b666-39d7bc64350e",
      "name": "注释:工作流描述和设置",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -580,
        300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2daea7d8-188c-4efb-a902-013ab19a1fdf",
      "name": "注释:触发器设置",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4c7bd1be-6f13-411d-b15d-1ca563a056ce",
      "name": "注释:帖子 ID 提取",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9ad2510d-889e-4498-a8d2-c271ebe461d0",
      "name": "注释:获取帖子详情",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -700
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a6572957-c3d6-4930-9655-541046ab7d92",
      "name": "注释:生成评论",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7cde48e8-63b3-4111-8717-d88661b12ef7",
      "name": "注释:评论帖子",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1160,
        -180
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c3755ef3-2727-4593-965f-46acc90b179d",
      "name": "注释:添加帖子反应",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1720,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "413f624a-b5c5-4961-a52a-7618d00e1c48",
      "name": "注释:发送确认",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2240,
        -740
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "LLM: Extract Post ID": {
      "main": [
        [
          {
            "node": "Unipile: Get Post Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LLM: Generate Comment": {
      "main": [
        [
          {
            "node": "Unipile: Comment on Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unipile: Comment on Post": {
      "main": [
        [
          {
            "node": "Unipile: Add Post Reaction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unipile: Get Post Details": {
      "main": [
        [
          {
            "node": "LLM: Generate Comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unipile: Add Post Reaction": {
      "main": [
        [
          {
            "node": "Telegram: Send Confirmation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LLM: Refine Comment (Thinking)": {
      "ai_tool": [
        [
          {
            "node": "LLM: Generate Comment",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Trigger: Chat Message Received": {
      "main": [
        [
          {
            "node": "LLM: Extract Post ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI: Chat Model (Comment Generation)": {
      "ai_languageModel": [
        [
          {
            "node": "LLM: Generate Comment",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI: Chat Model (Post ID Extraction)": {
      "ai_languageModel": [
        [
          {
            "node": "LLM: Extract Post ID",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

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

作者

AI & Automation Consultant. Sharing cool stuff on my YouTube Channel

外部链接
在 n8n.io 查看

分享此工作流