8
n8n 中文网amn8n.com

多模型共识与 Telegram 提醒的 AI 股票分析

高级

这是一个Crypto Trading, AI Summarization领域的自动化工作流,包含 27 个节点。主要使用 Set, Code, Merge, Telegram, HttpRequest 等节点。 基于多模型共识和 Telegram 提醒的 AI 股票分析系统

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
  • Anthropic API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "cb9a1e5321767b6316634728341237e564b2587ab15b74ca0a89eb02a53484d6"
  },
  "nodes": [
    {
      "id": "5a3a9145-41ab-40ae-985a-4b9d8277137a",
      "name": "每日股票检查",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -992,
        624
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5b303b6e-0040-4737-89ae-ad584f0aead2",
      "name": "分析股票趋势",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        352
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0f0fb4d2-35be-4e34-b39d-262b7d72b4b3",
      "name": "预测未来趋势",
      "type": "n8n-nodes-base.code",
      "position": [
        0,
        352
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ab270d2d-a1ce-4134-9a47-d733731ceaf2",
      "name": "格式化 Telegram 消息",
      "type": "n8n-nodes-base.set",
      "position": [
        1264,
        624
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "893aaf34-ff74-4c53-b268-de8b602405e7",
      "name": "发送 Telegram 警报",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1408,
        624
      ],
      "webhookId": "40c4dd86-57a3-48ae-9ab0-422bb2342fd8",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0f61054a-ea49-4cc9-af94-0446b68c2030",
      "name": "分析新闻情绪",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        528
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ef961832-7731-44e2-a09c-9ce0656e5391",
      "name": "处理分析师评级",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        720
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "bee1068d-1e88-4f82-9bc0-750e5bd87595",
      "name": "分析社交情绪",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        912
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c46e491d-12c2-4101-b791-2ae63c443c35",
      "name": "合并所有分析",
      "type": "n8n-nodes-base.merge",
      "position": [
        48,
        592
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "ad7089ea-4441-4ca1-a6b0-05198b3fd002",
      "name": "生成全面建议",
      "type": "n8n-nodes-base.code",
      "position": [
        208,
        624
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0b01e016-e9d3-4bd6-b71e-5baf59bdc37a",
      "name": "OpenAI GPT 模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        752,
        1216
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f9457956-1183-4171-aa9b-18f7be670ff0",
      "name": "Anthropic Claude 模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        592,
        1216
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "dead5da8-af41-4507-b359-620842284b56",
      "name": "准备 AI 验证输入",
      "type": "n8n-nodes-base.set",
      "position": [
        384,
        832
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "993867f2-e9cf-4d25-91f1-4c99018f82d0",
      "name": "合并 AI 验证",
      "type": "n8n-nodes-base.merge",
      "position": [
        944,
        816
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "ba0f623d-130b-4064-b27f-da2fe6353fa7",
      "name": "评估 AI 共识",
      "type": "n8n-nodes-base.code",
      "position": [
        1104,
        832
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "374ee768-8818-40b5-9443-ccdaeaef02fd",
      "name": "AI 验证器 1 - OpenAI",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        592,
        688
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "5bef2edd-40cc-4447-8e84-f56cf31abd0b",
      "name": "AI 验证器 2 - Anthropic",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        592,
        832
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "9b81ab2c-fef2-45c4-bd6d-e6fccce2213e",
      "name": "AI 验证器 3 - Gemini",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        512,
        992
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "f00cc0d4-cf33-4319-bc42-723f023b11c1",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        96
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "56afcf23-5612-458d-8280-66613a259209",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        128
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b0b48b64-9434-4065-85f1-90e525ab3d9f",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        -32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b5b285a6-18e8-4f66-ab3b-76bccf9e6e91",
      "name": "API 配置",
      "type": "n8n-nodes-base.set",
      "position": [
        -768,
        624
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "f441cb0e-3a3c-48a0-adc6-833a583d2c3f",
      "name": "股票数据获取",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -352,
        352
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b0ed17f4-2149-4966-bdbe-4c93c591ae73",
      "name": "新闻情绪获取",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -368,
        528
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c1fba3ff-d606-4305-a70c-6cb0b772dce7",
      "name": "分析师评级获取",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -368,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "961fd0af-7f2a-4604-a863-da7c04e4ea20",
      "name": "社交媒体情绪获取",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -368,
        912
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9e2ed2db-b644-4446-b926-04e240b46611",
      "name": "xAI Grok 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
      "position": [
        432,
        1216
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "OpenAI GPT Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Validator 1 - OpenAI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Stock Data Fatch": {
      "main": [
        [
          {
            "node": "Analyze Stock Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API Configuration": {
      "main": [
        [
          {
            "node": "Stock Data Fatch",
            "type": "main",
            "index": 0
          },
          {
            "node": "News Sentiment Fatch",
            "type": "main",
            "index": 0
          },
          {
            "node": "Analyst Ratings Fetch",
            "type": "main",
            "index": 0
          },
          {
            "node": "Social Media Sentiment Fetch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Stock Check": {
      "main": [
        [
          {
            "node": "API Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "xAI Grok Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Validator 3 - Gemini",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Stock Trends": {
      "main": [
        [
          {
            "node": "Predict Future Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine All Analysis": {
      "main": [
        [
          {
            "node": "Generate Comprehensive Recommendation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News Sentiment Fatch": {
      "main": [
        [
          {
            "node": "Analyze News Sentiment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyst Ratings Fetch": {
      "main": [
        [
          {
            "node": "Process Analyst Ratings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Evaluate AI Consensus": {
      "main": [
        [
          {
            "node": "Format Telegram Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Predict Future Trends": {
      "main": [
        [
          {
            "node": "Combine All Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze News Sentiment": {
      "main": [
        [
          {
            "node": "Combine All Analysis",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Anthropic Claude Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Validator 2 - Anthropic",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Combine AI Validations": {
      "main": [
        [
          {
            "node": "Evaluate AI Consensus",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Validator 1 - OpenAI": {
      "main": [
        [
          {
            "node": "Combine AI Validations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Validator 3 - Gemini": {
      "main": [
        [
          {
            "node": "Combine AI Validations",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Format Telegram Message": {
      "main": [
        [
          {
            "node": "Send Telegram Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Analyst Ratings": {
      "main": [
        [
          {
            "node": "Combine All Analysis",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Analyze Social Sentiment": {
      "main": [
        [
          {
            "node": "Combine All Analysis",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "AI Validator 2 - Anthropic": {
      "main": [
        [
          {
            "node": "Combine AI Validations",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Prepare AI Validation Input": {
      "main": [
        [
          {
            "node": "AI Validator 1 - OpenAI",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Validator 2 - Anthropic",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Validator 3 - Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Social Media Sentiment Fetch": {
      "main": [
        [
          {
            "node": "Analyze Social Sentiment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Comprehensive Recommendation": {
      "main": [
        [
          {
            "node": "Format Telegram Message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Prepare AI Validation Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
DevCode Journey

DevCode Journey

@devcodejourney

I build intelligent systems that automate tasks, streamline workflows, and enhance user experiences using tools like n8n, AI chatbots, and modern automation platforms. With a passion for solving real-world problems through smart technology, I create custom solutions that help individuals and businesses save time, scale faster, and work smarter. Whether it's integrating APIs, building no-code/low-code automations, or developing conversational AI, I'm always exploring the edge of what's possible.

外部链接
在 n8n.io 查看

分享此工作流