{
  "name": "AI-curated Indian marketing newsletter with RSS feeds and Gmail delivery",
  "nodes": [
    {
      "id": "9860881a-543c-443e-81ea-f5064fa7d0eb",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        864,
        288
      ]
    },
    {
      "id": "d64002f0-aa87-4a4c-9131-69ef1229d2a8",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -112,
        736
      ]
    },
    {
      "id": "698a5769-e902-4f59-a447-dbb1e930f5b9",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -400,
        720
      ]
    },
    {
      "id": "ec67c0f9-6f6d-46e6-825a-2809d2dea323",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        288,
        864
      ]
    },
    {
      "id": "c5fcc084-98a2-414b-b3df-4f08a5a9bae3",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        496,
        864
      ]
    },
    {
      "id": "df59dde2-6b31-42b6-90ae-e73bf46226ef",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1904,
        736
      ]
    },
    {
      "id": "ae210423-1e58-4cfb-acb0-999fb25e9c0a",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        416,
        208
      ]
    },
    {
      "id": "d7f68c7f-92cb-45cc-aef6-42112ba5cd85",
      "name": "EconomicTimes Top Stories1",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1376,
        608
      ]
    },
    {
      "id": "3926fa32-ed62-4248-96c6-e2562512d52a",
      "name": "EconomicTimes Business of Brands",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1360,
        864
      ]
    },
    {
      "id": "9f1eaf64-d570-49f7-868a-6d8228503d21",
      "name": "EconomicTimes Digital Marketing",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1568,
        896
      ]
    },
    {
      "id": "ae122e32-bca0-4123-99f5-31ad16e8a6c7",
      "name": "Campaign India",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1568,
        576
      ]
    },
    {
      "id": "44fafce1-d0c3-4abd-9f51-73efdcc5da7b",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        640,
        208
      ]
    },
    {
      "id": "79280bbc-5bfe-47cf-8c6c-f0565394598c",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -112,
        912
      ]
    },
    {
      "id": "de716d41-c201-483e-bccd-12eb4a58ed3e",
      "name": "Insert row",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        768,
        848
      ]
    },
    {
      "id": "260dacc0-2ee8-4b74-a9b3-c9c65274de24",
      "name": "Get row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        208,
        208
      ]
    },
    {
      "id": "2cbe39ed-8e7e-4bee-9dc8-c349a1284d98",
      "name": "Delete row(s)",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        1168,
        112
      ]
    },
    {
      "id": "b6ecb2d9-b2cb-4dc2-a696-dc0944a89430",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        0,
        208
      ]
    },
    {
      "id": "ef55d92a-d724-4b72-9682-128df5923d12",
      "name": "Merge Feeds-1",
      "type": "n8n-nodes-base.merge",
      "position": [
        -976,
        592
      ]
    },
    {
      "id": "66d0fb2d-de49-47f7-866e-199fc3f8e0a5",
      "name": "Merge Feeds-2",
      "type": "n8n-nodes-base.merge",
      "position": [
        -976,
        880
      ]
    },
    {
      "id": "c428f9bf-b7fe-43d1-8198-0ff2f494da89",
      "name": "Merge Feeds-All",
      "type": "n8n-nodes-base.merge",
      "position": [
        -736,
        720
      ]
    },
    {
      "id": "3d06e799-ff82-4a7a-9223-c84f37be48cd",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1680,
        416
      ],
      "parameters": {
        "width": 512,
        "height": 727,
        "content": "## Get Latest News\n**Fetches 4 marketing news feeds (ET + Campaign India).\nYou can add/remove RSS sources here.**"
      }
    },
    {
      "id": "7bca0a0c-caa1-479a-8c20-caba2a47ce3c",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        416
      ],
      "parameters": {
        "width": 512,
        "height": 727,
        "content": "## Merge all\n**Combines all RSS feeds into one list.**\n"
      }
    },
    {
      "id": "f4a68eae-8042-40bf-8a94-d57993076698",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        624
      ],
      "parameters": {
        "width": 1520,
        "height": 615,
        "content": "## Process AND LOOP-OVER All News Items\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nEach article is passed to the AI Agent.\nThe agent returns true/false based on strict marketing relevance rules (System Promp"
      }
    },
    {
      "id": "fefdd835-93ae-4b24-a620-1072a6d164fb",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        32
      ],
      "parameters": {
        "width": 1520,
        "height": 519,
        "content": "## Send Filtered News Using Gmail/SMTP Account\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThese nodes creates a polished HTML newsletter using the latest filtered articles from the Data Table. \nThe Code node format"
      }
    },
    {
      "id": "f3bec180-9231-49fa-84a2-8e22f609e08d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2544,
        432
      ],
      "parameters": {
        "width": 420,
        "height": 704,
        "content": "## Set up steps - What this workflow does!\n\nThis flow pulls the latest marketing news from Campaign India and ET BrandEquity, filters the useful stories with an AI relevance check, saves them to a Dat"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Insert row",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Get row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s)": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert row": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "main": [
        [
          {
            "node": "Delete row(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Feeds-1": {
      "main": [
        [
          {
            "node": "Merge Feeds-All",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Feeds-2": {
      "main": [
        [
          {
            "node": "Merge Feeds-All",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Campaign India": {
      "main": [
        [
          {
            "node": "Merge Feeds-1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Delete row(s)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge Feeds-All": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "EconomicTimes Top Stories1",
            "type": "main",
            "index": 0
          },
          {
            "node": "EconomicTimes Business of Brands",
            "type": "main",
            "index": 0
          },
          {
            "node": "EconomicTimes Digital Marketing",
            "type": "main",
            "index": 0
          },
          {
            "node": "Campaign India",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "EconomicTimes Top Stories1": {
      "main": [
        [
          {
            "node": "Merge Feeds-1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "EconomicTimes Digital Marketing": {
      "main": [
        [
          {
            "node": "Merge Feeds-2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "EconomicTimes Business of Brands": {
      "main": [
        [
          {
            "node": "Merge Feeds-2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}