{
  "name": "Create SEO-Optimized Blog Articles with GPT-4o Mini's Multi-Stage Generation",
  "nodes": [
    {
      "id": "b8e73760-245e-4265-bbca-4b82f82b7758",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -224,
        96
      ]
    },
    {
      "id": "e0527391-e9fe-45c4-95f3-192a98690782",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        240,
        320
      ]
    },
    {
      "id": "ca7b3775-810c-4ab3-9d19-362e81c23e77",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        368,
        320
      ]
    },
    {
      "id": "8c7a681e-fc37-43e7-9f0b-99cbf75a106b",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        800,
        96
      ]
    },
    {
      "id": "34aa06eb-a8ab-48c5-af40-dee391965b62",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1024,
        96
      ]
    },
    {
      "id": "05a44cb4-15de-41a2-9a41-cca190feb4aa",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1040,
        320
      ]
    },
    {
      "id": "5bd8b8be-6dfe-4616-84f2-db71be3bf1fd",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1088,
        -208
      ]
    },
    {
      "id": "be01bbe2-5cb6-41c7-842a-68dce304c87c",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1168,
        320
      ]
    },
    {
      "id": "687db5eb-d6cd-4c2a-8d7d-555b346ee2d0",
      "name": "Create New Array",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        224
      ]
    },
    {
      "id": "2d2291b6-8818-40cd-99dd-8ea8a5044d30",
      "name": "JSON HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        -208
      ]
    },
    {
      "id": "b77d1b0a-0252-499a-8b77-769a12fa291f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -80
      ],
      "parameters": {
        "width": 336,
        "height": 560,
        "content": "## Article Generator SEO Friendly\n\n### How it works:\n• Generates a structured outline from your topic using an AI Agent.\n• Loops through each subtopic and expands it into a detailed, SEO-friendly para"
      }
    },
    {
      "id": "e640a067-78a9-4256-a70e-b293677cbfa5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        16
      ],
      "parameters": {
        "width": 896,
        "height": 448,
        "content": "## 2. Loop the Outline and Generate Paragraph\nWe also using simple memory to make sure the loop still relevant"
      }
    },
    {
      "id": "724d69a1-a553-48c6-a445-d92fbd423d6d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -352
      ],
      "parameters": {
        "width": 624,
        "height": 320,
        "content": "## 3.Result become JSON with Markdown and HTML format\nJust continue this nodes with your purpose"
      }
    },
    {
      "id": "db82eca5-32b4-4435-a864-d0ccf9db7c81",
      "name": "Generate Outline",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        224,
        96
      ]
    },
    {
      "id": "ee209bbb-6bf5-4d6b-ae22-83aece5887d0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        16
      ],
      "parameters": {
        "width": 752,
        "height": 448,
        "content": "## 1. Creating Outline"
      }
    },
    {
      "id": "c13a47ac-8e53-4c71-ad7b-8896524a8938",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -624,
        -544
      ],
      "parameters": {
        "width": 336,
        "height": 400,
        "content": "## Workflow Creator Profile – Pake.AI\n\n**Pake.AI** is an AI Enabler from Indonesia, committed to helping creators, entrepreneurs, and businesses automate their operations through practical and accessi"
      }
    },
    {
      "id": "f6da2439-4e85-4fc4-b018-99fd12f61dae",
      "name": "Input Topic Plans",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        96
      ]
    },
    {
      "id": "0bbbe751-95c1-413a-81a1-beb3163907ab",
      "name": "Get Subtopic Array (For Looping)",
      "type": "n8n-nodes-base.code",
      "position": [
        576,
        96
      ]
    }
  ],
  "connections": {
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Create New Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "JSON HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create New Array": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Outline": {
      "main": [
        [
          {
            "node": "Get Subtopic Array (For Looping)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input Topic Plans": {
      "main": [
        [
          {
            "node": "Generate Outline",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Outline",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Outline",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get Subtopic Array (For Looping)": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Input Topic Plans",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}