{
  "name": "Classify and summarize WeChat articles with GPT-4 Nano to Google Sheets and Notion",
  "nodes": [
    {
      "id": "379aa7e3-f0f9-431a-b86d-4e1ed71fd307",
      "name": "Read Initial Links",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -140,
        160
      ]
    },
    {
      "id": "def0ea7d-7da8-4506-9c90-4312bd6e5b64",
      "name": "Read RSS Links",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -140,
        360
      ]
    },
    {
      "id": "c21ea372-874b-4b85-ae7d-d546deb92d06",
      "name": "IF (Filter by Date)",
      "type": "n8n-nodes-base.if",
      "position": [
        500,
        360
      ]
    },
    {
      "id": "2213c327-38d5-4a7c-a06c-d9bad22e7d2a",
      "name": "Save Initial Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        980,
        340
      ]
    },
    {
      "id": "2f5de224-3143-44c3-9730-766110cc4a03",
      "name": "RSS Read",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        80,
        360
      ]
    },
    {
      "id": "8c5bd286-a773-4e2e-9418-a1399ad80ab3",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -320,
        160
      ]
    },
    {
      "id": "202633fe-ec3d-43c8-bdca-a19e40db1961",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1100,
        180
      ]
    },
    {
      "id": "ceec6d61-4ec8-4073-9693-ca768af3d6eb",
      "name": "Filter Unique Links",
      "type": "n8n-nodes-base.code",
      "position": [
        1520,
        180
      ]
    },
    {
      "id": "bda380c5-c9a3-4d16-b999-15ecbc296706",
      "name": "Filtered Data",
      "type": "n8n-nodes-base.set",
      "position": [
        740,
        340
      ]
    },
    {
      "id": "77fdc062-a331-43c3-b702-66152ed0be5e",
      "name": "pubDate&link Only",
      "type": "n8n-nodes-base.set",
      "position": [
        1320,
        180
      ]
    },
    {
      "id": "04040e72-be20-40c4-9f99-b3036de54d12",
      "name": "pubDate Processing",
      "type": "n8n-nodes-base.set",
      "position": [
        300,
        360
      ]
    },
    {
      "id": "79ad6600-91ba-43f8-9a93-baf75671b4da",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1220,
        360
      ]
    },
    {
      "id": "ee826fb2-5542-42cc-ae2f-9636c1db930a",
      "name": "Restore Full Data with Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -140,
        620
      ]
    },
    {
      "id": "980da728-dcc1-4eec-a590-9899c29a8982",
      "name": "Relevance Classification for Topic Monitoring",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        300,
        620
      ]
    },
    {
      "id": "50642d77-04a1-40b0-87a7-41d073dff5e6",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        320,
        840
      ]
    },
    {
      "id": "7c91fad5-56b5-466f-b320-6c0fc8f55254",
      "name": "Basic LLM Chain",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        720,
        600
      ]
    },
    {
      "id": "770887c4-4278-448a-961a-71eacbd57f3d",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        740,
        840
      ]
    },
    {
      "id": "7efc776d-d8f0-4014-9551-ce6817450c91",
      "name": "Set Fields - Relevant Articles",
      "type": "n8n-nodes-base.set",
      "position": [
        1140,
        600
      ]
    },
    {
      "id": "6250fcff-7557-4fcb-8de1-e23e3673d545",
      "name": "Google Sheets - Add relevant article",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1400,
        600
      ]
    },
    {
      "id": "3f3c8159-d130-46c9-be36-a44274639dc2",
      "name": "Clean HTML Content",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        620
      ]
    },
    {
      "id": "de9ca195-a03d-4e81-9764-be1b15c30698",
      "name": "Create a database page",
      "type": "n8n-nodes-base.notion",
      "position": [
        1400,
        800
      ]
    },
    {
      "id": "7417f405-bb62-4fb7-842f-81b6c6e8a21c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -40
      ],
      "parameters": {
        "width": 360,
        "height": 380,
        "content": "## Workflow Overview\n\nThis workflow automates classifying and summarizing WeChat articles! 📑 It reads RSS links from Google Sheets, filters by date ⏳, cleans content 🧹, classifies relevance (e.g., AI,"
      }
    },
    {
      "id": "45d493a4-c20a-4da1-a01c-6db4be67e127",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -40
      ],
      "parameters": {
        "width": 1020,
        "height": 560,
        "content": "## Step 1 - Data Input📥\n\nRead initial links and RSS feeds from Google Sheets. 📋"
      }
    },
    {
      "id": "f7be9779-8638-40f7-92e7-9db22cf16d62",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        -40
      ],
      "parameters": {
        "width": 560,
        "height": 560,
        "content": "## Step 2 - Deduplication Step 🔄\n\nCheck for already processed URLs using \"Filter Unique Links\" node. ✅ \nIf a URL is duplicate, skip it; process only new content. ⏩ \nThis ensures efficiency and avoids "
      }
    },
    {
      "id": "598b9f22-f977-4269-92f2-1b512b3d61f3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        880
      ],
      "parameters": {
        "width": 1200,
        "height": 280,
        "content": "## Step 3 - Processing⚙️\n\n- Classification 📊: Use \"Relevance Classification\" node to categorize articles (e.g., relevant to AI/specific person or not). 🎯 AI determines relevance based on content.\n- AI"
      }
    },
    {
      "id": "4e6ff59a-5788-415c-a463-ceb0bd448b1e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        1000
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## Step 4 - Output📤\n\nSave to Google Sheets and Notion.\n"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "pubDate&link Only",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Restore Full Data with Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read": {
      "main": [
        [
          {
            "node": "pubDate Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filtered Data": {
      "main": [
        [
          {
            "node": "Save Initial Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read RSS Links": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "Set Fields - Relevant Articles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Save Initial Data": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "pubDate&link Only": {
      "main": [
        [
          {
            "node": "Filter Unique Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean HTML Content": {
      "main": [
        [
          {
            "node": "Relevance Classification for Topic Monitoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Relevance Classification for Topic Monitoring",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Read Initial Links": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "pubDate Processing": {
      "main": [
        [
          {
            "node": "IF (Filter by Date)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Unique Links": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "IF (Filter by Date)": {
      "main": [
        [
          {
            "node": "Filtered Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Restore Full Data with Code": {
      "main": [
        [
          {
            "node": "Clean HTML Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Fields - Relevant Articles": {
      "main": [
        [
          {
            "node": "Google Sheets - Add relevant article",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create a database page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Read Initial Links",
            "type": "main",
            "index": 0
          },
          {
            "node": "Read RSS Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Relevance Classification for Topic Monitoring": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}