{
  "name": "Generate long-form SEO articles from news with LINE approvals and Google Docs",
  "nodes": [
    {
      "id": "426f7eae-c881-4c95-b72d-c2c2b2464740",
      "name": "1. Daily Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -368,
        0
      ]
    },
    {
      "id": "f477ff06-dbc4-4273-b4a0-3fac0926864e",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -144,
        0
      ]
    },
    {
      "id": "26e6e1c8-0ceb-40f8-b294-48fccbae141a",
      "name": "2. Get Latest News",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        80,
        0
      ]
    },
    {
      "id": "afb608c8-1e8c-4a08-97d3-5d896d301cec",
      "name": "Parse RSS Feed",
      "type": "n8n-nodes-base.code",
      "position": [
        304,
        0
      ]
    },
    {
      "id": "3baf96eb-d4e8-4311-9c4e-144d3154c6d5",
      "name": "3. AI: Keyword Selection",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        512,
        0
      ]
    },
    {
      "id": "50b54f7b-3d83-42fd-be62-3847f117a208",
      "name": "Store Resume Key",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        816,
        0
      ]
    },
    {
      "id": "9d7bdaf6-2c86-4030-a013-5108ea2be3af",
      "name": "4. LINE: KW Approval Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        960,
        0
      ]
    },
    {
      "id": "5cf2cf22-826a-4579-a04d-279586254b77",
      "name": "5. Wait: KW Approval",
      "type": "n8n-nodes-base.wait",
      "position": [
        1184,
        0
      ]
    },
    {
      "id": "ba726804-4cd5-4bb7-a74b-98e59155d79a",
      "name": "6. AI: Outline Creation",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1392,
        0
      ]
    },
    {
      "id": "1101f7c0-7856-4c5f-8010-faf823cd39cf",
      "name": "7. LINE: Outline Approval",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1648,
        0
      ]
    },
    {
      "id": "49a6c734-07b5-405b-b2a3-d0eb4d469d9b",
      "name": "8. Wait: Outline Approval",
      "type": "n8n-nodes-base.wait",
      "position": [
        1840,
        0
      ]
    },
    {
      "id": "445c720b-577a-4d18-829f-a88fdbf412e5",
      "name": "Create Google Doc",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        2064,
        0
      ]
    },
    {
      "id": "f24d24ab-fcaa-447e-a7c2-b66ffce5ba67",
      "name": "Split Outline to Chapters",
      "type": "n8n-nodes-base.code",
      "position": [
        2272,
        0
      ]
    },
    {
      "id": "59bbf4b1-e3d7-4583-a3f9-5deb81b5d42f",
      "name": "Chapter Loop",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2496,
        0
      ]
    },
    {
      "id": "e0c490fd-cee2-48e5-a7a8-6d5f1722922a",
      "name": "9. AI: Chapter Writing",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2720,
        0
      ]
    },
    {
      "id": "5fc58b93-c6a1-4fcc-a403-f78966de187f",
      "name": "Write Chapter to Docs",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        2992,
        0
      ]
    },
    {
      "id": "51607ce9-3a7d-4ec3-8b0b-5139a0ea5bb0",
      "name": "11. Log Final Article to Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2704,
        -176
      ]
    },
    {
      "id": "8c313149-ebe5-407b-b76e-214bb6b1bbc9",
      "name": "12. LINE: Final Notification",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2896,
        -176
      ]
    },
    {
      "id": "f6c37328-403b-4a18-b35c-d44bd9e78235",
      "name": "LINE Webhook Receiver",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -368,
        512
      ]
    },
    {
      "id": "7c4a8fae-59fe-495c-85b3-46fd4b6a1a48",
      "name": "Check if 'Create Article'",
      "type": "n8n-nodes-base.if",
      "position": [
        -112,
        512
      ]
    },
    {
      "id": "67073a2b-d837-4cba-b6c6-65c5cc9c627c",
      "name": "Get Resume URL from Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        144,
        512
      ]
    },
    {
      "id": "007c2ec7-b914-4b82-b650-b5eada4e803c",
      "name": "Resume Main Workflow",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        384,
        512
      ]
    },
    {
      "id": "39026ed1-db91-4cd4-8f23-bbf72e52ed2d",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        480,
        160
      ]
    },
    {
      "id": "2f35aa9f-e1bf-4987-bfa7-c4753a2a3a5a",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1408,
        176
      ]
    },
    {
      "id": "acb45510-8229-4a8b-9f87-e10670710838",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2672,
        160
      ]
    },
    {
      "id": "eea30e72-00a5-4001-9dfe-5301dfe24e62",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        -128
      ],
      "parameters": {
        "width": 664,
        "height": 822,
        "content": "# 🤖 AI-Powered SEO Content Factory (LINE Approval & Recursive Loop)\n\nThis high-end workflow automates the editorial pipeline from niche news discovery to long-form, deep-dive SEO articles.\n\n## 🚀 Key F"
      }
    },
    {
      "id": "caccb5ea-a83f-45f6-b7e7-d9c9c3ced543",
      "name": "Sticky Note - Phase 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -176
      ],
      "parameters": {
        "width": 1664,
        "height": 452,
        "content": "## 1️⃣ News Discovery & AI Strategy\nMonitors your niche and triggers the AI to propose a content strategy.\n- **RSS**: Fetches the latest niche trends.\n- **AI**: Generates SEO Keywords and Title candid"
      }
    },
    {
      "id": "2bba5fa5-84e2-4684-8d29-56c3ce5af9bf",
      "name": "Sticky Note - Phase 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        336
      ],
      "parameters": {
        "width": 1022,
        "height": 450,
        "content": "## 2️⃣ LINE Webhook & Resume Logic\nThis section acts as the receiver for your mobile commands.\n- **Trigger**: Listens for the text \"Create Article\" from your LINE.\n- **Lookup**: Retrieves the unique R"
      }
    },
    {
      "id": "9d6f661b-8547-46ce-a38f-930a911cb946",
      "name": "Sticky Note - Phase 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -176
      ],
      "parameters": {
        "width": 1852,
        "height": 468,
        "content": "## 3️⃣ Deep-Dive Recursive Writing Loop\nTo prevent \"AI Fatigue\" and surface-level content, this phase loops through the outline:\n- **Chapter Writing**: Focuses on one specific H2/H3 at a time.\n- **Goo"
      }
    }
  ],
  "connections": {
    "Chapter Loop": {
      "main": [
        [
          {
            "node": "11. Log Final Article to Sheets",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "9. AI: Chapter Writing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse RSS Feed": {
      "main": [
        [
          {
            "node": "3. AI: Keyword Selection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Resume Key": {
      "main": [
        [
          {
            "node": "4. LINE: KW Approval Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Google Doc": {
      "main": [
        [
          {
            "node": "Split Outline to Chapters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "3. AI: Keyword Selection",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "2. Get Latest News": {
      "main": [
        [
          {
            "node": "Parse RSS Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "6. AI: Outline Creation",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "9. AI: Chapter Writing",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "5. Wait: KW Approval": {
      "main": [
        [
          {
            "node": "6. AI: Outline Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LINE Webhook Receiver": {
      "main": [
        [
          {
            "node": "Check if 'Create Article'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write Chapter to Docs": {
      "main": [
        [
          {
            "node": "Chapter Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9. AI: Chapter Writing": {
      "main": [
        [
          {
            "node": "Write Chapter to Docs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "2. Get Latest News",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6. AI: Outline Creation": {
      "main": [
        [
          {
            "node": "7. LINE: Outline Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3. AI: Keyword Selection": {
      "main": [
        [
          {
            "node": "Store Resume Key",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1. Daily Schedule Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7. LINE: Outline Approval": {
      "main": [
        [
          {
            "node": "8. Wait: Outline Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8. Wait: Outline Approval": {
      "main": [
        [
          {
            "node": "Create Google Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if 'Create Article'": {
      "main": [
        [
          {
            "node": "Get Resume URL from Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Outline to Chapters": {
      "main": [
        [
          {
            "node": "Chapter Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Resume URL from Sheets": {
      "main": [
        [
          {
            "node": "Resume Main Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4. LINE: KW Approval Request": {
      "main": [
        [
          {
            "node": "5. Wait: KW Approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "11. Log Final Article to Sheets": {
      "main": [
        [
          {
            "node": "12. LINE: Final Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}