8
n8n 中文网amn8n.com

美股财报日历更新到Telegram (Finnhub + Gemini)

中级

这是一个AI领域的自动化工作流,包含 15 个节点。主要使用 Set, Code, Telegram, HttpRequest, Agent 等节点,结合人工智能技术实现智能自动化。 美股财报日历更新到Telegram (Finnhub + Gemini)

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "d04643ba872bb0fb252ed2c8197858d58cc47dd3c15ff6d08b19addd679e927b",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "8347d92e-7507-4f3f-bcea-4741bf697402",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        -480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0ef0eb9f-d95d-4b4c-81c0-7f6dc1632c87",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -440
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b3bff7e3-3c10-4925-9922-9e73e8c015de",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "04130ead-786e-4776-a2fa-88899308bcbe",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        -520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2f60f7eb-757e-44d1-a126-f22c1307237c",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1840,
        -520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f8f58c60-a553-4824-8244-d5cfaf6c4bd0",
      "name": "为 Finhubb 和日期设置 API 密钥",
      "type": "n8n-nodes-base.set",
      "position": [
        -200,
        -200
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "862a3e63-ebd7-4ecd-a17b-5989c1497890",
      "name": "动态设置日期",
      "type": "n8n-nodes-base.code",
      "position": [
        -560,
        -200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c27c6bb0-f33d-4db1-bfc4-39b93ee1ef86",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1020,
        -180
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "6b9ad8e2-0fbf-47f1-a7d5-2d609150ed50",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1300,
        180
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e49a76e9-bcff-4273-8d0d-7104b11d7dbc",
      "name": "通过 Telegram 发送即将到来的收益更新",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1560,
        -180
      ],
      "webhookId": "0aec5567-7da9-4d73-bdb9-95783afb9bf5",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "01bb4be7-1d34-4e83-85e6-1f446937aa01",
      "name": "每 3 天调度一次",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -940,
        -200
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a9b76167-29bb-4c87-a678-ef9a96a49fc7",
      "name": "组织输入",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        -180
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "288aebee-82e4-4653-afee-e2b9868422ee",
      "name": "便利贴5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f3449ad7-d4ff-4176-a27f-aa2f0f508891",
      "name": "获取即将到来的收益",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        340,
        -180
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0d72b101-65e1-47fa-b14d-a24ff121e9dc",
      "name": "Google Gemini 聊天模型(格式化输出)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        980,
        180
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send Upcoming Earning Updates via Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Organizes Input": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Every 3 Days": {
      "main": [
        [
          {
            "node": "Dynamically Sets the Date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gets Upcoming Earnings": {
      "main": [
        [
          {
            "node": "Organizes Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Dynamically Sets the Date": {
      "main": [
        [
          {
            "node": "Set API Key for Finhubb & Dates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set API Key for Finhubb & Dates": {
      "main": [
        [
          {
            "node": "Gets Upcoming Earnings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model (Formats Output)": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send Upcoming Earning Updates via Telegram": {
      "main": [
        []
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 人工智能

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流