8
n8n 中文网amn8n.com

使用K线图和新闻分析生成AI驱动的股票交易推荐

高级

这是一个Crypto Trading, AI Summarization领域的自动化工作流,包含 22 个节点。主要使用 Code, Merge, Switch, Telegram, Aggregate 等节点。 使用K线图和新闻分析生成AI驱动的股票交易推荐

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "69808d2b6fd5d4c920137a1f782d97fe0456502d6463195b2bd0ae56f1b7d627",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "1f330325-0ee9-442f-a155-5d3b09677591",
      "name": "Telegram触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -608,
        192
      ],
      "webhookId": "74516488-f5be-4c5b-ae40-2b2b631a3bf8",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "1d93f5ee-8296-45d6-ae63-e007d90ca921",
      "name": "15分钟间隔",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        64,
        192
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f766d4a5-3ea8-4671-b520-fb977edad363",
      "name": "1分钟间隔",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        64,
        0
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e8dfc4c7-c25c-4ede-9deb-80e2290a515f",
      "name": "1小时间隔",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        64,
        400
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c63d12b9-f4bd-47aa-954c-e8fc75fa079c",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        416,
        176
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "87d4bcd9-b9f5-4df6-a507-a97c471bf4c6",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        624,
        192
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5510f68f-f39e-43bd-a042-0cd276d1dfce",
      "name": "JavaScript 代码",
      "type": "n8n-nodes-base.code",
      "position": [
        832,
        192
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "8a2d501d-bdb4-4731-9f00-65dcb1e0ad86",
      "name": "新闻聚合器",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        64,
        800
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ee9206ad-b5e0-4750-8164-5d7912d52ea2",
      "name": "向模型发送消息",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        576,
        800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "22320b17-66bf-4559-8ed4-dd498dfec839",
      "name": "合并1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1184,
        208
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "be5bc890-2c59-437c-a9b7-da7da9bc309f",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1392,
        208
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4496d0d2-d27d-4e1e-bfe9-2a1fb553fc8e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1600,
        208
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "4f5d53ea-3c8a-419c-8817-3e0e471ac9da",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1600,
        448
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3147702d-d6c5-4e35-889e-11467eb6312e",
      "name": "发送文本消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1952,
        208
      ],
      "webhookId": "91aacc9c-a732-4ff6-9bf9-3ff9a9008a10",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "8e8e6025-a483-4c42-9cbf-571f7300e118",
      "name": "账户检查",
      "type": "n8n-nodes-base.switch",
      "position": [
        -336,
        192
      ],
      "parameters": {},
      "typeVersion": 3.3
    },
    {
      "id": "10dca921-6622-4042-9c79-b83c69ce8631",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "50535216-6450-4816-8dd8-464bafc1cbda",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "80d0e97b-1fdd-44fc-9d61-400f7cb08bb4",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -192
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "508acfc6-5968-4637-af4f-1a8cdf4abf99",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        608
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9af50cc7-3da6-404b-b7f9-52db8812885d",
      "name": "便签说明4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c7079d4a-6664-4e71-8d06-3e4387c31361",
      "name": "便签说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d396134d-9a53-42d5-ba16-11472ba6522f",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        -176
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Account Check": {
      "main": [
        [
          {
            "node": "1 min Interval",
            "type": "main",
            "index": 0
          },
          {
            "node": "15 min Interval",
            "type": "main",
            "index": 0
          },
          {
            "node": "1 hour Interval",
            "type": "main",
            "index": 0
          },
          {
            "node": "News Aggregator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1 min Interval": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1 hour Interval": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "15 min Interval": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "News Aggregator": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Account Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 加密货币交易, AI 摘要总结

需要付费吗?

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

工作流信息
难度等级
高级
节点数量22
分类2
节点类型11
难度说明

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

作者
Paul Abraham

Paul Abraham

@hellopaul

Software Engineer & Automation Consultant with over 3+ years in experience helping teams streamline workflows with n8n, APIs, and AI-driven solutions.

外部链接
在 n8n.io 查看

分享此工作流