{
  "name": "AI content creation and auto WordPress publishing with Pexels API image workflow",
  "nodes": [
    {
      "id": "aa01f852-aa12-4001-9bc4-94fd0bbd0e88",
      "name": "Fetch Unprocessed Ideas",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -980,
        800
      ]
    },
    {
      "id": "3ab71903-3b38-4891-a769-2d0304cb4bad",
      "name": "Set Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        -780,
        800
      ]
    },
    {
      "id": "23e7d119-2d0f-41df-8e94-67bdd95bf6c0",
      "name": "Create WordPress Post",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        -760,
        1180
      ]
    },
    {
      "id": "a07f4264-c011-4925-a8c6-d5fa11ec809b",
      "name": "Upload Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -380,
        1180
      ]
    },
    {
      "id": "cbbae382-12b2-47c7-8fd8-13df5236bbdc",
      "name": "Set Featured Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -200,
        1180
      ]
    },
    {
      "id": "cc2d86a1-cc0f-46fc-81ee-ec02801b29cf",
      "name": "Update Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -20,
        1180
      ]
    },
    {
      "id": "74a74b39-d14c-44b7-920b-bfd343225a87",
      "name": "Generate Article AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -600,
        800
      ]
    },
    {
      "id": "0be71cb1-6b52-4227-a70d-c0e01033f8c4",
      "name": "Generate Image Keyword AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -280,
        800
      ]
    },
    {
      "id": "f7da0b58-b5ae-48b3-a69a-739512282179",
      "name": "Gemini Model for Article",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -620,
        940
      ]
    },
    {
      "id": "5af891b9-069d-4e48-8b93-e04413d85e7c",
      "name": "Gemini Model for Image Keyword",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -300,
        940
      ]
    },
    {
      "id": "3b0f4db2-e2d1-4590-b08b-a37039db7f70",
      "name": "Search Pexels Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -960,
        1180
      ]
    },
    {
      "id": "7fb8b8fe-4e6b-4af8-8d6b-9419096350d2",
      "name": "Download Pexels Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -560,
        1180
      ]
    },
    {
      "id": "32b7c739-19e0-4115-8d7e-35a2db6423bb",
      "name": "Form Trigger: Select Action",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1580,
        580
      ]
    },
    {
      "id": "bc2a6f22-a0f7-4933-b660-a0f4dbd52de4",
      "name": "If Generate Content",
      "type": "n8n-nodes-base.if",
      "position": [
        -1340,
        580
      ]
    },
    {
      "id": "18bdad61-7286-4e66-bdc3-f37d404f8dc0",
      "name": "Add Ideas to Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -40,
        400
      ]
    },
    {
      "id": "d7697c4b-e651-414c-a7eb-171ef43110b6",
      "name": "Generate Blog Topics AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -700,
        400
      ]
    },
    {
      "id": "b6c75452-0f77-426e-bf0f-c20ecaf620e4",
      "name": "Form: Enter Topic for Ideas",
      "type": "n8n-nodes-base.form",
      "position": [
        -980,
        400
      ]
    },
    {
      "id": "63701441-2b94-4a59-804c-ff25494749db",
      "name": "Form: Add More Topics?",
      "type": "n8n-nodes-base.form",
      "position": [
        240,
        400
      ]
    },
    {
      "id": "562cd4ea-8fc2-43bb-a0f8-b84e63e55807",
      "name": "If Add More Topics",
      "type": "n8n-nodes-base.if",
      "position": [
        460,
        400
      ]
    },
    {
      "id": "754f0694-c09b-46b0-9566-293889ecd68a",
      "name": "Gemini Model for Topics",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -740,
        560
      ]
    },
    {
      "id": "72976425-ebbf-4d31-97b4-898648c13b20",
      "name": "Parse AI Topic Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -500,
        560
      ]
    },
    {
      "id": "c9c8c275-31c0-4a5f-a324-c27f3c18031b",
      "name": "Split Topics",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -300,
        400
      ]
    },
    {
      "id": "424cab92-8a0a-4407-972a-b82186d600f2",
      "name": "Form: End Idea Generation",
      "type": "n8n-nodes-base.form",
      "position": [
        680,
        420
      ]
    },
    {
      "id": "f15c02d2-44a1-450e-95ee-c95445dbcafc",
      "name": "Form: End Post Generation",
      "type": "n8n-nodes-base.form",
      "position": [
        180,
        1180
      ]
    },
    {
      "id": "f25aabe7-ae32-4db9-9e37-3612a7f21a64",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        260
      ],
      "parameters": {
        "width": null,
        "height": 400,
        "content": "## Generate Topics\nWhat topics should be generated?"
      }
    },
    {
      "id": "d5a4794e-1857-421b-b33f-cc3493f55e0e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        260
      ],
      "parameters": {
        "width": null,
        "height": 380,
        "content": "## Add to Sheet\nAdd as topics for which posts have not yet been generated."
      }
    },
    {
      "id": "a8929634-52bc-414b-8301-e98fcae5e940",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        260
      ],
      "parameters": {
        "width": 220,
        "height": 380,
        "content": "## Add More?\nSelect in the form to add another 5 topics."
      }
    },
    {
      "id": "e2c3d8ad-eb78-441c-9576-082f91568131",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        260
      ],
      "parameters": {
        "width": 220,
        "height": 380,
        "content": "## Start Over or End\n"
      }
    },
    {
      "id": "ad74f19e-8811-4d2e-ba1d-b78df9ada687",
      "name": "API Settings Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1580,
        1140
      ],
      "parameters": {
        "width": 960,
        "height": 280,
        "content": "## WordPress & Pexels API Settings\nEdit settings by entering your WordPress data and Pexels API key.\n- `Search Pexels Image` node: Add Pexels API Key in Headers -> Authorization.\n- `Upload Image` & `S"
      }
    },
    {
      "id": "7f04b46b-0918-4afd-98ec-e1433f9ebdb7",
      "name": "Workflow Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1640,
        -200
      ],
      "parameters": {
        "width": 500,
        "height": 940,
        "content": "# Workflow Instructions\n\nThis workflow automates content creation, from idea generation to publishing on WordPress.\n\n**Prerequisites:**\n1.  Google Sheets account & a sheet with columns: `Date`, `Promp"
      }
    }
  ],
  "connections": {
    "Set Prompt": {
      "main": [
        [
          {
            "node": "Generate Article AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Topics": {
      "main": [
        [
          {
            "node": "Add Ideas to Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Set Featured Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Ideas to Sheet": {
      "main": [
        [
          {
            "node": "Form: Add More Topics?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Add More Topics": {
      "main": [
        [
          {
            "node": "Form: Enter Topic for Ideas",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Form: End Idea Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Featured Image": {
      "main": [
        [
          {
            "node": "Update Google Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Article AI": {
      "main": [
        [
          {
            "node": "Generate Image Keyword AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Generate Content": {
      "main": [
        [
          {
            "node": "Fetch Unprocessed Ideas",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Form: Enter Topic for Ideas",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Pexels Image": {
      "main": [
        [
          {
            "node": "Create WordPress Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Google Sheet": {
      "main": [
        [
          {
            "node": "Form: End Post Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create WordPress Post": {
      "main": [
        [
          {
            "node": "Download Pexels Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Pexels Image": {
      "main": [
        [
          {
            "node": "Upload Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Topic Output": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Blog Topics AI",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Form: Add More Topics?": {
      "main": [
        [
          {
            "node": "If Add More Topics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Unprocessed Ideas": {
      "main": [
        [
          {
            "node": "Set Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Model for Topics": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Blog Topics AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Blog Topics AI": {
      "main": [
        [
          {
            "node": "Split Topics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Model for Article": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Article AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image Keyword AI": {
      "main": [
        [
          {
            "node": "Search Pexels Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Trigger: Select Action": {
      "main": [
        [
          {
            "node": "If Generate Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form: Enter Topic for Ideas": {
      "main": [
        [
          {
            "node": "Generate Blog Topics AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Model for Image Keyword": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Image Keyword AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}