8
n8n 中文网amn8n.com

从 Finnhub 发送定时金融市场新闻更新到 Telegram

中级

这是一个AI领域的自动化工作流,包含 12 个节点。主要使用 Set, Code, Telegram, HttpRequest, ScheduleTrigger 等节点,结合人工智能技术实现智能自动化。 从 Finnhub 发送定时金融市场新闻更新到 Telegram

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "d04643ba872bb0fb252ed2c8197858d58cc47dd3c15ff6d08b19addd679e927b",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "fd6a2a46-e854-492a-8f09-79cced64e271",
      "name": "设置 Finhubb 的 API 密钥",
      "type": "n8n-nodes-base.set",
      "position": [
        -180,
        -220
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "c4e1d782-fa58-4a52-b5ee-88391bf2de5b",
      "name": "获取最新新闻",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        -160
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "38f9545e-6e18-4abd-a9cc-be356e1d799d",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        900,
        -200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6991e8e2-a34e-4d79-b644-8cb973fa24a9",
      "name": "计划触发器 - 每 4 小时",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -680,
        -220
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "8bfb9458-7980-4529-8951-9dc4d90e5b9f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        -480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "74f5d37e-7561-41fb-ba2c-db7b0f70f019",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bf289fe8-f141-46ed-b319-ccc814e7710d",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "45a6d72c-365c-40ba-a8ef-853097ff753a",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -580
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a09b3f82-7ffd-4b27-9a7b-2ba1cb6187d4",
      "name": "下载图像(可选)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        -200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "97db9cda-6959-4a0f-b3d6-8b5f96bb00be",
      "name": "通过 Telegram 发送文本更新",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1120,
        -220
      ],
      "webhookId": "be330673-ed11-430d-a276-a10846645163",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "229a64f2-a8c8-4e23-98d0-09078e8f99a6",
      "name": "发送图像(带文本更新)- 可选",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1340,
        -220
      ],
      "webhookId": "05d07797-6597-4967-995b-014b6f5e16d3",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b9b3bf08-17a6-4f14-92ef-d176e8e454ab",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1560,
        -580
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Send Text Updates via Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Latest News": {
      "main": [
        [
          {
            "node": "Download Image (optional)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set API Key for Finhubb": {
      "main": [
        [
          {
            "node": "Get Latest News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image (optional)": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Text Updates via Telegram": {
      "main": [
        [
          {
            "node": "Send Image (with text update) - Optional",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger - Every 4 Hours": {
      "main": [
        [
          {
            "node": "Set API Key for Finhubb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能

需要付费吗?

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

工作流信息
难度等级
中级
节点数量12
分类1
节点类型6
难度说明

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

外部链接
在 n8n.io 查看

分享此工作流