8
n8n 中文网amn8n.com

AI驱动股票交易自动化

高级

这是一个Crypto Trading, Multimodal AI领域的自动化工作流,包含 96 个节点。主要使用 Set, Code, Gmail, Limit, Merge 等节点。 使用AI技术分析和Alpaca交易自动化股票交易

前置要求
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
  • PostgreSQL 数据库连接信息
  • OpenAI API Key
  • Anthropic API Key
  • Supabase URL 和 API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "e7ccf4281d5afb175c79c02db95b45f15d5b53862cb6bc357c5e5bc26567f35c",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "25c12ca0-cac5-4091-bd2e-7dd29920c160",
      "name": "思考",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        3520,
        -192
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "01e3b67c-5d7e-49c5-bd5a-656aee0ac5df",
      "name": "Supabase Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        3760,
        624
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "2207a97d-716c-4e2e-8422-ab294805cab2",
      "name": "Supabase 向量存储1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        3408,
        -16
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "67b9a43e-243c-4802-b6e6-3f538af52fe1",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        3376,
        128
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5f7f688e-e960-44b3-b4a3-a7fa2985a4d3",
      "name": "默认数据加载器",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        3904,
        848
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "54ae7305-0156-4ac9-922d-3ae1875e8603",
      "name": "递归字符文本分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        3952,
        1008
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "12bad484-8499-4d44-9be6-d72ef19d636d",
      "name": "OpenAI 嵌入1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        3632,
        864
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9f2a39bd-58cc-46a9-8579-5320dcc5cf36",
      "name": "Cohere 重排序器",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        3536,
        144
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a0346957-3450-485f-9129-d0b06fe32847",
      "name": "排名",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        4688,
        -112
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "00c6073b-4b33-43a9-8a56-2d0549971b5d",
      "name": "板块",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        4464,
        -112
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "45a8d10f-5b86-404e-a46a-1ad92ee29613",
      "name": "行业",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        4576,
        -112
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1c2c618b-20db-4aa0-af0b-66a4eada4be1",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3264,
        528
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "c53c22db-c04a-4bbd-b196-e44fb813c4aa",
      "name": "技术分析工具1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        4848,
        976
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "31c63dc9-3ec3-4985-8d6e-9ab318720c8f",
      "name": "趋势分析工具1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        5072,
        992
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9f9fb939-de73-4053-aabd-3e80be1d7e65",
      "name": "思考2",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        5184,
        976
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "03cdfb7f-92a8-4c77-abe4-41827551366b",
      "name": "编辑字段 1",
      "type": "n8n-nodes-base.set",
      "position": [
        4688,
        688
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0fd13acb-3e36-43ff-b067-81dae78208dc",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4400,
        528
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "e3b04061-282a-461e-a765-29bd01d81c95",
      "name": "OpenRouter Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        4672,
        976
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dd51496d-e811-47f0-a595-6accff221265",
      "name": "下载图表",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4416,
        1296
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6159dede-050e-4522-b6fd-2f6ca3c66a79",
      "name": "获取图表 URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4208,
        1296
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7c56bac7-5ce3-4f8f-8358-a3d55bc26fa2",
      "name": "获取价格历史",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3648,
        1568
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "e25f61b2-3f6a-47b0-b328-799655d8698d",
      "name": "获取布林带",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3648,
        1728
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "e382a0d9-91e0-4f70-9ad4-eff792804f54",
      "name": "获取MACD指标",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3648,
        1888
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "85c0784b-e741-4854-ab9e-2d06234a4316",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        4160,
        1728
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "a51be081-47d9-4461-8d95-70bbb8baf268",
      "name": "计算支撑阻力",
      "type": "n8n-nodes-base.code",
      "position": [
        3872,
        1568
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b83d4d06-9cca-47dd-948f-d3693a6ae5f0",
      "name": "整理数据",
      "type": "n8n-nodes-base.code",
      "position": [
        4368,
        1728
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "cae1bd43-2eb3-42bb-a5db-900076f3ba56",
      "name": "合并-2",
      "type": "n8n-nodes-base.merge",
      "position": [
        4992,
        1568
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "fe8b693e-a2a6-416d-b805-5e0f2d9a5a4f",
      "name": "设置变量",
      "type": "n8n-nodes-base.set",
      "position": [
        4736,
        1296
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "4921be1f-1699-4d7f-a6a0-7e80dd18296e",
      "name": "封装为GPT用JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        5168,
        1568
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3bd3e7aa-f2c0-421b-8e84-5bca4bbbe48f",
      "name": "设置最终响应",
      "type": "n8n-nodes-base.set",
      "position": [
        5520,
        1568
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "3abddf6a-6106-4583-8dc2-37eda37d4370",
      "name": "设置股票代码和API密钥",
      "type": "n8n-nodes-base.set",
      "position": [
        3296,
        1568
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "36c2e5d5-b582-4115-8507-b23bd9ca8a9b",
      "name": "首次技术分析",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        4576,
        1296
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "90ae7e13-d9a3-41c6-b209-f19fd911a96d",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        4048,
        1296
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "df344900-8914-4e5d-ba8d-97bb0d6dba8d",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3248,
        1184
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "9c6eeaa7-0ece-4152-b6bb-7e081ab07486",
      "name": "聚合1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        4192,
        2496
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8658e813-0395-4892-84ec-b2c4d18e4660",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        4416,
        2496
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6f356e6a-5281-48d2-86d7-980972ecf02e",
      "name": "为API1生成变量",
      "type": "n8n-nodes-base.code",
      "position": [
        3376,
        2496
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ef1b8e2d-6345-4196-8609-fcb10816af5e",
      "name": "获取新闻数据1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3968,
        2496
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "e35f3b7e-83c6-4559-8383-45b934f3089a",
      "name": "拆分输出2",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        4848,
        2496
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "38c11fbe-2a1a-48eb-bd15-90e89e81ee39",
      "name": "限制1",
      "type": "n8n-nodes-base.limit",
      "position": [
        5296,
        2496
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ab014517-ad46-4cd3-a020-f3559b750c44",
      "name": "聚合2",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        5488,
        2496
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8480f155-8c25-4790-88b6-cb027a34b7ec",
      "name": "拆分3",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        3536,
        2496
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3bb1b65d-f4ca-41a3-b490-82aea72686c5",
      "name": "编辑字段3",
      "type": "n8n-nodes-base.set",
      "position": [
        3760,
        2496
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1f0c515f-a873-4e6a-aba1-98e43cddd0dc",
      "name": "代码1",
      "type": "n8n-nodes-base.code",
      "position": [
        4640,
        2496
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c84f014e-ef4c-4ab1-9e46-0a1ba87c95f3",
      "name": "编辑字段4",
      "type": "n8n-nodes-base.set",
      "position": [
        5072,
        2496
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "2aa11b53-a730-41c4-8b03-7f467ba73264",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3248,
        2192
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "89f05ff7-aa8f-404b-bbc5-96289fc3effe",
      "name": "编辑字段5",
      "type": "n8n-nodes-base.set",
      "position": [
        4784,
        -400
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e23f2ef4-bd3c-4ad5-8cbd-43e3305ac757",
      "name": "计算器",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        6288,
        48
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e711c273-cb77-47df-acd6-61e412a87e72",
      "name": "保存订单信息",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        6304,
        240
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "bf4c5f32-c827-465a-9784-8967538093ce",
      "name": "POST端点",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        6128,
        240
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7a150f47-8f7a-42cd-8289-ba1ec58b832b",
      "name": "GET端点",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        5984,
        240
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7ace5097-67aa-41a5-b0b8-d17f0ce23966",
      "name": "交易员代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        5888,
        -48
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "d7706650-3a00-4526-ad0e-8033dd70d1f5",
      "name": "策略代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        5056,
        -48
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "0d201d53-4361-431b-8b80-b27aa592d3ed",
      "name": "获取现金",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        5184,
        224
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0be1aad4-fb05-4aec-be9f-488ab1bd03d2",
      "name": "思考1",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        5488,
        192
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "55c70679-e261-4e70-b9e5-6e2d2e06038b",
      "name": "计算器1",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        5584,
        192
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "95dbabc0-fa50-4128-8f30-c26411d84256",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        3472,
        -576
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "987d0a72-1ca7-4980-8e57-15f07dae9f88",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        3792,
        176
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "509fd9db-3b4c-4e09-8915-3390e2320e6d",
      "name": "获取现金1",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        4000,
        304
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5a915595-09bd-40d2-aa02-b9b6ba11b42b",
      "name": "策略代理",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        3888,
        16
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "07a954f8-2cde-425f-a4b0-40a4759c7e52",
      "name": "思考3",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        4128,
        304
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "58d855db-c657-4727-882e-8d715d75a998",
      "name": "OpenRouter Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        5824,
        192
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c5afcf43-7a4b-4c10-93ab-50969380fe69",
      "name": "OpenRouter 聊天模型3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        4960,
        208
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b8b4ff24-19c0-4c1b-aa69-7e586cf68385",
      "name": "HTTP请求1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3712,
        -576
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9f1c6671-449d-406a-b2c1-e64f0221aaab",
      "name": "过滤器",
      "type": "n8n-nodes-base.filter",
      "position": [
        3840,
        -576
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "ef6ac2c7-2e16-4d66-9bdd-80179782c6c0",
      "name": "发送报告",
      "type": "n8n-nodes-base.gmail",
      "position": [
        4784,
        -672
      ],
      "webhookId": "f6586c17-da23-454b-adad-6d02fc79ec4b",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "940e1d3d-07ca-4e6d-b53f-d754d1bb2031",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4448,
        -160
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "c77bca96-fe13-47bf-955e-fcbd1ff740e0",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3280,
        624
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "0ca0adb2-351f-493f-b89d-0da1cbc1e281",
      "name": "便签 16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3728,
        2640
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "570db4ea-fa8c-4d86-ba67-4427ac848e0b",
      "name": "便签17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4176,
        1456
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "bb745934-b4e3-4aec-8ac3-42a5d5d18a7f",
      "name": "便签19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3264,
        1712
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "7e5fb3c0-cb09-4551-be81-0e4aadd07039",
      "name": "便签18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3696,
        -656
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "3ee52a9a-9165-403f-85d7-7e4d00f2441d",
      "name": "趋势+技术代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4848,
        688
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "0d0cd24a-f5d8-4b72-aa4a-80ea67723dbc",
      "name": "主代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        4000,
        -400
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3bc3ef43-efc9-4a10-ae70-f2cf85670014",
      "name": "便签20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5312,
        672
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "5397c448-72b7-46fb-bba4-8e3d444ddec7",
      "name": "便签21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3376,
        1328
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "45ca0495-736a-466a-b21b-67e07fd5ddbf",
      "name": "便签22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3408,
        2288
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "35b07c50-719b-470e-a9fd-4b04c3aa0ec2",
      "name": "便签23",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3264,
        -736
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "d70f0afd-9442-46ad-a2e1-f349bdedec3e",
      "name": "便签24",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4528,
        -752
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "10ea886f-71c9-4954-9686-9f733c803cdd",
      "name": "便签25",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3296,
        -64
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "0c131c1b-3079-42b9-bdcf-810761958eee",
      "name": "便签26",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5984,
        192
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "eca24031-8e29-4283-a718-592817bab433",
      "name": "当前交易",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        5360,
        192
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "cb757e2b-6e1a-4549-88ba-bbde444d3d65",
      "name": "当前交易1",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        4256,
        304
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "15b0fff1-3fb8-4a84-84a7-4324ef45aa6d",
      "name": "Grok 4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        3408,
        -192
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bc444494-b186-431e-b08b-e9e5a2a4ebdd",
      "name": "调用趋势+技术代理",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        4416,
        128
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "65ed8ac4-e122-4660-a7ee-7255769e7ff6",
      "name": "Markdown 转 HTML",
      "type": "n8n-nodes-base.markdown",
      "position": [
        4592,
        -672
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f99c1f3d-edf5-4682-902d-e73fdcf21727",
      "name": "Anthropic 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        5072,
        224
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c2ff3b7f-6e2b-44d8-bc5c-df77a70f7805",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4128,
        -2800
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "590a77b2-8c06-4c73-afaf-a0ec0c02170b",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4128,
        -3120
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "b2ffa16f-bbc0-4a9e-a995-f76ad820c6c0",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        -736
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "840134d4-5abf-45f1-bb35-ec56154f9713",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5792,
        576
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "25972584-a17c-4aa3-ac46-54c1d6c1b64f",
      "name": "便签 10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6096,
        960
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "43c48684-b4de-4546-b2f5-cfdfb2d89482",
      "name": "便签 11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5728,
        -2800
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "4fc5e034-d2d4-42f9-aecd-ad5ed5e09cc2",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        -496
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "03f48cd1-1a0c-4a00-9675-c2a0f6f344b0",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2704,
        -2800
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "052228cc-ba57-4e54-aa2a-a0d30eddd391",
      "name": "便签14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3776,
        -80
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "Split Out2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Organizing Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think": {
      "ai_tool": [
        [
          {
            "node": "MAIN AGENT",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "MAIN AGENT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grok 4": {
      "ai_languageModel": [
        [
          {
            "node": "MAIN AGENT",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Limit1": {
      "main": [
        [
          {
            "node": "Aggregate2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think1": {
      "ai_tool": [
        [
          {
            "node": "strategy agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Think2": {
      "ai_tool": [
        [
          {
            "node": "Trend + Technical Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Think3": {
      "ai_tool": [
        [
          {
            "node": "Strategy Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Merge-2": {
      "main": [
        [
          {
            "node": "Warp as JSON for GPT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ranking": {
      "ai_tool": [
        [
          {
            "node": "MAIN AGENT",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "sectors": {
      "ai_tool": [
        [
          {
            "node": "MAIN AGENT",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "GET cash": {
      "ai_tool": [
        [
          {
            "node": "strategy agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get MACD": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "GET cash1": {
      "ai_tool": [
        [
          {
            "node": "Strategy Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "Trader Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "MAIN AGENT": {
      "main": [
        [
          {
            "node": "Edit Fields5",
            "type": "main",
            "index": 0
          },
          {
            "node": "Markdown to HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out2": {
      "main": [
        [
          {
            "node": "Edit Fields4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out3": {
      "main": [
        [
          {
            "node": "Edit Fields3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "industries": {
      "ai_tool": [
        [
          {
            "node": "MAIN AGENT",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calculator1": {
      "ai_tool": [
        [
          {
            "node": "strategy agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Get Chart URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send report": {
      "main": [
        []
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Trend + Technical Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields3": {
      "main": [
        [
          {
            "node": "Get News Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields4": {
      "main": [
        [
          {
            "node": "Limit1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields5": {
      "main": [
        [
          {
            "node": "strategy agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Variable": {
      "main": [
        [
          {
            "node": "Merge-2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET endpoints": {
      "ai_tool": [
        [
          {
            "node": "Trader Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get Chart URL": {
      "main": [
        [
          {
            "node": "Download Chart",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Chart": {
      "main": [
        [
          {
            "node": "First Technical Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get News Data1": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "POST endpoints": {
      "ai_tool": [
        [
          {
            "node": "Trader Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Strategy Agent": {
      "ai_tool": [
        [
          {
            "node": "MAIN AGENT",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "current trades": {
      "ai_tool": [
        [
          {
            "node": "strategy agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "strategy agent": {
      "main": [
        [
          {
            "node": "Trader Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Organizing Data": {
      "main": [
        [
          {
            "node": "Merge-2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Reranker Cohere": {
      "ai_reranker": [
        [
          {
            "node": "Supabase Vector Store1",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "current trades1": {
      "ai_tool": [
        [
          {
            "node": "Strategy Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "save order info": {
      "ai_tool": [
        [
          {
            "node": "Trader Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Markdown to HTML": {
      "main": [
        [
          {
            "node": "Send report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Supabase Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Get Price History": {
      "main": [
        [
          {
            "node": "Calculate Support Resistance",
            "type": "main",
            "index": 0
          },
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Supabase Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Supabase Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Get Bollinger Bands": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "strategy agent",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Warp as JSON for GPT": {
      "main": [
        [
          {
            "node": "Set Final Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Strategy Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Trends Analysis Tool1": {
      "ai_tool": [
        [
          {
            "node": "Trend + Technical Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Trader Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Trend + Technical Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "strategy agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Supabase Vector Store1": {
      "ai_tool": [
        [
          {
            "node": "MAIN AGENT",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "First Technical Analysis": {
      "main": [
        [
          {
            "node": "Set Variable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Technical Analysis Tool1": {
      "ai_tool": [
        [
          {
            "node": "Trend + Technical Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Generate Variables For API1": {
      "main": [
        [
          {
            "node": "Split Out3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Support Resistance": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call trend + technical Agent": {
      "ai_tool": [
        [
          {
            "node": "MAIN AGENT",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set Stock Symbol and API Key": {
      "main": [
        [
          {
            "node": "Get Price History",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Bollinger Bands",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get MACD",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 加密货币交易, 多模态 AI

需要付费吗?

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

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

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

作者

Automation expert & n8n power user. I build advanced workflows combining AI, outbound, and business logic. Grab my templates or reach out for custom builds.

外部链接
在 n8n.io 查看

分享此工作流