{
  "name": "Stock market analysis & prediction with GPT, Claude & Gemini via Telegram",
  "nodes": [
    {
      "id": "8903e79f-298b-4d15-acc9-02de2feb1a95",
      "name": "Daily Stock Check",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -80,
        1856
      ]
    },
    {
      "id": "13c28339-b13f-45c6-8a1e-f633d0ef68e0",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        144,
        1856
      ]
    },
    {
      "id": "e7bccfde-3a4a-4ba5-9104-94d19c2e5320",
      "name": "Fetch Stock Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        368,
        1568
      ]
    },
    {
      "id": "8896c43f-7371-4b72-88ef-1b99f563613a",
      "name": "Analyze Stock Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        592,
        1568
      ]
    },
    {
      "id": "4ac412d9-9dbf-4c87-94fb-2c8451c2573d",
      "name": "Predict Future Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        784,
        1568
      ]
    },
    {
      "id": "60aecbcb-413d-47b2-a671-17e899472358",
      "name": "Format Telegram Message",
      "type": "n8n-nodes-base.set",
      "position": [
        2144,
        1952
      ]
    },
    {
      "id": "98784bcf-642b-4e1e-a5ce-ca877c3349f9",
      "name": "Send Telegram Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2288,
        1952
      ]
    },
    {
      "id": "1e5d7666-4adf-4d4e-854e-ef7fece3a992",
      "name": "Fetch News Sentiment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        592,
        1760
      ]
    },
    {
      "id": "47ca8a69-ed9c-45ca-b6dd-6b6e29cf454b",
      "name": "Fetch Analyst Ratings",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        592,
        1952
      ]
    },
    {
      "id": "da7ca743-9d22-41d3-bfc1-f8dc7b11c007",
      "name": "Fetch Social Media Sentiment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        592,
        2144
      ]
    },
    {
      "id": "5440ea8a-db51-4043-8a32-ecefb8dab7a9",
      "name": "Analyze News Sentiment",
      "type": "n8n-nodes-base.code",
      "position": [
        784,
        1760
      ]
    },
    {
      "id": "fb7ca56f-e871-40f0-9f71-c922b5cc4e58",
      "name": "Process Analyst Ratings",
      "type": "n8n-nodes-base.code",
      "position": [
        784,
        1952
      ]
    },
    {
      "id": "a1f72554-bce6-41c5-9be0-dff66556408a",
      "name": "Analyze Social Sentiment",
      "type": "n8n-nodes-base.code",
      "position": [
        784,
        2144
      ]
    },
    {
      "id": "f54dbc62-33a5-456b-91b7-45deb984dd3a",
      "name": "Combine All Analysis",
      "type": "n8n-nodes-base.merge",
      "position": [
        1008,
        1920
      ]
    },
    {
      "id": "932b25bc-10a0-4ba4-aeb5-cdbacf5f9083",
      "name": "Generate Comprehensive Recommendation",
      "type": "n8n-nodes-base.code",
      "position": [
        1168,
        1952
      ]
    },
    {
      "id": "389eb59d-13ea-4f66-9954-28fdb67b9246",
      "name": "OpenAI GPT Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1504,
        1904
      ]
    },
    {
      "id": "7d3a413b-47ac-443b-a757-d1c1f44d14de",
      "name": "Anthropic Claude Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1504,
        2208
      ]
    },
    {
      "id": "3caed030-96e0-4b35-829a-26cba1928afa",
      "name": "Google Gemini Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1504,
        2496
      ]
    },
    {
      "id": "e3f0ebe1-16ae-44fc-9c34-10f02bc47a33",
      "name": "Prepare AI Validation Input",
      "type": "n8n-nodes-base.set",
      "position": [
        1280,
        2176
      ]
    },
    {
      "id": "b26dc669-d3c0-46ec-bfe4-b2db80e180a6",
      "name": "Combine AI Validations",
      "type": "n8n-nodes-base.merge",
      "position": [
        1856,
        2144
      ]
    },
    {
      "id": "7a561800-8882-4e31-ab58-3182df74d848",
      "name": "Evaluate AI Consensus",
      "type": "n8n-nodes-base.code",
      "position": [
        2000,
        2160
      ]
    },
    {
      "id": "08820e76-f26e-4f49-bdbd-f2f2819a1d23",
      "name": "AI Validator 1 - OpenAI",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1504,
        1760
      ]
    },
    {
      "id": "91017f88-a99b-4ee0-84f6-764ee1364ef4",
      "name": "AI Validator 2 - Anthropic",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1504,
        2064
      ]
    },
    {
      "id": "20b64ea6-01f3-4d82-9737-d5a07812a441",
      "name": "AI Validator 3 - Gemini",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1504,
        2352
      ]
    },
    {
      "id": "7a4f2e7d-4ea1-48ad-b385-0b4193378452",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        1328
      ],
      "parameters": {
        "width": 480,
        "height": 592,
        "content": "## Prerequisites\n- Stock data API (Alpha Vantage, Yahoo Finance)\n- News API key\n- Social media API\n- OpenAI API key\n- Anthropic API key\n- Google Gemini API key\n- Telegram bot token\n\n## Use Cases\n**Day"
      }
    },
    {
      "id": "24d2e6dd-0548-4e3f-a24a-f76bc1057cf3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        1344
      ],
      "parameters": {
        "width": 464,
        "height": 448,
        "content": "## Introduction\nAutomates stock market analysis using multiple AI models to predict trends, analyze sentiment, and generate consensus-based investment insights. For traders and analysts seeking data-d"
      }
    },
    {
      "id": "0e6c3415-ade4-49e0-a909-57d917173496",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        1328
      ],
      "parameters": {
        "width": 512,
        "height": 528,
        "content": "## Workflow Steps\n1. **Data Collection:** Scheduled trigger fetches prices, news, analyst ratings, and social trends\n2. **AI Analysis:** Separate models analyze stocks, news sentiment, ratings, and so"
      }
    }
  ],
  "connections": {
    "Fetch Stock Data": {
      "main": [
        [
          {
            "node": "Analyze Stock Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI GPT Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Validator 1 - OpenAI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Daily Stock Check": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Validator 3 - Gemini",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Stock Trends": {
      "main": [
        [
          {
            "node": "Predict Future Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine All Analysis": {
      "main": [
        [
          {
            "node": "Generate Comprehensive Recommendation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch News Sentiment": {
      "main": [
        [
          {
            "node": "Analyze News Sentiment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Evaluate AI Consensus": {
      "main": [
        [
          {
            "node": "Format Telegram Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Analyst Ratings": {
      "main": [
        [
          {
            "node": "Process Analyst Ratings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Predict Future Trends": {
      "main": [
        [
          {
            "node": "Combine All Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze News Sentiment": {
      "main": [
        [
          {
            "node": "Combine All Analysis",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Anthropic Claude Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Validator 2 - Anthropic",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Combine AI Validations": {
      "main": [
        [
          {
            "node": "Evaluate AI Consensus",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Fetch Stock Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch News Sentiment",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Analyst Ratings",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Social Media Sentiment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Validator 1 - OpenAI": {
      "main": [
        [
          {
            "node": "Combine AI Validations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Validator 3 - Gemini": {
      "main": [
        [
          {
            "node": "Combine AI Validations",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Format Telegram Message": {
      "main": [
        [
          {
            "node": "Send Telegram Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Analyst Ratings": {
      "main": [
        [
          {
            "node": "Combine All Analysis",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Analyze Social Sentiment": {
      "main": [
        [
          {
            "node": "Combine All Analysis",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "AI Validator 2 - Anthropic": {
      "main": [
        [
          {
            "node": "Combine AI Validations",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Prepare AI Validation Input": {
      "main": [
        [
          {
            "node": "AI Validator 1 - OpenAI",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Validator 2 - Anthropic",
            "type": "main",
            "index": 0
          },
          {
            "node": "AI Validator 3 - Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Social Media Sentiment": {
      "main": [
        [
          {
            "node": "Analyze Social Sentiment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Comprehensive Recommendation": {
      "main": [
        [
          {
            "node": "Format Telegram Message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Prepare AI Validation Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}