8
n8n 中文网amn8n.com

34 抓取行业新闻

中级

这是一个Market Research, AI Summarization领域的自动化工作流,包含 15 个节点。主要使用 Set, Gmail, McpClientTool, ManualTrigger, Agent 等节点。 使用 Bright Data 和 OpenAI 抓取并总结行业新闻

前置要求
  • Google 账号和 Gmail API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "dsv9xYDvOspXvmJu",
  "meta": {
    "instanceId": "c38e3b8a7e4240e6cdca062743f016c1029f385bf40345b6291939dfd83bfd77",
    "templateCredsSetupCompleted": true
  },
  "name": "34 抓取行业新闻",
  "tags": [],
  "nodes": [
    {
      "id": "0c4683d3-8831-40f9-833a-310b0b68a469",
      "name": "🚦 启动工作流(手动触发器)",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -340,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "41e25dac-8502-4d86-96fe-48433b729ec5",
      "name": "🔗 输入路透社新闻 URL",
      "type": "n8n-nodes-base.set",
      "position": [
        -120,
        -120
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "9e033994-1185-44a1-8ce4-d9afa36666bb",
              "name": "reuterURL",
              "type": "string",
              "value": "https://www.reuters.com/world/middle-east/under-pressure-hezbollah-weighs-scaling-back-its-arsenal-2025-07-04/"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "cb9301d7-a1f3-4d27-9af2-999fcb695dd9",
      "name": "🤖 代理:抓取路透社新闻",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        180,
        -120
      ],
      "parameters": {
        "text": "=Scrape the latest news articles from the following news site about Iran and Israel war: \n{{ $json.reuterURL }}\nPlease return the article titles, authors, dates, and article content.\nand also summarize the trends\n\n",
        "options": {},
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2
    },
    {
      "id": "c6709881-f403-4032-b676-f80a9812c92d",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        100,
        140
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "kmqnyfHdWfA8k1KC",
          "name": "OpenAi account 3"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "d9f31175-9200-4df1-9787-37f182ed90f1",
      "name": "🌐 MCP 客户端工具",
      "type": "n8n-nodes-mcp.mcpClientTool",
      "position": [
        260,
        140
      ],
      "parameters": {
        "toolName": "web_data_reuter_news",
        "operation": "executeTool",
        "toolParameters": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Tool_Parameters', ``, 'json') }}"
      },
      "credentials": {
        "mcpClientApi": {
          "id": "dGu6Ys11ijXSTxcV",
          "name": "MCP Client (STDIO) account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "1bdb202c-d193-4270-be11-46d0266cad1d",
      "name": "✉️ 发送洞察给趋势团队(Gmail)",
      "type": "n8n-nodes-base.gmail",
      "position": [
        700,
        -120
      ],
      "webhookId": "f47db523-8a54-47f1-86fc-9266bca96f2e",
      "parameters": {
        "sendTo": "shahkar.genai@gmail.com",
        "message": "=<p>Hello Team,</p>\n\n<p>Here is the latest article scraped from Reuters regarding Hezbollah's strategic shift amid regional tensions:</p>\n\n<h3>Article Title: Under pressure, Hezbollah weighs scaling back its arsenal</h3>\n<p><strong>Authors:</strong> Laila Bassam, Maya Gebeily</p>\n<p><strong>Published Date:</strong> 2025-07-04</p>\n\n<p><strong>Content Summary:</strong></p>\n<ul>\n  <li>Hezbollah is conducting a major strategic review following its devastating war with Israel, considering scaling back its armed role without full disarmament.</li>\n  <li>The group faces multiple pressures including Israeli strikes, U.S. disarmament demands, financial strains, and diminished political influence.</li>\n  <li>Hezbollah may surrender some high-threat weapons like missiles and drones if Israel withdraws from southern Lebanon and ceases attacks, but plans to retain lighter arms and anti-tank missiles for future resistance.</li>\n  <li>Internal discussions cover leadership structure, political role, social work, and weapons, reflecting Hezbollah's struggle to balance military strength with political and financial realities.</li>\n  <li>The group remains a critical force for its supporters despite setbacks, and it is navigating funding challenges and the need to maintain influence in upcoming Lebanese elections.</li>\n</ul>\n\n<p><strong>Trend Summary:</strong></p>\n<ul>\n  <li>Hezbollah's shift from an overtly militant stance to a more political and social role indicates changing dynamics in Lebanon's regional security landscape.</li>\n  <li>The group's willingness to negotiate on parts of its arsenal signals potential easing of tensions but also highlights ongoing conflict risks with Israel and internal Lebanese rivals.</li>\n  <li>International pressures, especially from the U.S. and Israel, are intensifying, particularly targeting Hezbollah's finances and arms supply routes.</li>\n  <li>Hezbollah's future hinges on balancing its military capabilities with the need to maintain support amongst its core constituency amid Lebanon's fragile political environment.</li>\n  <li>The ongoing conflict's regional consequences are profound, with shifts in alliances and power balances influenced by the 2023 war and subsequent Israeli military actions.</li>\n</ul>\n\n\n<p>Best regards,<br>\nYour Automated Workflow</p>\n",
        "options": {
          "appendAttribution": false
        },
        "subject": "Industry News: Hezbollah's Strategic Shift Amid Regional Tensions "
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "fZQRQuE7FmCr9daN",
          "name": "Gmail account 2"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "a5ccf7f1-0933-44d0-9217-127f34decfd4",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -780
      ],
      "parameters": {
        "color": 5,
        "width": 440,
        "height": 860,
        "content": "## 1️⃣ **第一部分:启动与输入**"
      },
      "typeVersion": 1
    },
    {
      "id": "4ed7daeb-c330-4e37-91e7-0a1454ab6bbd",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -1400
      ],
      "parameters": {
        "color": 3,
        "width": 480,
        "height": 1480,
        "content": "## 2️⃣ **第二部分:AI 代理抓取并分析新闻**"
      },
      "typeVersion": 1
    },
    {
      "id": "14fa2f4a-ac1d-4816-9589-5b76010ec808",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        -720
      ],
      "parameters": {
        "color": 2,
        "width": 360,
        "height": 800,
        "content": "## 3️⃣ **第三部分:与趋势团队分享洞察**"
      },
      "typeVersion": 1
    },
    {
      "id": "3b016ca9-2ee7-4b68-854c-338ba83afc9f",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        -1540
      ],
      "parameters": {
        "color": 4,
        "width": 1300,
        "height": 3060,
        "content": "# 🚀 **抓取行业新闻**"
      },
      "typeVersion": 1
    },
    {
      "id": "0faff930-fd91-4882-b232-24d6ac04769c",
      "name": "便签说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -720
      ],
      "parameters": {
        "color": 7,
        "width": 380,
        "height": 240,
        "content": "## 如果您通过此链接加入 Bright Data,我将获得少量佣金 — 感谢您支持更多免费内容!"
      },
      "typeVersion": 1
    },
    {
      "id": "e8cf9646-dd81-49ad-8e33-bba27ee57cfc",
      "name": "便签 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        -1880
      ],
      "parameters": {
        "color": 4,
        "width": 1300,
        "height": 320,
        "content": "======================================="
      },
      "typeVersion": 1
    },
    {
      "id": "be03bcd2-5cf3-47e1-a27c-deb5f6821d70",
      "name": "自动修复输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        400,
        140
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "ee8d7d4c-b3f2-4c90-89fe-1d27054aa628",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        340,
        360
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "kmqnyfHdWfA8k1KC",
          "name": "OpenAi account 3"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "fda6fc11-8e42-4ce3-91e2-4d642673efaa",
      "name": "📦 将文章格式化为结构化输出",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        540,
        360
      ],
      "parameters": {
        "jsonSchemaExample": "{\n  \"platform\": \"Reuters\",\n  \"article\": {\n    \"title\": \"Under pressure, Hezbollah weighs scaling back its arsenal\",\n    \"authors\": [\"Laila Bassam\", \"Maya Gebeily\"],\n    \"date\": \"July 4, 2025\",\n    \"content_summary\": [\n      \"Hezbollah is conducting a major strategic review after its devastating war with Israel, considering scaling back its role as an armed movement without fully disarming.\",\n      \"This reflects pressures from ongoing Israeli strikes, financial strains, US demands for disarmament, and diminished political influence since Lebanon's new cabinet took office.\",\n      \"Hezbollah faces regional shifts: Syrian ally Bashar al-Assad toppled, severing arms supply routes; Iran recovering from its conflict with Israel, limiting aid.\",\n      \"Discussions within Hezbollah involve leadership structure, political role, social work, and weapons.\",\n      \"The group views its large arsenal as a liability but plans to keep lighter arms and anti-tank missiles to resist future attacks.\",\n      \"Hezbollah sacrificed some weapons depots in southern Lebanon per the truce but is reluctant to surrender its entire arsenal, especially missiles and drones.\",\n      \"The ceasefire brokered by the US and France demands Lebanon confiscate unauthorized arms, but Hezbollah wants to retain some weapons fearing attacks from Israel and Sunni jihadists in Syria.\",\n      \"Hezbollah faces financial strains impacting compensation and social services to constituents affected by the war.\",\n      \"Israel continues military actions targeting Hezbollah-linked infrastructure and finances.\",\n      \"Hezbollah aims to maintain political power in Lebanon amid tensions with rivals.\",\n      \"The group’s armed status is deemed part of its DNA and difficult to relinquish despite pressure.\"\n    ],\n    \"trend_summary\": [\n      \"Hezbollah's future strategy is pivoting to reduce overt militarization while retaining a defensive capability.\",\n      \"Financial constraints and geopolitical shifts are compelling Hezbollah to rethink its armed posture.\",\n      \"The regional balance is volatile with the Iran-Israel conflict impacting Hezbollah’s operational dynamics.\",\n      \"Domestic Lebanese politics and international pressure are pivotal factors in Hezbollah's decisions about its arsenal and political role.\",\n      \"The peace process remains fragile with ceasefire violations and unresolved tensions.\"\n    ]\n  }\n}\n"
      },
      "typeVersion": 1.3
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9be77b79-b2e3-487b-8625-ab23ae3d1fae",
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "🤖 Agent: Scrape Reuters News",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "🌐 MCP Client Tool ": {
      "ai_tool": [
        [
          {
            "node": "🤖 Agent: Scrape Reuters News",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "🤖 Agent: Scrape Reuters News",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "🔗 Enter Reuters News URL": {
      "main": [
        [
          {
            "node": "🤖 Agent: Scrape Reuters News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🤖 Agent: Scrape Reuters News": {
      "main": [
        [
          {
            "node": "✉️ Send Insights to Trends Team (Gmail)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🚦 Start Workflow (Manual Trigger)": {
      "main": [
        [
          {
            "node": "🔗 Enter Reuters News URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📦 Format Article as Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 市场调研, AI 摘要总结

需要付费吗?

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

工作流信息
难度等级
中级
节点数量15
分类2
节点类型9
难度说明

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

作者
Yaron Been

Yaron Been

@yaron-nofluff

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos

外部链接
在 n8n.io 查看

分享此工作流