{
  "name": "Real-time stock insights using xAI",
  "nodes": [
    {
      "id": "5a3a9145-41ab-40ae-985a-4b9d8277137a",
      "name": "Daily Stock Check",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -992,
        624
      ]
    },
    {
      "id": "5b303b6e-0040-4737-89ae-ad584f0aead2",
      "name": "Analyze Stock Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        352
      ]
    },
    {
      "id": "0f0fb4d2-35be-4e34-b39d-262b7d72b4b3",
      "name": "Predict Future Trends",
      "type": "n8n-nodes-base.code",
      "position": [
        0,
        352
      ]
    },
    {
      "id": "ab270d2d-a1ce-4134-9a47-d733731ceaf2",
      "name": "Format Telegram Message",
      "type": "n8n-nodes-base.set",
      "position": [
        1264,
        624
      ]
    },
    {
      "id": "893aaf34-ff74-4c53-b268-de8b602405e7",
      "name": "Send Telegram Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1408,
        624
      ]
    },
    {
      "id": "0f61054a-ea49-4cc9-af94-0446b68c2030",
      "name": "Analyze News Sentiment",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        528
      ]
    },
    {
      "id": "ef961832-7731-44e2-a09c-9ce0656e5391",
      "name": "Process Analyst Ratings",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        720
      ]
    },
    {
      "id": "bee1068d-1e88-4f82-9bc0-750e5bd87595",
      "name": "Analyze Social Sentiment",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        912
      ]
    },
    {
      "id": "c46e491d-12c2-4101-b791-2ae63c443c35",
      "name": "Combine All Analysis",
      "type": "n8n-nodes-base.merge",
      "position": [
        48,
        592
      ]
    },
    {
      "id": "ad7089ea-4441-4ca1-a6b0-05198b3fd002",
      "name": "Generate Comprehensive Recommendation",
      "type": "n8n-nodes-base.code",
      "position": [
        208,
        624
      ]
    },
    {
      "id": "0b01e016-e9d3-4bd6-b71e-5baf59bdc37a",
      "name": "OpenAI GPT Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        752,
        1216
      ]
    },
    {
      "id": "f9457956-1183-4171-aa9b-18f7be670ff0",
      "name": "Anthropic Claude Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        592,
        1216
      ]
    },
    {
      "id": "dead5da8-af41-4507-b359-620842284b56",
      "name": "Prepare AI Validation Input",
      "type": "n8n-nodes-base.set",
      "position": [
        384,
        832
      ]
    },
    {
      "id": "993867f2-e9cf-4d25-91f1-4c99018f82d0",
      "name": "Combine AI Validations",
      "type": "n8n-nodes-base.merge",
      "position": [
        944,
        816
      ]
    },
    {
      "id": "ba0f623d-130b-4064-b27f-da2fe6353fa7",
      "name": "Evaluate AI Consensus",
      "type": "n8n-nodes-base.code",
      "position": [
        1104,
        832
      ]
    },
    {
      "id": "374ee768-8818-40b5-9443-ccdaeaef02fd",
      "name": "AI Validator 1 - OpenAI",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        592,
        688
      ]
    },
    {
      "id": "5bef2edd-40cc-4447-8e84-f56cf31abd0b",
      "name": "AI Validator 2 - Anthropic",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        592,
        832
      ]
    },
    {
      "id": "9b81ab2c-fef2-45c4-bd6d-e6fccce2213e",
      "name": "AI Validator 3 - Gemini",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        512,
        992
      ]
    },
    {
      "id": "f00cc0d4-cf33-4319-bc42-723f023b11c1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        96
      ],
      "parameters": {
        "width": 704,
        "height": 944,
        "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": "56afcf23-5612-458d-8280-66613a259209",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        128
      ],
      "parameters": {
        "width": 512,
        "height": 688,
        "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": "b0b48b64-9434-4065-85f1-90e525ab3d9f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        -32
      ],
      "parameters": {
        "width": 736,
        "height": 1104,
        "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"
      }
    },
    {
      "id": "b5b285a6-18e8-4f66-ab3b-76bccf9e6e91",
      "name": "API Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -768,
        624
      ]
    },
    {
      "id": "f441cb0e-3a3c-48a0-adc6-833a583d2c3f",
      "name": "Stock Data Fatch",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -352,
        352
      ]
    },
    {
      "id": "b0ed17f4-2149-4966-bdbe-4c93c591ae73",
      "name": "News Sentiment Fatch",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -368,
        528
      ]
    },
    {
      "id": "c1fba3ff-d606-4305-a70c-6cb0b772dce7",
      "name": "Analyst Ratings Fetch",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -368,
        720
      ]
    },
    {
      "id": "961fd0af-7f2a-4604-a863-da7c04e4ea20",
      "name": "Social Media Sentiment Fetch",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -368,
        912
      ]
    },
    {
      "id": "9e2ed2db-b644-4446-b926-04e240b46611",
      "name": "xAI Grok Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
      "position": [
        432,
        1216
      ]
    }
  ],
  "connections": {
    "OpenAI GPT Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Validator 1 - OpenAI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Stock Data Fatch": {
      "main": [
        [
          {
            "node": "Analyze Stock Trends",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API Configuration": {
      "main": [
        [
          {
            "node": "Stock Data Fatch",
            "type": "main",
            "index": 0
          },
          {
            "node": "News Sentiment Fatch",
            "type": "main",
            "index": 0
          },
          {
            "node": "Analyst Ratings Fetch",
            "type": "main",
            "index": 0
          },
          {
            "node": "Social Media Sentiment Fetch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Stock Check": {
      "main": [
        [
          {
            "node": "API Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "xAI Grok Chat 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
          }
        ]
      ]
    },
    "News Sentiment Fatch": {
      "main": [
        [
          {
            "node": "Analyze News Sentiment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyst Ratings Fetch": {
      "main": [
        [
          {
            "node": "Process Analyst Ratings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Evaluate AI Consensus": {
      "main": [
        [
          {
            "node": "Format Telegram Message",
            "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
          }
        ]
      ]
    },
    "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
          }
        ]
      ]
    },
    "Social Media Sentiment Fetch": {
      "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
          }
        ]
      ]
    }
  }
}