{
  "name": "Generate institutional-style stock price targets and BUY/HOLD/SELL alerts with ChatGPT and Gemini",
  "nodes": [
    {
      "id": "a3d2e9f0-323a-48cc-9d8f-7b03dc294628",
      "name": "loop_over_tickers",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -576,
        1296
      ]
    },
    {
      "id": "a42ffbce-a597-4c14-a529-8a9843b8cf06",
      "name": "Read_tickers_from_Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -800,
        1296
      ]
    },
    {
      "id": "eb1cd019-3eda-419b-9777-ab8b40a2588c",
      "name": "write_sentiment_to_sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        7744,
        1392
      ]
    },
    {
      "id": "ac80fd3d-5d01-41b8-8897-7a32cbbeaf24",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1024,
        1296
      ]
    },
    {
      "id": "8d041788-4107-48be-9c1f-1107b4e549e4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -656,
        192
      ],
      "parameters": {
        "width": 480,
        "height": 440,
        "content": "# Workflow Overview \n**This workflow automates the process of analyzing the sentiment of stock market news.**\n\n- retrieves a list of stock tickers from a Google Sheet \n- fetchs recent news articles fo"
      }
    },
    {
      "id": "35eff45b-2fe7-477e-9bb5-592a12db4d5d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        704
      ],
      "parameters": {
        "width": 1152,
        "height": 992,
        "content": "# 1. Daily Trigger and Stock Ticker Retrieval\n- **Schedule Trigger:** This workflow is set to run automatically every three day at 4:00 PM (Asia/Jerusalem time). This ensures that the script runs just"
      }
    },
    {
      "id": "4ebc103a-c5b8-4825-b2de-2629d007c762",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -48
      ],
      "parameters": {
        "width": 2760,
        "height": 1420,
        "content": "# 2. Financial and News Data Retrieval & Validation\n2.1 Financial Data Fetching (Alpha Vantage APIs)\nFetch Financial Data (Alpha Vantage):\nFor each ticker, the workflow sends multiple HTTP requests to"
      }
    },
    {
      "id": "5c6bf418-f4d5-49c8-911a-6c93d3e0f636",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2928,
        576
      ],
      "parameters": {
        "width": 2004,
        "height": 1536,
        "content": "# 3. Sentiment Analysis with AI\n\n- **AI Agent & Google Gemini Chat Model/ChatGPT:** This is the core of the sentiment analysis. The \"AI Agent\" node is configured with a detailed prompt that instructs "
      }
    },
    {
      "id": "ff55f562-a968-41c4-be97-f8493a9b8612",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4944,
        576
      ],
      "parameters": {
        "width": 544,
        "height": 1532,
        "content": "# 4. Output Formatting and Error Handling\n\n- **format_output_as_json:** The output from the AI models is a raw string that includes a JSON object. This code node extracts the clean JSON from the strin"
      }
    },
    {
      "id": "a0e69d33-1308-40ed-92be-ba9100f08133",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        7600,
        576
      ],
      "parameters": {
        "width": 520,
        "height": 1528,
        "content": "# 5. Storing the Results\n\n\n- **write_sentiment_to_sheets:** Once a valid sentiment analysis result is obtained and formatted, this node appends the data to \"Sheet1\" of the \"Stock Sentiment\" Google She"
      }
    },
    {
      "id": "5de75ec0-9b5d-499a-9599-1ea79e3821be",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        4064,
        1344
      ]
    },
    {
      "id": "9ab1cf9e-5ea9-4d72-b59a-0cd37c20962f",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        3440,
        1120
      ]
    },
    {
      "id": "00b14e09-f606-48a3-a026-ca8953c96fbe",
      "name": "XML",
      "type": "n8n-nodes-base.xml",
      "position": [
        1360,
        1632
      ]
    },
    {
      "id": "bd8b7af5-003c-40cc-b895-77d78ccf476f",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        2720,
        1152
      ]
    },
    {
      "id": "f4fcca1b-bc7a-4d58-8bfc-1da7e3648e5e",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        5008,
        1328
      ]
    },
    {
      "id": "9760091c-547a-4501-bd4f-1d43a1a91250",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        912,
        1776
      ]
    },
    {
      "id": "7ae74b4b-33c2-4cf6-999e-c3c49f96f5a6",
      "name": "Edit Fields2",
      "type": "n8n-nodes-base.set",
      "position": [
        1552,
        1632
      ]
    },
    {
      "id": "f7a5b448-14cc-4204-8541-24ded9f9a1b9",
      "name": "Merge2",
      "type": "n8n-nodes-base.merge",
      "position": [
        1552,
        432
      ]
    },
    {
      "id": "70216662-4f36-432f-a5c9-2e479495227f",
      "name": "Is Cache Valid?",
      "type": "n8n-nodes-base.if",
      "position": [
        384,
        768
      ]
    },
    {
      "id": "a1929b6f-2930-4d9f-a040-310c94e9a123",
      "name": "Cache Lookup",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -320,
        1184
      ]
    },
    {
      "id": "705966f9-7e33-45d1-9cf0-35ddad297aa2",
      "name": "alphavantage - Balance Sheet",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        976,
        416
      ]
    },
    {
      "id": "8682d4b9-a044-4565-a0c5-4c114c8303a9",
      "name": "alphavantage - Profile",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        976,
        576
      ]
    },
    {
      "id": "6f43cf2e-7258-4f4e-b907-101d0a07eda4",
      "name": "alphavantage - Income Statement",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        976,
        736
      ]
    },
    {
      "id": "819fcbdc-7ba3-498e-903b-3aac8257aed6",
      "name": "Merge3",
      "type": "n8n-nodes-base.merge",
      "position": [
        1392,
        704
      ]
    },
    {
      "id": "3abc3ce3-087b-439c-8bed-b0645971d84e",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1792,
        1216
      ]
    },
    {
      "id": "f35dc3c3-73ea-4e14-bd74-48f21425bf3a",
      "name": "If2",
      "type": "n8n-nodes-base.if",
      "position": [
        2080,
        448
      ]
    },
    {
      "id": "069ebe17-84c4-485e-b767-ee898685af07",
      "name": "Update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2288,
        432
      ]
    },
    {
      "id": "308167a0-30f0-4216-894c-1e6abfeb4a22",
      "name": "Insert Row",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2304,
        896
      ]
    },
    {
      "id": "31efd328-56ed-42fb-995f-0af16f09f28e",
      "name": "alphavantage - CashFlow",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        976,
        912
      ]
    },
    {
      "id": "95fe5434-3334-41f3-8f71-0115b01774ac",
      "name": "Merge4",
      "type": "n8n-nodes-base.merge",
      "position": [
        1728,
        800
      ]
    },
    {
      "id": "724d38b0-4b1a-4df7-900f-905217fa24b9",
      "name": "Check the cache",
      "type": "n8n-nodes-base.code",
      "position": [
        208,
        768
      ]
    },
    {
      "id": "7bc7610f-155f-4a3f-8087-ac00d61116c8",
      "name": "Seekingalpha Articles",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        496,
        1760
      ]
    },
    {
      "id": "d2a2d325-97a4-40c4-8f73-a310cab253cd",
      "name": "Clean balance sheet",
      "type": "n8n-nodes-base.code",
      "position": [
        1184,
        416
      ]
    },
    {
      "id": "e30294e8-4a3c-4a63-a468-54b623fea606",
      "name": "Clean Profile",
      "type": "n8n-nodes-base.code",
      "position": [
        1184,
        576
      ]
    },
    {
      "id": "52731b5a-c076-497a-9e36-2a2f5aed8595",
      "name": "Clean Income statement",
      "type": "n8n-nodes-base.code",
      "position": [
        1184,
        736
      ]
    },
    {
      "id": "0d1e825c-fa1f-49fc-b119-e809b8dec76e",
      "name": "Clean Ccashflow",
      "type": "n8n-nodes-base.code",
      "position": [
        1168,
        896
      ]
    },
    {
      "id": "14e3bdd5-d3e8-43cb-afee-044b6ae9a43b",
      "name": "Clean Read Financial",
      "type": "n8n-nodes-base.code",
      "position": [
        1888,
        800
      ]
    },
    {
      "id": "ab0c83f7-372f-486f-9d55-6dc9efb4aeeb",
      "name": "Clean Old Financial",
      "type": "n8n-nodes-base.code",
      "position": [
        2256,
        1216
      ]
    },
    {
      "id": "9fe24b32-26ac-43f8-9a90-4acd0668fb2a",
      "name": "Merge New Financial",
      "type": "n8n-nodes-base.code",
      "position": [
        2576,
        864
      ]
    },
    {
      "id": "f9ba099d-aba3-4ff4-81e0-00da596157bc",
      "name": "alphavantage - Current Price",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        976,
        1056
      ]
    },
    {
      "id": "cca34beb-fd09-4e4d-b741-d59c739bf215",
      "name": "Clean Current Price",
      "type": "n8n-nodes-base.code",
      "position": [
        1168,
        1040
      ]
    },
    {
      "id": "f828aa53-5314-4e78-bf0b-064e81d27d5b",
      "name": "Merge5",
      "type": "n8n-nodes-base.merge",
      "position": [
        1520,
        928
      ]
    },
    {
      "id": "4a42def3-aad5-4e9b-b317-6aa5665c2360",
      "name": "Clean the news",
      "type": "n8n-nodes-base.code",
      "position": [
        688,
        1760
      ]
    },
    {
      "id": "140b736e-ee4f-4f28-a720-6081177547b6",
      "name": "return the news",
      "type": "n8n-nodes-base.code",
      "position": [
        1344,
        1856
      ]
    },
    {
      "id": "15b3be64-066e-4118-b9a6-a138109287f2",
      "name": "Final version of news",
      "type": "n8n-nodes-base.code",
      "position": [
        1792,
        1744
      ]
    },
    {
      "id": "114089bf-0ee2-4b90-81d4-4f3312dde47b",
      "name": "Clean Up ChatGPT",
      "type": "n8n-nodes-base.code",
      "position": [
        3248,
        944
      ]
    },
    {
      "id": "44ad2133-7030-4be8-8be5-abedd0bcaa53",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        1392
      ],
      "parameters": {
        "width": 2760,
        "height": 716,
        "content": "# 2. SeekingAlpha News Data Retrieval & Validation\nGet Articles from Seeking Alpha:\nFor each ticker, the workflow sends an HTTP request to retrieve recent Seeking Alpha articles within a defined time "
      }
    },
    {
      "id": "b12ed2e1-7cf3-44a1-8581-8f3df09db54e",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        7936,
        1792
      ]
    },
    {
      "id": "515a0107-9bec-4b4f-a268-6235ccef31bb",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        784,
        416
      ]
    },
    {
      "id": "46a312ad-baa3-4690-90f3-87306944c36d",
      "name": "Wait2",
      "type": "n8n-nodes-base.wait",
      "position": [
        784,
        576
      ]
    },
    {
      "id": "0093afdc-5c76-4168-8619-66361a4f88f5",
      "name": "Wait3",
      "type": "n8n-nodes-base.wait",
      "position": [
        768,
        736
      ]
    },
    {
      "id": "e20a243d-c6c9-4ff4-a109-0e7c19432251",
      "name": "Wait4",
      "type": "n8n-nodes-base.wait",
      "position": [
        768,
        880
      ]
    },
    {
      "id": "627df88e-50b9-47b5-aa95-7066673faa2a",
      "name": "Wait5",
      "type": "n8n-nodes-base.wait",
      "position": [
        768,
        1056
      ]
    },
    {
      "id": "ccad2786-3a86-4016-b867-27b9f900d45f",
      "name": "Clean Current Price1",
      "type": "n8n-nodes-base.code",
      "position": [
        1168,
        1232
      ]
    },
    {
      "id": "2facabce-7fb9-4134-b876-8b2b3c37b901",
      "name": "alphavantage - Current Price Second",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        976,
        1232
      ]
    },
    {
      "id": "c7338001-85df-4e14-be0d-68224de337e1",
      "name": "Update row in sheet1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1488,
        1216
      ]
    },
    {
      "id": "2ff82136-78e2-41d6-af28-0491362c752d",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -240,
        1008
      ]
    },
    {
      "id": "a0145d78-0606-4872-8900-f6b092a3cafb",
      "name": "Merge6",
      "type": "n8n-nodes-base.merge",
      "position": [
        4448,
        976
      ]
    },
    {
      "id": "82d16d36-aa00-4f72-9b86-067b921e47e5",
      "name": "Clean up Gemini",
      "type": "n8n-nodes-base.code",
      "position": [
        3248,
        1296
      ]
    },
    {
      "id": "168a3bf9-d458-46ac-9659-3c686e784f9e",
      "name": "Code in JavaScript3",
      "type": "n8n-nodes-base.code",
      "position": [
        4608,
        976
      ]
    },
    {
      "id": "8c8bd5fb-b1df-4268-851d-2ad14ed48d9b",
      "name": "Merge7",
      "type": "n8n-nodes-base.merge",
      "position": [
        4768,
        1200
      ]
    },
    {
      "id": "945ec9a1-e480-4bd7-8d5a-c06882413f99",
      "name": "Tide Breaker - Bull",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        3968,
        896
      ]
    },
    {
      "id": "c8d1a050-dc12-4ef3-89c9-cd5ba907ae44",
      "name": "Tide Breaker - Bear",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        3968,
        1088
      ]
    },
    {
      "id": "d0cd397d-0cc1-4e11-9ece-367d4379bdc7",
      "name": "Needs Tiebreaker?",
      "type": "n8n-nodes-base.if",
      "position": [
        3760,
        1120
      ]
    },
    {
      "id": "694834f4-2c5b-4886-8ee5-f5ac0a668f89",
      "name": "Clean Up Results from First Round",
      "type": "n8n-nodes-base.code",
      "position": [
        3600,
        1120
      ]
    },
    {
      "id": "fcc757ab-ba75-4c36-b16d-32e7375b8b3a",
      "name": "Clean up Chatgpt 2",
      "type": "n8n-nodes-base.code",
      "position": [
        4240,
        896
      ]
    },
    {
      "id": "b2e8fb36-c569-4444-8a54-7a2032b469d3",
      "name": "Clean up Gemini 2",
      "type": "n8n-nodes-base.code",
      "position": [
        4240,
        1088
      ]
    },
    {
      "id": "f0402aa7-d6ed-44b8-9bde-0f8013211f01",
      "name": "First round Gemini",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        2960,
        1296
      ]
    },
    {
      "id": "69dc0fe8-d09f-446f-8841-894260e3728d",
      "name": "First round ChatGPT",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2976,
        944
      ]
    },
    {
      "id": "b703c339-afaf-4677-8da3-4aaf7aae27a3",
      "name": "Alert Filter",
      "type": "n8n-nodes-base.code",
      "position": [
        5552,
        1040
      ]
    },
    {
      "id": "79143262-612a-4140-b63d-28b09544d146",
      "name": "If Alert?",
      "type": "n8n-nodes-base.if",
      "position": [
        5744,
        1040
      ]
    },
    {
      "id": "ca61fc9d-6d97-4ba2-9d23-d7359fc09d4a",
      "name": "Telegram Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        6976,
        800
      ]
    },
    {
      "id": "fdcddd4e-b9d8-4ad5-ae72-a1245ee4763b",
      "name": "Get 50MA",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5904,
        928
      ]
    },
    {
      "id": "edd624c4-7a8b-4197-b9b9-0d99856e23b2",
      "name": "MA Check",
      "type": "n8n-nodes-base.code",
      "position": [
        6224,
        928
      ]
    },
    {
      "id": "70b0daec-3b54-4a90-86c1-93e7835c5446",
      "name": "Above 50MA?",
      "type": "n8n-nodes-base.if",
      "position": [
        6800,
        928
      ]
    },
    {
      "id": "48e52eb5-96cb-4ad9-9aa0-4f463a36c22c",
      "name": "Watchlist Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        6992,
        1072
      ]
    },
    {
      "id": "8fe22d1d-f1be-4abc-acfd-23599a2c6e81",
      "name": "Build Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        -416,
        1008
      ]
    },
    {
      "id": "e7080103-92bf-422a-909f-44b01f4a9aa3",
      "name": "Get Previous Verdict",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        5152,
        1040
      ]
    },
    {
      "id": "e8f834df-8cfd-4da8-b43f-b67f0d4a4bbb",
      "name": "Thesis Reversal Enricher",
      "type": "n8n-nodes-base.code",
      "position": [
        5360,
        1040
      ]
    },
    {
      "id": "cd0970b0-7f4f-4b70-af29-ee1ccd7e1b43",
      "name": "Is Thesis Reversal?",
      "type": "n8n-nodes-base.if",
      "position": [
        7168,
        752
      ]
    },
    {
      "id": "e2fc109b-7a1e-48a2-80ae-ac72e4b93a5c",
      "name": "Thesis Reversal Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        7408,
        736
      ]
    },
    {
      "id": "7cc62935-8322-41cc-ae59-2acdea5aa3f8",
      "name": "Get 200MA",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6064,
        928
      ]
    },
    {
      "id": "ca885a5a-1cff-48de-8b9f-077d0acb9812",
      "name": "Get RSI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6352,
        928
      ]
    },
    {
      "id": "407c2f10-f8fb-471c-9041-c92f752ac386",
      "name": "Get Earnings",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6496,
        928
      ]
    },
    {
      "id": "71610cc0-1f5c-4d9d-b190-d24d6081aa46",
      "name": "Entry Signal Enricher",
      "type": "n8n-nodes-base.code",
      "position": [
        6640,
        928
      ]
    },
    {
      "id": "dece9466-9493-46bb-bc8e-fdb4378eb1bc",
      "name": "Sticky Note — Accuracy Tracker",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        1712
      ],
      "parameters": {
        "width": 600,
        "height": 400,
        "content": "## IDEA 7: Prediction Accuracy Tracker\n\n**Create a separate scheduled workflow (monthly) that:**\n\n1. Read the Sentiments sheet for all predictions older than 30 days\n2. For each stock+date+model row:\n"
      }
    },
    {
      "id": "b8252532-a54e-439b-9e09-cce81d30a2c2",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5520,
        576
      ],
      "parameters": {
        "width": 2064,
        "height": 1564,
        "content": "# 4.Strong Buy Alerts\n"
      }
    },
    {
      "id": "ab3ec24d-13db-427c-ad28-9c2d33f62d35",
      "name": "Wait6",
      "type": "n8n-nodes-base.wait",
      "position": [
        768,
        1232
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Get Previous Verdict",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "loop_over_tickers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "XML",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "return the news",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Insert Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "XML": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "loop_over_tickers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Clean Up Results from First Round",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "alphavantage - Balance Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "alphavantage - Profile",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait3": {
      "main": [
        [
          {
            "node": "alphavantage - Income Statement",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait4": {
      "main": [
        [
          {
            "node": "alphavantage - CashFlow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait5": {
      "main": [
        [
          {
            "node": "alphavantage - Current Price",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait6": {
      "main": [
        [
          {
            "node": "alphavantage - Current Price Second",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "First round ChatGPT",
            "type": "main",
            "index": 0
          },
          {
            "node": "First round Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge3": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge4": {
      "main": [
        [
          {
            "node": "Clean Read Financial",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge5": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge6": {
      "main": [
        [
          {
            "node": "Code in JavaScript3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge7": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get RSI": {
      "main": [
        [
          {
            "node": "Get Earnings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get 50MA": {
      "main": [
        [
          {
            "node": "Get 200MA",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MA Check": {
      "main": [
        [
          {
            "node": "Get RSI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get 200MA": {
      "main": [
        [
          {
            "node": "MA Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Alert?": {
      "main": [
        [
          {
            "node": "Get 50MA",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "write_sentiment_to_sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert Row": {
      "main": [
        [
          {
            "node": "Merge New Financial",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Above 50MA?": {
      "main": [
        [
          {
            "node": "Telegram Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Watchlist Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert Filter": {
      "main": [
        [
          {
            "node": "If Alert?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cache Lookup": {
      "main": [
        [
          {
            "node": "Check the cache",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "Final version of news",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Earnings": {
      "main": [
        [
          {
            "node": "Entry Signal Enricher",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Summary": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Profile": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean the news": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Alert": {
      "main": [
        [
          {
            "node": "Is Thesis Reversal?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check the cache": {
      "main": [
        [
          {
            "node": "Is Cache Valid?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Ccashflow": {
      "main": [
        [
          {
            "node": "Merge5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean up Gemini": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Is Cache Valid?": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait5",
            "type": "main",
            "index": 0
          },
          {
            "node": "Wait6",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "return the news": {
      "main": [
        [
          {
            "node": "Final version of news",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Up ChatGPT": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Read_tickers_from_Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean up Gemini 2": {
      "main": [
        [
          {
            "node": "Merge6",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Needs Tiebreaker?": {
      "main": [
        [
          {
            "node": "Tide Breaker - Bull",
            "type": "main",
            "index": 0
          },
          {
            "node": "Tide Breaker - Bear",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "loop_over_tickers": {
      "main": [
        [
          {
            "node": "Build Summary",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Cache Lookup",
            "type": "main",
            "index": 0
          },
          {
            "node": "Seekingalpha Articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean up Chatgpt 2": {
      "main": [
        [
          {
            "node": "Merge6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Merge7",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "First round Gemini": {
      "main": [
        [
          {
            "node": "Clean up Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Watchlist Telegram": {
      "main": [
        [
          {
            "node": "write_sentiment_to_sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Current Price": {
      "main": [
        [
          {
            "node": "Merge5",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Clean Old Financial": {
      "main": [
        [
          {
            "node": "Merge New Financial",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean balance sheet": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript3": {
      "main": [
        [
          {
            "node": "Merge7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "First round ChatGPT": {
      "main": [
        [
          {
            "node": "Clean Up ChatGPT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Clean Old Financial",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Thesis Reversal?": {
      "main": [
        [
          {
            "node": "Thesis Reversal Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "write_sentiment_to_sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge New Financial": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tide Breaker - Bear": {
      "main": [
        [
          {
            "node": "Clean up Gemini 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tide Breaker - Bull": {
      "main": [
        [
          {
            "node": "Clean up Chatgpt 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet": {
      "main": [
        [
          {
            "node": "Merge New Financial",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Current Price1": {
      "main": [
        [
          {
            "node": "Update row in sheet1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Read Financial": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Previous Verdict": {
      "main": [
        [
          {
            "node": "Thesis Reversal Enricher",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet1": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Entry Signal Enricher": {
      "main": [
        [
          {
            "node": "Above 50MA?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Final version of news": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Seekingalpha Articles": {
      "main": [
        [
          {
            "node": "Clean the news",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Thesis Reversal Alert": {
      "main": [
        [
          {
            "node": "write_sentiment_to_sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Income statement": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "alphavantage - Profile": {
      "main": [
        [
          {
            "node": "Clean Profile",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read_tickers_from_Sheet": {
      "main": [
        [
          {
            "node": "loop_over_tickers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "alphavantage - CashFlow": {
      "main": [
        [
          {
            "node": "Clean Ccashflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Thesis Reversal Enricher": {
      "main": [
        [
          {
            "node": "Alert Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "write_sentiment_to_sheets": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "alphavantage - Balance Sheet": {
      "main": [
        [
          {
            "node": "Clean balance sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "alphavantage - Current Price": {
      "main": [
        [
          {
            "node": "Clean Current Price",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "alphavantage - Income Statement": {
      "main": [
        [
          {
            "node": "Clean Income statement",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Up Results from First Round": {
      "main": [
        [
          {
            "node": "Needs Tiebreaker?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "alphavantage - Current Price Second": {
      "main": [
        [
          {
            "node": "Clean Current Price1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}