8
n8n 中文网amn8n.com

使用 Google Gemini AI 生成财经新闻摘要并发送至 Outlook 邮箱

高级

这是一个Finance, Product, AI领域的自动化工作流,包含 18 个节点。主要使用 Set, Code, Aggregate, HttpRequest, ManualTrigger 等节点,结合人工智能技术实现智能自动化。 通过 Google Gemini AI 生成财经新闻摘要并发送至 Outlook 邮箱

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "68ab2fc38a2cc97b15d1ba880cb72d72238eae5b4218b86b5ebb74c36e6b712f",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "37ef1af1-135b-43f5-b461-eaaa0e5398d3",
      "name": "在线获取金融新闻",
      "type": "n8n-nodes-base.httpRequest",
      "notes": "Url : https://www.ft.com/",
      "position": [
        800,
        120
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "28e3610c-088b-441a-a878-a622d481f8a5",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -80,
        220
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "07495fc9-4c23-4afd-a613-c6c9c4afb8e4",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1420,
        280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "505775ac-b8c2-47cb-b52e-0d672defc7e8",
      "name": "收集元素",
      "type": "n8n-nodes-base.set",
      "position": [
        1020,
        120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "dcd60db4-d081-4bd8-adbd-9b5f1fe9daca",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1460,
        120
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "dd48f047-5afd-4328-be43-c4e273678335",
      "name": "通过电子邮件发送摘要",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        1400,
        -160
      ],
      "webhookId": "536b3246-b43f-4622-ae1e-2af5afdeb023",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b839af50-9de4-4e4b-bf2a-908162cf1673",
      "name": "当点击“测试工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -80,
        20
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0f98ba27-1a2f-49c4-8dcd-17b3f143e458",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        1240,
        120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "93ba87ad-038d-46d2-bdb2-6541bb168438",
      "name": "项目列表输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserItemList",
      "position": [
        1608,
        340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a756e116-60e4-43c3-8009-8795f1db0f4f",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2056,
        245
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "654de85f-47a7-4cc3-b2cb-aa46172f9bcd",
      "name": "Google Gemini 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2144,
        465
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c3200eee-d9c9-4b4c-a4f7-3b5d04e712c4",
      "name": "编辑字段1",
      "type": "n8n-nodes-base.set",
      "position": [
        140,
        120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "39fef131-fc55-49dc-af2b-7adad8307b12",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1180,
        -160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e17d16e5-ef89-4e99-9336-cd39a1a7442f",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        360,
        120
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5fdd6257-bca4-42dd-b2cf-5511abe1bfaa",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        580,
        120
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "584a32f9-115b-450c-bc4e-4bca605e9e44",
      "name": "编辑字段2",
      "type": "n8n-nodes-base.set",
      "position": [
        1836,
        120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "fc82325d-e873-41a1-a710-31b6ac3d761f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -180
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "dc18ae32-1396-4a89-84a4-53181405c2fd",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Send the summary by e-mail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get financial news online",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gather the elements": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Item List Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get financial news online": {
      "main": [
        [
          {
            "node": "Gather the elements",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 财务, 产品, 人工智能

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流