{
  "name": "Stock market daily digest with Bright Data scraping & Gemini AI email reports",
  "nodes": [
    {
      "id": "e27afbc7-8cae-44b6-b506-474bb2692f08",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -640,
        -300
      ]
    },
    {
      "id": "2cc8d35f-f255-4adc-b1d7-7f9ab34dde66",
      "name": "Get progress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1020,
        -400
      ]
    },
    {
      "id": "eb6ab86c-3e8b-4dc6-8d70-3346531905fa",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -840,
        -400
      ]
    },
    {
      "id": "88b7e912-af0c-4527-baa3-4f8cf0b072d1",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1660,
        -400
      ]
    },
    {
      "id": "d0ee4823-0536-415e-8fa9-861c1701665d",
      "name": "SAMPLE DATA",
      "type": "n8n-nodes-base.set",
      "position": [
        -1860,
        -400
      ]
    },
    {
      "id": "2aab292f-0287-4da6-86ee-83c5a9aee30a",
      "name": "set keyword",
      "type": "n8n-nodes-base.set",
      "position": [
        -1480,
        -400
      ]
    },
    {
      "id": "13f81727-f586-4fb6-be73-4880c9efd165",
      "name": "Financial times scraper",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1260,
        -400
      ]
    },
    {
      "id": "5e828381-8268-4114-b16c-a60c4ca23e80",
      "name": "Get snapshot + data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -620,
        -480
      ]
    },
    {
      "id": "4c2826ee-30bb-4438-a531-c370edbe2103",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -300,
        -280
      ]
    },
    {
      "id": "9cd0f2fd-248b-4047-aeb3-1a548ad02514",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -320,
        -620
      ]
    },
    {
      "id": "d9797a77-bdf3-4600-bcd7-21311bb405fd",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        0,
        -260
      ]
    },
    {
      "id": "ef5165a4-0452-4b20-b2fa-994429f3bc5b",
      "name": "create summary",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        0,
        -480
      ]
    },
    {
      "id": "cf744498-62bf-4e6a-8570-dda7fea35fe5",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2140,
        -400
      ]
    },
    {
      "id": "d564ee93-181f-461b-8ace-2dcb26439b6c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1940,
        -600
      ],
      "parameters": {
        "width": 220,
        "height": 420,
        "content": "## Add stock to track\n\nYou will add a list of the stocks you need to track here"
      }
    },
    {
      "id": "0c7e5d90-ce9e-456c-9f48-ba6872557467",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1680,
        -600
      ],
      "parameters": {
        "width": 340,
        "height": 420,
        "content": "## Split and set the field names\nThe field name MUST be keyword to match the bright data API"
      }
    },
    {
      "id": "64d932ee-f0b1-458a-a017-505676666c18",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1320,
        -600
      ],
      "parameters": {
        "width": null,
        "height": 420,
        "content": "## Financial Times scraper\nScrap the latest trends in our selected Stock. \n\nSet it to run once"
      }
    },
    {
      "id": "bb55cc08-f262-42c1-9951-00771689495a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        -680
      ],
      "parameters": {
        "width": 620,
        "height": 520,
        "content": "## Check the status of the progress and Get results\n\nIf `running` we make it loop until done"
      }
    },
    {
      "id": "9bc67859-d0b7-4d48-84d3-d0b9c90e8ca5",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -560
      ],
      "parameters": {
        "width": 260,
        "height": 260,
        "content": "## Get scraping results"
      }
    },
    {
      "id": "9627ec91-d2c4-4076-b39f-9f8be978177b",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        -420
      ],
      "parameters": {
        "width": 280,
        "height": 280,
        "content": "## Aggregate results to pass to AI for our email summary"
      }
    },
    {
      "id": "e01b8ad5-e028-4c81-9162-b27ae75687a3",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -720
      ],
      "parameters": {
        "width": 520,
        "height": 600,
        "content": "## Create Draft email and notify admin\n\n\n\nCreate an email summary and notify the user"
      }
    },
    {
      "id": "8a23ca78-36e5-4ce3-b81d-fa62d770aa36",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -380,
        -680
      ],
      "parameters": {
        "width": 280,
        "height": 240,
        "content": "## Save results to G sheets"
      }
    },
    {
      "id": "3f953ffd-4faa-4cd5-bd3a-b3a6d021eebf",
      "name": "Gmail1",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        180,
        -260
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Get progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail1": {
      "ai_tool": [
        [
          {
            "node": "create summary",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Get snapshot + data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "create summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "set keyword",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SAMPLE DATA": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "set keyword": {
      "main": [
        [
          {
            "node": "Financial times scraper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get progress": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets": {
      "main": [
        []
      ]
    },
    "create summary": {
      "main": [
        []
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "SAMPLE DATA",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get snapshot + data": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          },
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Financial times scraper": {
      "main": [
        [
          {
            "node": "Get progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "create summary",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}