{
  "name": "Tesla 1hour & 1day klines tool (Candlestick & volume AI pattern detector)",
  "nodes": [
    {
      "id": "65efda46-19c2-4d14-9893-84645c894978",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -160,
        320
      ]
    },
    {
      "id": "7204ef90-e523-444d-b13d-5bf73ca11a45",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        120,
        680
      ]
    },
    {
      "id": "1696dad4-cbfc-4eb1-9764-8bf5ec423fbe",
      "name": "Tesla 1hour and 1day Klines Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        240,
        320
      ]
    },
    {
      "id": "26d3cdab-95b0-41bc-8d64-6e0d42fb36a5",
      "name": "Candlestick Data Hour",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        440,
        660
      ]
    },
    {
      "id": "751d452a-1a42-466a-9068-7f378f61994a",
      "name": "Candlestick Data Day",
      "type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
      "position": [
        740,
        680
      ]
    },
    {
      "id": "395840a9-294e-40dc-ad19-06baa23b9c8c",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -180,
        680
      ]
    },
    {
      "id": "f2bcdbe8-3388-40f2-bf0f-d251c06e87ab",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        120
      ],
      "parameters": {
        "width": 280,
        "height": 380,
        "content": "## Trigger from Parent Workflow \nThis node activates the workflow when called to execute Workflow action from the **Tesla Financial Market Analyst Tool**. Ensure proper inputs **message, sessionId** a"
      }
    },
    {
      "id": "16408ce0-3f62-4223-bb8d-9e768f49b009",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        620
      ],
      "parameters": {
        "width": null,
        "height": 420,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Short-Term Memory Module\nMaintains **conversation context** and **prior state across requests**. This is useful for **multi-turn logic** or keeping track of **pattern analysis** acros"
      }
    },
    {
      "id": "b48c9a20-ba57-417f-a2d4-3e21d25c5e33",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        100
      ],
      "parameters": {
        "width": 400,
        "height": 400,
        "content": "## Tesla Klines Pattern & Volume AI \nThis AI agent processes candlestick data (1h and 1d) to detect:\n**• Reversal Patterns (e.g. Doji, Engulfing)**\n**• Volume Divergence (e.g. rising price with fallin"
      }
    },
    {
      "id": "0169c8c2-1eb1-440d-b165-c4cc90b4f92c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        620
      ],
      "parameters": {
        "width": null,
        "height": 420,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## 1-Hour OHLCV Data from Alpha Vantage \nFetches **TSLA hourly candles** using **Alpha Vantage API**. Output is processed by the AI agent to detect **short-term patterns** and **volume "
      }
    },
    {
      "id": "ae9e8586-3aa0-4b36-ad06-8b0d9a35d188",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        620
      ],
      "parameters": {
        "width": null,
        "height": 440,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## 1-Day OHLCV Data from Alpha Vantage \nPulls **TSLA daily candlestick data** **for macro-pattern recognition**. This feeds into **long-term reversal** and **divergence detection logic"
      }
    },
    {
      "id": "2655d097-987a-4f49-8aa2-8cc95fca6ce8",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        620
      ],
      "parameters": {
        "width": null,
        "height": 400,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n## GPT Model for Reasoning \nUses **OpenAI GPT (e.g. GPT-4.1)** to interpret **candlestick and volume data**, generate insights, and return **JSON-formatted pattern analysis**."
      }
    },
    {
      "id": "66ce45b7-932a-4acc-b46d-9de679440aa3",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -600
      ],
      "parameters": {
        "width": 1060,
        "height": 1660,
        "content": "## 📘 Tesla 1hour and 1day Klines Tool\n\n### 🔧 Purpose:\n\nThis agent extracts and analyzes TSLA candlestick and volume data across **1-hour** and **1-day** intervals. It detects **reversal patterns** (li"
      }
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Tesla 1hour and 1day Klines Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Tesla 1hour and 1day Klines Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Candlestick Data Day": {
      "ai_tool": [
        [
          {
            "node": "Tesla 1hour and 1day Klines Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Candlestick Data Hour": {
      "ai_tool": [
        [
          {
            "node": "Tesla 1hour and 1day Klines Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Tesla 1hour and 1day Klines Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}