{
  "name": "AI-powered technical analyst with Perplexity R1 research",
  "nodes": [
    {
      "id": "ff92638f-f419-49f0-875b-e455becaa2cf",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        760,
        140
      ]
    },
    {
      "id": "e44a7eff-26ca-4f29-8b53-1f2a15ea89a1",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1080,
        380
      ]
    },
    {
      "id": "de59fe8e-ec3c-4ff2-91a8-9ad2533260c3",
      "name": "Set 'response' value",
      "type": "n8n-nodes-base.set",
      "position": [
        3200,
        120
      ]
    },
    {
      "id": "49b10639-d643-4a38-b649-8dd6507600c6",
      "name": "Download Chart",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2700,
        120
      ]
    },
    {
      "id": "75aeadf7-0a3a-4aac-99bd-62093f090486",
      "name": "Tradingview Chart",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2520,
        120
      ]
    },
    {
      "id": "953e85a8-68fb-44d6-aaa0-8b95f40c4870",
      "name": "Extract analyst question and management response",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2880,
        120
      ]
    },
    {
      "id": "e5d0a653-d9a2-4941-a3c9-cde2d5c70031",
      "name": "Sonnet 3_7",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2860,
        300
      ]
    },
    {
      "id": "54a14a3e-553b-4903-b35b-fa417a4ab4a6",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1780,
        140
      ]
    },
    {
      "id": "7f409b02-d1bb-4066-9dae-828940ed87f0",
      "name": "Technical Analysis Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1220,
        380
      ]
    },
    {
      "id": "b2ca76f1-619e-46e8-ab4e-c50c5579dbf1",
      "name": "Lookup Exchange",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2180,
        120
      ]
    },
    {
      "id": "08620692-c2dc-4808-8997-b5aef354661b",
      "name": "Response",
      "type": "n8n-nodes-base.set",
      "position": [
        2520,
        560
      ]
    },
    {
      "id": "a35b2957-274a-42b8-a102-a2952d9a2e4f",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1960,
        140
      ]
    },
    {
      "id": "8873042a-bb9b-44c9-a2ae-90c1cfd8ee84",
      "name": "Perplexity Tool",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1360,
        380
      ]
    },
    {
      "id": "1fcb0f7d-3024-49e0-9657-98a7b7d11757",
      "name": "Perplexity Sonar",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2220,
        300
      ]
    },
    {
      "id": "9cfb5c19-f4b0-4c07-ad00-cfb6641f21da",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        1520,
        380
      ]
    },
    {
      "id": "75f01eed-9a3a-4bf7-a53d-5af8c2811c59",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2400,
        300
      ]
    },
    {
      "id": "759c7d67-31be-4cc1-a58b-910dc95602f9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        20
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4e314f00-b5ac-4dcb-ac6e-87bccf49f9f0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        480
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "657dc607-cd26-4efd-9d51-49db5d7ae029",
      "name": "Sonnet 37",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        940,
        380
      ]
    },
    {
      "id": "702c02a8-cf40-4ba7-9b03-49e9c08cc1b7",
      "name": "Technical Analyst Leader",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1080,
        140
      ]
    },
    {
      "id": "7349b3d0-f68f-4cf5-8cba-36a81ecb1944",
      "name": "Perplexity",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2220,
        560
      ]
    }
  ],
  "connections": {
    "Gmail": {
      "ai_tool": [
        [
          {
            "node": "Technical Analyst Leader",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Lookup Exchange",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Perplexity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sonnet 37": {
      "ai_languageModel": [
        [
          {
            "node": "Technical Analyst Leader",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sonnet 3_7": {
      "ai_languageModel": [
        [
          {
            "node": "Extract analyst question and management response",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Download Chart": {
      "main": [
        [
          {
            "node": "Extract analyst question and management response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lookup Exchange": {
      "main": [
        [
          {
            "node": "Tradingview Chart",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity Tool": {
      "ai_tool": [
        [
          {
            "node": "Technical Analyst Leader",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity Sonar": {
      "ai_languageModel": [
        [
          {
            "node": "Lookup Exchange",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Tradingview Chart": {
      "main": [
        [
          {
            "node": "Download Chart",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "Technical Analyst Leader",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Technical Analysis Tool": {
      "ai_tool": [
        [
          {
            "node": "Technical Analyst Leader",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Lookup Exchange",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Technical Analyst Leader",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract analyst question and management response": {
      "main": [
        [
          {
            "node": "Set 'response' value",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}