自动化新闻到简报AI代理v13

高级

这是一个Product、AI、Marketing领域的自动化工作流,包含 37 个节点。主要使用 Set、Code、Gmail、Merge、Switch 等节点,结合人工智能技术实现智能自动化。 AI新闻研究团队:24/7简报自动化,含Perplexity引用

前置要求
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "RXTzFqG1GnuP0BZ6",
  "meta": {
    "instanceId": "2723a3a635131edfcb16103f3d4dbaadf3658e386b4762989cbf49528dccbdbd"
  },
  "name": "自动化新闻到简报 AI 代理 v13",
  "tags": [],
  "nodes": [
    {
      "id": "fd92f99a-7f1f-40cb-af27-a4a868762c96",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1120,
        380
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d48998d5-4a3c-4d43-8e27-ec33568710a7",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        380,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d68701d2-8f80-4501-aca6-eb8e6bd1f8a2",
      "name": "标题",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        560,
        0
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "d924b9e9-c619-48e6-8da0-bb21613051cf",
      "name": "新闻记者",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "f19d4326-7e9c-4a77-b15b-672b9e17ac2b",
      "name": "执行工作流触发器",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        480,
        1020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "98fc99fc-0c90-4f24-b8ee-9bcedade4110",
      "name": "回复",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        1020
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "dcc01ac4-becd-45fc-853e-5b8753b89480",
      "name": "Perplexity API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        1020
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "db06da11-cea7-40b7-9cdd-b10a424e4d08",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "038bcb0d-c7d7-474e-af9d-76f761506135",
      "name": "Perplexity_tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        160,
        180
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0bacd48f-1e70-42cd-80ca-61fe20fd2fc9",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        0,
        180
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a37b5a5d-e4f1-4a7c-b736-65369f810d79",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        640,
        180
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4ebabbd4-2163-460a-8eb0-ff72281af28a",
      "name": "设置",
      "type": "n8n-nodes-base.set",
      "position": [
        -480,
        380
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0b8fc85a-ddf7-42b2-969f-cbd79da8ea21",
      "name": "合并章节标题和文本",
      "type": "n8n-nodes-base.merge",
      "position": [
        1500,
        520
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "39497428-bdd2-4850-a385-2744c7f4dc3b",
      "name": "最终文章文本",
      "type": "n8n-nodes-base.code",
      "position": [
        1840,
        520
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "76aa78bf-97e4-4812-81ab-6c79907a2bcf",
      "name": "研究负责人 🔬",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        0,
        520
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "a65ffbe5-5a8f-446e-a7d7-f37cd192146e",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        640,
        720
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "04cfc571-25fe-4140-8763-e92b671660c0",
      "name": "委派给研究助理",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        840,
        520
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dfe0170d-08d0-4206-8f26-6e5e2e33a125",
      "name": "研究助理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1080,
        520
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "951a881b-47f4-4e21-acdf-12d402d5d649",
      "name": "项目规划师",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        460,
        520
      ],
      "parameters": {},
      "executeOnce": false,
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "e89014da-adb4-4027-96d7-3e7510f50b5d",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5b25e90d-49a7-439c-a58a-38eb5c683ebf",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1100,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b9f36fbb-217a-4fbb-9c5c-9de8396eec7d",
      "name": "OpenAI Chat Model5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        20,
        700
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cbd2e9f5-07a5-4656-9711-ad03ea2c5168",
      "name": "OpenAI Chat Model6",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2100,
        740
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7c2e3eb3-7f0c-40ef-bb18-5babcc597265",
      "name": "OpenAI聊天模型2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7de67c62-8174-4f05-8759-c0f162b32a51",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "42e4655a-2658-4284-a4e1-7b58d43d46d2",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1020,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "552a78f4-0630-4c1c-b0eb-a89c160df8c8",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1740,
        400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "18d6439c-9822-4ca1-88d5-7d01c5fc779b",
      "name": "标题1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2460,
        520
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "f2b360a6-77b1-42f3-98ce-9fe68af55a1d",
      "name": "Gmail1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2960,
        680
      ],
      "webhookId": "e7ac636e-586a-4e61-811e-9c67382e88eb",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "19f0ed2b-5be6-4973-b4df-d8239b0625bc",
      "name": "条件分支",
      "type": "n8n-nodes-base.switch",
      "position": [
        -300,
        380
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "da8fd4d1-1ad7-414a-8f00-73a87e392d9f",
      "name": "编辑器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2040,
        520
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "73ce6625-b808-431c-a230-ba4f6735450c",
      "name": "Gmail2",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1080,
        120
      ],
      "webhookId": "895d1dfe-bf3b-4e8a-bd3c-feed704127ea",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "0bf944db-7357-4bcf-9b15-4ec91888f0ff",
      "name": "Perplexity_tool2",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        180,
        720
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "356d49e0-612b-46da-8382-bd7556886464",
      "name": "Perplexity_tool1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1280,
        720
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "4a85b3bc-e56c-4d8e-8d52-2061bbdc3374",
      "name": "待监控新闻",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -900,
        380
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "4cd90f4b-546f-4cc8-ab6a-bad8497caf85",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -680,
        380
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "e1dd5801-e6be-419e-ae48-458ab01226fb",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1760,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "fdf6ea5c-1706-497c-a232-780cd749e0d9",
  "connections": {
    "Title": {
      "main": [
        [
          {
            "node": "Gmail2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Editor": {
      "main": [
        [
          {
            "node": "Title1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail2": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "News Reporter",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Research Leader 🔬",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Title1": {
      "main": [
        [
          {
            "node": "Gmail1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Markdown": {
      "main": [
        [
          {
            "node": "Title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Settings": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News Reporter": {
      "main": [
        [
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity API": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News to Monitor": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity_tool": {
      "ai_tool": [
        [
          {
            "node": "News Reporter",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Project Planner": {
      "main": [
        [
          {
            "node": "Delegate to Research Assistants",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity_tool1": {
      "ai_tool": [
        [
          {
            "node": "Research Assistant",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity_tool2": {
      "ai_tool": [
        [
          {
            "node": "Research Leader 🔬",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "News to Monitor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "News Reporter",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Final article text": {
      "main": [
        [
          {
            "node": "Editor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Title",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Project Planner",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Research Assistant",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Research Leader 🔬",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "Title1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Editor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Research Assistant": {
      "main": [
        [
          {
            "node": "Merge chapters title and text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Leader 🔬": {
      "main": [
        [
          {
            "node": "Project Planner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "Perplexity API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Project Planner",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Merge chapters title and text": {
      "main": [
        [
          {
            "node": "Final article text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delegate to Research Assistants": {
      "main": [
        [
          {
            "node": "Merge chapters title and text",
            "type": "main",
            "index": 1
          },
          {
            "node": "Research Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个高级难度的工作流,适用于Product、AI、Marketing等场景。适合高级用户,包含 16+ 个节点的复杂工作流

需要付费吗?

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

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

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

作者
Derek Cheung

Derek Cheung

@derekcheungsa

Derek is an engineer, instructor, and investor based in Canada. He is publicly building AI applications to solve real-world problems, leveraging his technical expertise to develop practical solutions.

外部链接
在 n8n.io 上查看 →

分享此工作流