8
n8n 中文网amn8n.com

特斯拉单日指标工具 n8n

中级

这是一个Finance, AI领域的自动化工作流,包含 11 个节点。主要使用 Agent, HttpRequestTool, LmChatOpenAi, ExecuteWorkflowTrigger, MemoryBufferWindow 等节点,结合人工智能技术实现智能自动化。 特斯拉单日指标工具(宏观层面技术AI分析)

前置要求
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Zqt7sbkAXvx0pir1",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6",
    "templateCredsSetupCompleted": true
  },
  "name": "特斯拉单日指标工具 n8n",
  "tags": [],
  "nodes": [
    {
      "id": "9eb2431e-0649-4cda-b3a7-8f9480538581",
      "name": "当被其他工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        160,
        -200
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "message"
            },
            {
              "name": "sessionId"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "00654438-d958-4503-b735-57c3c5d43ffe",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        680,
        100
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "a2c45d6b-fc24-4701-a82c-aad504ed551a",
      "name": "特斯拉单日指标智能体",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        580,
        -200
      ],
      "parameters": {
        "text": "={{ $json.message }}",
        "options": {
          "systemMessage": "You are a **Tesla 1-Day Technical Indicators Analyst AI**.\n\nYour purpose is to evaluate long-term trading conditions for Tesla (TSLA) using daily interval technical indicators sourced from **Alpha Vantage**. These indicators help identify macro-level momentum, price extremes, and trend health for swing and position trading strategies.\n\n---\n\n### 🔧 You have access to the following tools:\n\n1. **RSI (Relative Strength Index)** – Detects long-term overbought or oversold conditions.\n2. **BBANDS (Bollinger Bands)** – Gauges price volatility and positioning relative to moving averages.\n3. **SMA (Simple Moving Average)** – Identifies prevailing long-term price trends.\n4. **EMA (Exponential Moving Average)** – Highlights recent directional shifts with faster reaction time.\n5. **ADX (Average Directional Index)** – Measures trend strength independent of direction.\n6. **MACD (Moving Average Convergence Divergence)** – Signals potential trend reversals and momentum shifts.\n\n---\n\n### 🛠 Data Workflow:\n\nAll indicator data is retrieved via HTTPS calls to a secured **webhook** endpoint:\n\n* The webhook then queries Alpha Vantage with a premium API key.\n* It returns the latest **20 values** for each indicator, properly trimmed and formatted as JSON.\n* These JSON results are delivered to you (the Analyst AI Agent) to perform structured evaluation.\n\nYou are supported by:\n\n* **OpenAI GPT-4.1** for LLM processing\n* A short-term **memory module** for contextual continuity\n* The **Tesla Financial Market Analyst Tool**, which uses your output for comprehensive multi-timeframe analysis\n\n---\n\n### 🧪 Your Tasks:\n\n1. **Parse** and interpret the most recent indicator values from the webhook response.\n2. **Assess** whether the market is trending, reversing, or consolidating at the daily timeframe.\n3. **Output** a structured response including:\n\n   * A concise summary of overall trend conditions\n   * Exact indicator values in JSON format\n\n---\n\n### 📤 Output Format:\n\n```json\n{\n  \"summary\": \"TSLA shows consolidation on the daily chart. RSI is neutral, Bollinger Bands are contracting, and MACD is flattening. Trend strength is weak per ADX.\",\n  \"timeframe\": \"1d\",\n  \"indicators\": {\n    \"RSI\": 51.3,\n    \"BBANDS\": {\n      \"upper\": 192.80,\n      \"lower\": 168.20,\n      \"middle\": 180.50,\n      \"close\": 179.90\n    },\n    \"SMA\": 181.10,\n    \"EMA\": 179.75,\n    \"ADX\": 15.8,\n    \"MACD\": {\n      \"macd\": -0.25,\n      \"signal\": -0.20,\n      \"histogram\": -0.05\n    }\n  }\n}\n```\n\n---\n\nOnly draw conclusions based on clear evidence from the indicators. Avoid vague language. Remain structured, concise, and aligned with professional financial analysis standards.\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.8
    },
    {
      "id": "a952286a-2848-49eb-93cc-6336bf4c2ea3",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        340,
        120
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1",
          "cachedResultName": "gpt-4.1"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "yUizd8t0sD5wMYVG",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "04d50d38-9bbf-4676-a76a-f23fa65a317d",
      "name": "单日数据",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1040,
        100
      ],
      "parameters": {
        "url": "https://treasurium.app.n8n.cloud/webhook/1dayData",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "86bba663-c22a-4b41-ab2b-c12baac09eac",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        -440
      ],
      "parameters": {
        "color": 5,
        "width": 420,
        "height": 420,
        "content": "## 特斯拉单日技术指标 AI\\n\\n• 处理 **webhook 数据** 并 **执行 TSLA 的日时间框架评估**。\\n\\n• 输出 **市场状况、趋势状态和所有指标值** 的 **JSON 摘要**。\\n\\n• 这将输入到更广泛的 **特斯拉金融市场数据分析工具** 中。"
      },
      "typeVersion": 1
    },
    {
      "id": "cdc88028-e238-40ed-9cf6-1fb644322a8c",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -400
      ],
      "parameters": {
        "color": 4,
        "width": 280,
        "height": 380,
        "content": "## 来自父工作流的触发器\\n当从 **特斯拉金融市场分析师工具** 调用执行工作流操作时,此节点激活工作流。确保正确传递输入参数 **message, sessionId**。"
      },
      "typeVersion": 1
    },
    {
      "id": "c40b515d-7888-4bb4-80df-f0b824bdf776",
      "name": "便签说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        260,
        60
      ],
      "parameters": {
        "color": 2,
        "height": 380,
        "content": "\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n## GPT 推理模型\\n利用 **OpenAI GPT-4.1** 解释 **技术指标** 并生成长期趋势分析和结构化的 **JSON 输出**。"
      },
      "typeVersion": 1
    },
    {
      "id": "07a5c3c4-a9ee-4a19-a7e7-e1fa38ddeca1",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        60
      ],
      "parameters": {
        "color": 3,
        "height": 380,
        "content": "\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n## 短期记忆模块\\n在同一会话内的请求间保持上下文。支持 **特斯拉金融市场分析师工具** 的指标评估间的一致逻辑。"
      },
      "typeVersion": 1
    },
    {
      "id": "4bc1a27f-b082-4983-94cf-2863add312fc",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        60
      ],
      "parameters": {
        "color": 6,
        "height": 480,
        "content": "\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n## 来自 Alpha Vantage 的单日指标数据\\n向安全的 **webhook** 发起 HTTP 调用,该 webhook 通过 **Alpha Vantage Premium API** 获取特斯拉单日间隔指标 **(RSI, BBANDS, SMA, EMA, ADX, MACD)**。\\n仅返回最新的 **20 个值**,并经过清理和修剪。"
      },
      "typeVersion": 1
    },
    {
      "id": "431807cd-8af2-471a-9181-179c94c1c9d6",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        -1760
      ],
      "parameters": {
        "width": 1240,
        "height": 2300,
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a225a383-1063-4b3d-843e-63162a17c154",
  "connections": {
    "1day Data": {
      "ai_tool": [
        [
          {
            "node": "Tesla 1day Indicators Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Tesla 1day Indicators Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Tesla 1day Indicators Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Tesla 1day Indicators Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 财务, 人工智能

需要付费吗?

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

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

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

作者
Don Jayamaha Jr

Don Jayamaha Jr

@don-the-gem-dealer

With 12 years of experience as a Blockchain Strategist and Web3 Architect, I specialize in bridging the gap between traditional industries and decentralized technologies. My expertise spans tokenized assets, crypto payment integrations, and blockchain-driven market solutions.

外部链接
在 n8n.io 查看

分享此工作流