8
n8n 中文网amn8n.com

股市技术分析

高级

这是一个Finance, AI领域的自动化工作流,包含 16 个节点。主要使用 Set, Code, Telegram, HttpRequest, Agent 等节点,结合人工智能技术实现智能自动化。 使用 GPT-4o 和 TradingView 为 Telegram 提供股市技术分析

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "4786bf0f18c0e8e92c361de5a158cabf4eb0bb3b9c113091b054ff26e359a029",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "57a8cbd8-bc2f-4600-a077-c2cec70962d8",
      "name": "Telegram触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        220,
        100
      ],
      "webhookId": "5c56b0ad-c452-4ada-aba6-ac4da8238aca",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c0794d04-4a75-4e78-93c8-fd6dbecfb87c",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        580,
        100
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "a7a243d2-80f7-4ace-b758-74770c83be0e",
      "name": "窗口缓冲内存",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        640,
        320
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "aa4d7ada-5275-4271-8b9f-e0ec32f0c699",
      "name": "获取图表",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        860,
        320
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c8f7d274-930e-4a23-ac6e-ab8a3b434c70",
      "name": "响应 2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        980,
        100
      ],
      "webhookId": "a2e618b0-f2a6-4d64-8782-7069e39a59bd",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9580a9a5-3153-4fa9-8862-8e2e08506fac",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4c40f975-b35d-4706-9935-de521db30cd2",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        420,
        320
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "26b9939c-dec4-4142-b884-6cbef56adb26",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "19b572cf-1a26-4e83-bdf6-d005cf2e9ea1",
      "name": "当被其他工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        40,
        560
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "0e76105a-62b1-4b2f-9e84-7c4f11b3b0c4",
      "name": "下载图表",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        560
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6f506393-e225-45ec-a49f-eb473585e877",
      "name": "分析",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1020,
        560
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "1188a40d-16a2-4536-8d60-1be4eaccd353",
      "name": "响应",
      "type": "n8n-nodes-base.set",
      "position": [
        1420,
        560
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "655d3289-55c6-49e3-8e1d-c7883ce57415",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1220,
        560
      ],
      "webhookId": "31b77856-a976-4e63-9e6b-aeada64aeaab",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "562a4d01-5a27-466d-9114-c5edc4205885",
      "name": "获取图表",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        560
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4fb8a467-b3b1-49c6-9eb9-c24e439fdfc4",
      "name": "符号和聊天 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        560
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "61e766ff-1b07-4bbc-9d48-fe996281fc00",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        240,
        560
      ],
      "parameters": {},
      "typeVersion": 2
    }
  ],
  "pinData": {},
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Symbol And ChatId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Response2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analysis": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GetChart": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Chart": {
      "main": [
        [
          {
            "node": "Download Chart",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Chart": {
      "main": [
        [
          {
            "node": "Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Symbol And ChatId": {
      "main": [
        [
          {
            "node": "Get Chart",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 财务, 人工智能

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流