{
  "name": "Automate SEO-Optimized WordPress posts with AI & Google Sheets",
  "nodes": [
    {
      "id": "5c88bf7d-cd9d-4b76-8233-6e5927692e7a",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -540,
        -80
      ]
    },
    {
      "id": "d3fc9ed5-9ddc-480d-9fa8-f0a66bb69520",
      "name": "Get context",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -320,
        -80
      ]
    },
    {
      "id": "27a1aaf2-435f-4fcc-b7be-f88f2e51a6c7",
      "name": "Set context",
      "type": "n8n-nodes-base.set",
      "position": [
        -100,
        -80
      ]
    },
    {
      "id": "b2f0a242-ef9f-42d9-974b-e823f23bf37f",
      "name": "Generate title",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        360,
        -80
      ]
    },
    {
      "id": "b3b30328-0dfe-4471-9195-d411e737df5e",
      "name": "Generate article",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        140,
        -80
      ]
    },
    {
      "id": "e3f7d28b-ac23-4192-bd46-127491240ee2",
      "name": "Add draft to WP",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        620,
        -80
      ]
    },
    {
      "id": "3ebcf40b-7a3b-43fa-a075-0e6dfaa2665e",
      "name": "Generate image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -540,
        200
      ]
    },
    {
      "id": "2eedf2db-660b-4e1e-a38d-34ad2ddb1314",
      "name": "Upload image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -320,
        200
      ]
    },
    {
      "id": "58e3aa00-a1d7-4b19-916e-4d07dd7c2009",
      "name": "Set image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -120,
        200
      ]
    },
    {
      "id": "6f9277be-26c4-4d01-9e61-acf3ab90739d",
      "name": "Update Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        140,
        200
      ]
    },
    {
      "id": "1d880c40-af32-4c78-9fa2-fb6b120039d3",
      "name": "SEO Expert",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        500,
        200
      ]
    },
    {
      "id": "d26e13c4-e26d-4f3c-9977-82d32879530e",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        480,
        440
      ]
    },
    {
      "id": "c4833efe-1b43-42e7-a5ec-cca1908f327b",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        700,
        440
      ]
    },
    {
      "id": "962e5d6f-df35-4e5c-b46e-9c2164a3648d",
      "name": "Set metatag",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -540,
        480
      ]
    },
    {
      "id": "55e8e3c3-2270-4227-863c-e7cf1337c13b",
      "name": "Finish work",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -320,
        480
      ]
    },
    {
      "id": "f50be61f-7502-4186-9952-22e740de896e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -360,
        -160
      ],
      "parameters": {
        "width": 180,
        "height": 240,
        "content": "Fetches the context of the article you want to generate via AI"
      }
    },
    {
      "id": "149e3535-60fb-4547-8dad-567a47f9bc4b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        -160
      ],
      "parameters": {
        "width": 280,
        "height": 240,
        "content": "Create the draft post on Wordpress with the article text and the title that were previously generated"
      }
    },
    {
      "id": "779e3a0d-1429-4973-9757-fa1645796cbd",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -360,
        140
      ],
      "parameters": {
        "width": 400,
        "height": 220,
        "content": "Upload the generated image to Wordpress media and then associate it with the newly created article"
      }
    },
    {
      "id": "9b375c3e-3c3a-44e9-b234-2538e6f33d32",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        140
      ],
      "parameters": {
        "width": 420,
        "height": 220,
        "content": "The SEO expert analyzes the created article and generates the appropriate meta title and meta description"
      }
    },
    {
      "id": "d4c503c9-9d0f-4411-a3a6-bdd77f782a77",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -600,
        420
      ],
      "parameters": {
        "width": 220,
        "height": 200,
        "content": "The generated metadata is associated with the post"
      }
    },
    {
      "id": "8d7a1d61-3fbe-4d76-9f2d-68b4c9de23bb",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -460
      ],
      "parameters": {
        "width": 820,
        "height": null,
        "content": "## Optimize WordPress Blog Posts with AI\n\nThis is a powerful tool for automating the creation and optimization of blog posts, saving time and ensuring high-quality, SEO-friendly content for Wordpress "
      }
    }
  ],
  "connections": {
    "Set image": {
      "main": [
        [
          {
            "node": "Update Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SEO Expert": {
      "main": [
        [
          {
            "node": "Set metatag",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get context": {
      "main": [
        [
          {
            "node": "Set context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set context": {
      "main": [
        [
          {
            "node": "Generate article",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set metatag": {
      "main": [
        [
          {
            "node": "Finish work",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet": {
      "main": [
        [
          {
            "node": "SEO Expert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload image": {
      "main": [
        [
          {
            "node": "Set image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate image": {
      "main": [
        [
          {
            "node": "Upload image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate title": {
      "main": [
        [
          {
            "node": "Add draft to WP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add draft to WP": {
      "main": [
        [
          {
            "node": "Generate image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate article": {
      "main": [
        [
          {
            "node": "Generate title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "SEO Expert",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "SEO Expert",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}