{
  "name": "Generate multiple languange blogpost with OpenAI, support Yoast & Polylang",
  "nodes": [
    {
      "id": "d26ca442-3d74-44ba-b776-f6a1be6418b4",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1640,
        3620
      ]
    },
    {
      "id": "044f8c00-f7dd-4122-a7e7-4d698dd7d924",
      "name": "Get Recent Posts",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1860,
        3340
      ]
    },
    {
      "id": "9a011830-5d59-439f-a847-6d328109d3c2",
      "name": "Get All Taxonomies",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1860,
        3500
      ]
    },
    {
      "id": "4a75282b-a4dd-44a4-97bc-a11db56e0b07",
      "name": "Get Posts Schema",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1860,
        3660
      ]
    },
    {
      "id": "eea71bad-e20a-45dc-a75c-abd6cc1c0854",
      "name": "Get API Routes",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1860,
        3820
      ]
    },
    {
      "id": "f525a26a-2716-4530-80d9-3e3c9fcc523d",
      "name": "Get Single Post Details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2060,
        3340
      ]
    },
    {
      "id": "5321b73e-b7ae-44b9-9a4f-43c81ee40aac",
      "name": "Check Language Endpoint",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2060,
        3500
      ]
    },
    {
      "id": "0cb03306-bb18-4326-8249-ec94982dd3e3",
      "name": "Check PLL Endpoint",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2060,
        3660
      ]
    },
    {
      "id": "47fd2403-fdfb-4e17-8518-b7ef4545df0f",
      "name": "Get Terms",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2060,
        3820
      ]
    },
    {
      "id": "65f55a1c-9027-4a52-8352-006bb7169cef",
      "name": "Analyze Post Structure",
      "type": "n8n-nodes-base.code",
      "position": [
        2260,
        3340
      ]
    },
    {
      "id": "65c41cb1-b943-4222-9f1f-99627f59c3dc",
      "name": "Analyze Taxonomies",
      "type": "n8n-nodes-base.code",
      "position": [
        2260,
        3500
      ]
    },
    {
      "id": "598642ca-a558-4425-820a-760aad33dca7",
      "name": "Analyze API Routes",
      "type": "n8n-nodes-base.code",
      "position": [
        2260,
        3820
      ]
    },
    {
      "id": "1e8935ab-e3b9-41ff-942a-7ed8e5d38350",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1540,
        3300
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1fd3b081-5185-416f-af0d-925630fcafd0",
      "name": "OpenAI Model - Article1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3200,
        3520
      ]
    },
    {
      "id": "c719ee7d-315a-44cf-bc48-c7fc86c6bb02",
      "name": "Parse Topic JSON1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        3020,
        3520
      ]
    },
    {
      "id": "df2f35e8-1e1a-45b0-bbf1-b36eca0df6dc",
      "name": "OpenAI Model - Topic1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2860,
        3520
      ]
    },
    {
      "id": "cc908638-83dd-4d5f-9742-d05227bdbacd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2580,
        3300
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "27d4da14-3360-4af6-a312-31874554b401",
      "name": "Weekly Schedule",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        2680,
        3380
      ]
    },
    {
      "id": "27869c0f-c7f0-49f7-84d4-34f08bb87102",
      "name": "Generate Topic & Metadata",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2860,
        3380
      ]
    },
    {
      "id": "4126e8f8-8cc1-42e7-8b50-d818ee1e1857",
      "name": "Generate Article Content",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3200,
        3380
      ]
    },
    {
      "id": "c1ac4723-1db8-4eea-8640-6dd176efc0b1",
      "name": "Create WordPress Draft",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        3540,
        3380
      ]
    },
    {
      "id": "dcec267d-c513-44df-8d13-8bd68e852590",
      "name": "Set Yoast SEO Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2840,
        3780
      ]
    },
    {
      "id": "bedd876b-e6e1-4397-aed2-61b08a5bc2c5",
      "name": "Generate Featured Image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        3060,
        3780
      ]
    },
    {
      "id": "a7284c61-7342-4fcb-9422-577a807c9dd3",
      "name": "Upload Image to WordPress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3260,
        3780
      ]
    },
    {
      "id": "69b93ac4-7784-4c71-8fff-31ba59b50b55",
      "name": "Attach Featured Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3460,
        3780
      ]
    }
  ],
  "connections": {
    "Get API Routes": {
      "main": [
        [
          {
            "node": "Analyze API Routes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Get Recent Posts",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get All Taxonomies",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Posts Schema",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get API Routes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly Schedule": {
      "main": [
        [
          {
            "node": "Generate Topic & Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Posts Schema": {
      "main": [
        [
          {
            "node": "Check PLL Endpoint",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Recent Posts": {
      "main": [
        [
          {
            "node": "Get Single Post Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Topic JSON1": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Topic & Metadata",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get All Taxonomies": {
      "main": [
        [
          {
            "node": "Analyze Taxonomies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Yoast SEO Data": {
      "main": [
        [
          {
            "node": "Generate Featured Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Topic1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Topic & Metadata",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create WordPress Draft": {
      "main": [
        [
          {
            "node": "Set Yoast SEO Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Featured Image": {
      "main": [
        [
          {
            "node": "Upload Image to WordPress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Single Post Details": {
      "main": [
        [
          {
            "node": "Analyze Post Structure",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Model - Article1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Article Content",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Article Content": {
      "main": [
        [
          {
            "node": "Create WordPress Draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Topic & Metadata": {
      "main": [
        [
          {
            "node": "Generate Article Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image to WordPress": {
      "main": [
        [
          {
            "node": "Attach Featured Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}