{
  "name": "Automate Morning Brew–style Reddit Digests and Publish to DEV using AI",
  "nodes": [
    {
      "id": "7c36980c-0a71-4508-a4a6-af397d6b4d1d",
      "name": "RSS Read",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        240,
        152
      ]
    },
    {
      "id": "50ee913e-46bc-46e2-9416-97198faba1e3",
      "name": "Initiate batch extraction from URL",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        912,
        152
      ]
    },
    {
      "id": "bd35cd68-270a-46eb-b05d-e698d344bf02",
      "name": "Extract URLs",
      "type": "n8n-nodes-base.set",
      "position": [
        464,
        152
      ]
    },
    {
      "id": "42f27a49-f950-4759-b433-a13e765facea",
      "name": "Aggregate URLs to Single Object",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        688,
        152
      ]
    },
    {
      "id": "92ce2ec2-8f63-4dbf-85ed-c5be766d6710",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1136,
        152
      ]
    },
    {
      "id": "08eee5cc-dc09-46f3-b71f-728307d0d44e",
      "name": "Check Snapshot Again for Success",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1984,
        256
      ]
    },
    {
      "id": "5056bdbc-6332-4121-8b9f-d4bca6d76a9e",
      "name": "Check the status of a batch extraction",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        1360,
        160
      ]
    },
    {
      "id": "dc15490e-93cd-4e23-9531-0874b6a72630",
      "name": "Check if Batch Ready",
      "type": "n8n-nodes-base.if",
      "position": [
        1584,
        160
      ]
    },
    {
      "id": "4ed4650b-2fda-4f85-802c-9824f1e6572c",
      "name": "Wait 5 seconds",
      "type": "n8n-nodes-base.wait",
      "position": [
        1808,
        256
      ]
    },
    {
      "id": "10df46b5-a8d3-4281-8771-37b01f717fc2",
      "name": "Download the snapshot content",
      "type": "@brightdata/n8n-nodes-brightdata.brightData",
      "position": [
        2224,
        144
      ]
    },
    {
      "id": "87c4f679-17a4-4e08-a06b-be2fcb67a6fe",
      "name": "Extract Essential Data",
      "type": "n8n-nodes-base.set",
      "position": [
        2448,
        144
      ]
    },
    {
      "id": "4e8af0c1-ebcb-4e2b-af25-46ba8800c946",
      "name": "Reduce Objects to 1",
      "type": "n8n-nodes-base.set",
      "position": [
        2672,
        144
      ]
    },
    {
      "id": "55eebf96-e009-4bb2-a1c2-d10666f5f8cb",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2896,
        144
      ]
    },
    {
      "id": "9a8564aa-17d8-45ae-867b-5062df316301",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3232,
        112
      ]
    },
    {
      "id": "b982de15-e810-4790-ba9a-17ac85aa74ec",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3184,
        336
      ]
    },
    {
      "id": "b4d15d5e-0953-42cf-b693-80e9ed5a856d",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3712,
        96
      ]
    },
    {
      "id": "0489905c-68c8-4aad-9871-3844fb20dfb6",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3312,
        336
      ]
    },
    {
      "id": "a23a7427-dcd5-446e-a6e5-df823dc4dc99",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        16,
        152
      ]
    },
    {
      "id": "b4060c87-d977-4a04-8200-270724248ca6",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        3712,
        320
      ]
    },
    {
      "id": "8e6c8267-c2b4-4d23-8ee1-0e8728e84ef0",
      "name": "Publish to Dev.to",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3936,
        320
      ]
    },
    {
      "id": "efbe61ff-2919-4abb-a16d-5ec7ec9194b9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        0
      ],
      "parameters": {
        "width": 864,
        "height": 480,
        "content": "## Get most recent reddit posts"
      }
    },
    {
      "id": "5282cddd-0290-460a-b428-d83bbf36f204",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        0
      ],
      "parameters": {
        "width": 1504,
        "height": 480,
        "content": "## Pass Posts to Bright Data to get comment and upvote data"
      }
    },
    {
      "id": "6dd01817-fea1-4a81-85c7-6c6b6fe32aa3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2384,
        0
      ],
      "parameters": {
        "width": 640,
        "height": 480,
        "content": "## Prep output for LLM"
      }
    },
    {
      "id": "6b916ef9-aa05-4e70-8d46-d84fe839126f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3040,
        0
      ],
      "parameters": {
        "width": 544,
        "height": 480,
        "content": "## Convert posts to summary"
      }
    },
    {
      "id": "f1c9c7f9-c43d-4b7b-b890-33fdbfd59f84",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3600,
        0
      ],
      "parameters": {
        "width": 384,
        "height": 240,
        "content": "## Send HTML email newsletter"
      }
    },
    {
      "id": "e7f15b40-9c0b-4ac0-bb46-b5739ae413cc",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3600,
        256
      ],
      "parameters": {
        "width": 560,
        "height": 224,
        "content": "## Convert and Post to Dev.to"
      }
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Markdown": {
      "main": [
        [
          {
            "node": "Publish to Dev.to",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read": {
      "main": [
        [
          {
            "node": "Extract URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract URLs": {
      "main": [
        [
          {
            "node": "Aggregate URLs to Single Object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 seconds": {
      "main": [
        [
          {
            "node": "Check Snapshot Again for Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Check the status of a batch extraction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Reduce Objects to 1": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if Batch Ready": {
      "main": [
        [
          {
            "node": "Download the snapshot content",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5 seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Essential Data": {
      "main": [
        [
          {
            "node": "Reduce Objects to 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Download the snapshot content": {
      "main": [
        [
          {
            "node": "Extract Essential Data",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Aggregate URLs to Single Object": {
      "main": [
        [
          {
            "node": "Initiate batch extraction from URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Snapshot Again for Success": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Initiate batch extraction from URL": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check the status of a batch extraction": {
      "main": [
        [
          {
            "node": "Check if Batch Ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}