8
n8n 中文网amn8n.com

股票信息

中级

这是一个Finance, AI领域的自动化工作流,包含 15 个节点。主要使用 Set, Telegram, HttpRequest, Agent, HttpRequestTool 等节点,结合人工智能技术实现智能自动化。 使用 Telegram、Yahoo Finance 和 GPT-4 Nano 的股票信息助手

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "KgeZgdhkiLTg1WWW",
  "meta": {
    "instanceId": "933df83c84196d70ce3ffd0bf5d3e1aca31b7366f2f84e1f3482640096e4a3a9",
    "templateCredsSetupCompleted": true
  },
  "name": "股票信息",
  "tags": [],
  "nodes": [
    {
      "id": "554cf17a-245d-419b-a91e-fe7dc40d480d",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "a367751a-f7e5-4e96-afce-dc8cdc135883",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "df921720-704e-46f3-8a79-5b0f8f2a6f03",
      "name": "OpenRouter聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        220,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "171dcdae-19a7-4aa1-b3d3-49ea6bf7df85",
      "name": "当由另一个工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        0,
        660
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "3ccac394-c0ca-45cc-b8d4-8be77b49bfa2",
      "name": "获取股票代码名称",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        740,
        240
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7b806c05-f25b-4614-8620-075bffd6b0fe",
      "name": "信息提取器",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        440,
        660
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "33977344-0778-408b-aaac-61eafb2ee1f1",
      "name": "OpenRouter 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        480,
        900
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "25a48b46-2bb9-462e-a844-1103e57560a1",
      "name": "Google 搜索",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        660
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6d6ec3b6-dfac-4008-b61a-1acde5ef51d6",
      "name": "股票代码名称搜索",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        660
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7ddc42eb-49be-40ac-ab00-e994d289bbb9",
      "name": "设置股票代码",
      "type": "n8n-nodes-base.set",
      "position": [
        1060,
        660
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0084228a-5b07-4573-ba62-0b94ab1b95d0",
      "name": "获取股票信息",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        560,
        220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "69088a6d-32a5-4fe8-b10b-5ebf6c88b4e7",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1040,
        0
      ],
      "webhookId": "7340a98b-893c-4bd1-9f5e-8dafe5ace0f5",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5a7048c9-e0b9-4fe3-b03e-12f7551a6780",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -300
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5510579b-e103-4e33-b9a5-299fb77cd7df",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        420
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "10ef6e8a-7345-494d-bf47-242a66d6b2fe",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        380,
        240
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "0972cafc-444a-4d63-a52d-6b5e05c199ff",
      "name": "股票市场代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        440,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "18b4779d-af7a-4dbd-8cd4-c685ea431eba",
  "connections": {
    "Google Search": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Stock Market Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Get Stock Info": {
      "ai_tool": [
        [
          {
            "node": "Stock Market Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Ticker Name": {
      "ai_tool": [
        [
          {
            "node": "Stock Market Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Stock Market Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stock Market Agent": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ticker Name Search": {
      "main": [
        [
          {
            "node": "Set Ticker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "Ticker Name Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Stock Market Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Google Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 财务, 人工智能

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流