{
  "name": "Create and publish SEO blog posts using Google Sheets, Gemini/OpenAI, Ideogram, and WordPress",
  "nodes": [
    {
      "id": "3bbfc73f-a79e-47a4-8f74-08a71da79ff5",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -160,
        432
      ]
    },
    {
      "id": "0b88a86a-2533-474a-9dcf-dbb538f19454",
      "name": "Image Prompt Generator1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2048,
        592
      ]
    },
    {
      "id": "4155f7df-5420-4ce0-8844-d62519e37a73",
      "name": "Google Gemini Chat Model6",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3680,
        480
      ]
    },
    {
      "id": "4217d275-0538-4eac-91b0-e5831447b223",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2112,
        480
      ]
    },
    {
      "id": "371f9278-6c18-4e22-b42a-1ba33bd47f06",
      "name": "DeepSeek Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "position": [
        2336,
        576
      ]
    },
    {
      "id": "ab74fc63-afb7-437a-841d-222848d979c0",
      "name": "Blog and Photo Merge1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3680,
        208
      ]
    },
    {
      "id": "8ff53c67-8af7-42a3-a97c-65b625a83f8d",
      "name": "Aggregate1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        3536,
        208
      ]
    },
    {
      "id": "eb43e804-ef6f-4c75-93bd-e511928b1a80",
      "name": "Google Gemini Chat Model For Content Writing1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        336,
        416
      ]
    },
    {
      "id": "c9af9c79-be7b-428a-943a-7511422fea86",
      "name": "Thumbnail Image Generator1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2400,
        144
      ]
    },
    {
      "id": "c9168cbf-fc6c-42d5-aee4-2e230ac03941",
      "name": "Blog Image Generator1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2400,
        320
      ]
    },
    {
      "id": "c720a6ff-a39b-4b41-a019-0d73ee8b8a1d",
      "name": "Blog Image Binary Conversion1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2608,
        320
      ]
    },
    {
      "id": "db5f49be-e160-4cdc-8cb4-b8fe36cd1b07",
      "name": "Thumbnail Image Binary Conversion1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2608,
        144
      ]
    },
    {
      "id": "6bdda80e-5ad7-4cec-99fc-8e38349f3d92",
      "name": "Thumbnail Uploading1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2816,
        144
      ]
    },
    {
      "id": "8240846d-473f-4c80-b875-431c665ce3ac",
      "name": "Blog Image Uploading1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2816,
        320
      ]
    },
    {
      "id": "a7735c8d-bc4a-4f9a-b35d-323885664c56",
      "name": "Add Alt Text in Blog Image1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3008,
        320
      ]
    },
    {
      "id": "44a6f500-c5c4-4af4-b08b-31c507aefbcd",
      "name": "Add Alt Text in Thumbnail Image1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3008,
        144
      ]
    },
    {
      "id": "4f45d9ea-5bca-44d4-88d8-796e489fe260",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1440,
        144
      ],
      "parameters": {
        "width": 352,
        "height": 144,
        "content": "### Input & Triggers\n- Starts the workflow\n- Collects initial data\n"
      }
    },
    {
      "id": "0208f2bf-a321-4a0b-8316-509cc304c805",
      "name": "If Error Existed Then Get Notified1",
      "type": "n8n-nodes-base.discord",
      "position": [
        3232,
        496
      ]
    },
    {
      "id": "3e51de1b-8d10-4866-82e4-47073443e8c6",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        848,
        592
      ]
    },
    {
      "id": "ac089e36-398e-4206-9453-6ff535cb9588",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        912,
        496
      ]
    },
    {
      "id": "a6a39619-dfa0-4766-b4b9-70124a83ffaf",
      "name": "If Error Existed Then Get Notified",
      "type": "n8n-nodes-base.discord",
      "position": [
        1808,
        560
      ]
    },
    {
      "id": "8f8717db-3f07-4b77-9755-f1f07bda3058",
      "name": "Schedule_Publish",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1440,
        240
      ]
    },
    {
      "id": "413c6cd3-4c58-4633-9dc5-a0b1b5bb466e",
      "name": "Get_Post_Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1184,
        240
      ]
    },
    {
      "id": "2f03a7f9-7808-4084-b3c1-5f97e4017219",
      "name": "Post_Loop",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -992,
        240
      ]
    },
    {
      "id": "5a998947-603d-4b47-8744-6e3eddc854e6",
      "name": "get_client_status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -768,
        256
      ]
    },
    {
      "id": "6030fdaf-8b08-446c-b628-919fe4b63cbb",
      "name": "client_active_check",
      "type": "n8n-nodes-base.if",
      "position": [
        -560,
        256
      ]
    },
    {
      "id": "532afaf6-4302-4d5e-9e0e-e4dfc32f1a7a",
      "name": "PBN_Website_Access",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -352,
        240
      ]
    },
    {
      "id": "f4037d90-f156-4e83-abee-3a3c62d02fe2",
      "name": "Do the Research on the Topic",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -160,
        240
      ]
    },
    {
      "id": "d26cc60e-d24d-4230-9856-7d05c848e2f4",
      "name": "sitemap_crawl( internal_linking )",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        144,
        240
      ]
    },
    {
      "id": "0a42da3a-6b1c-450e-b630-6ba3c5e9273b",
      "name": "write_content",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        336,
        240
      ]
    },
    {
      "id": "2db107e3-6697-47cc-852c-6e8a0a8657d7",
      "name": "extract_title_body",
      "type": "n8n-nodes-base.code",
      "position": [
        672,
        240
      ]
    },
    {
      "id": "bb883967-8940-4b3b-9e4b-c1b5712f519f",
      "name": "classify_category",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        848,
        240
      ]
    },
    {
      "id": "de6ffeca-c824-4108-b974-1327bb4607bb",
      "name": "get_category",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1152,
        240
      ]
    },
    {
      "id": "566a4744-d2bb-4d93-ba95-c12b23cc42cd",
      "name": "category_exists_check",
      "type": "n8n-nodes-base.if",
      "position": [
        1296,
        240
      ]
    },
    {
      "id": "46c5936b-ef6e-4169-be7d-ec03d1063a80",
      "name": "create_category",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1472,
        240
      ]
    },
    {
      "id": "1177bab6-ab6a-4929-a0f9-c4dcaeaa22b4",
      "name": "set_category_id",
      "type": "n8n-nodes-base.set",
      "position": [
        1632,
        240
      ]
    },
    {
      "id": "740ae741-fd35-4e9f-b3dc-21a6a550b59a",
      "name": "error_guard",
      "type": "n8n-nodes-base.if",
      "position": [
        1824,
        240
      ]
    },
    {
      "id": "bdb73cae-e1da-47bf-9b07-106b008782a5",
      "name": "generate_image_prompt",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2048,
        224
      ]
    },
    {
      "id": "6cb1edac-9dbd-4b0f-8749-f7ef8dfab0e2",
      "name": "merge_data",
      "type": "n8n-nodes-base.merge",
      "position": [
        3216,
        224
      ]
    },
    {
      "id": "b94ebf07-60f1-4526-b584-4b4cdde18c64",
      "name": "final_validation_check",
      "type": "n8n-nodes-base.if",
      "position": [
        3360,
        224
      ]
    },
    {
      "id": "8b84b1d9-fe04-4ab9-a915-a024e75b5eb6",
      "name": "publish_blog",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3968,
        208
      ]
    },
    {
      "id": "3a99e9ce-7848-4978-9128-35e40d9b65fd",
      "name": "save_live_url",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4128,
        208
      ]
    },
    {
      "id": "55702c08-6d87-4625-9663-8f3084a1f676",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2000,
        -128
      ],
      "parameters": {
        "width": 528,
        "height": 944,
        "content": "# Automated Blog Publishing Workflow\n\nThis workflow automates the complete blog publishing process from topic research to WordPress publication. It uses AI models to create SEO-optimized content, gene"
      }
    },
    {
      "id": "dd645f6e-4572-4117-8098-f417266c4de2",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        160
      ],
      "parameters": {
        "width": 224,
        "height": null,
        "content": "Content Research\n- Fetches URLs and keywords\n"
      }
    },
    {
      "id": "f1078687-9ca4-4a41-9cd0-eb8bbdf6766e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        128
      ],
      "parameters": {
        "width": 432,
        "height": null,
        "content": "AI Content Generation\n- Generates blog content\n"
      }
    },
    {
      "id": "70cd7bff-834a-4aa9-af63-299f77eb9398",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2048,
        96
      ],
      "parameters": {
        "width": 224,
        "height": null,
        "content": "Image Generation\n- Creates blog images\n"
      }
    }
  ],
  "connections": {
    "Post_Loop": {
      "main": [
        [],
        [
          {
            "node": "get_client_status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Blog and Photo Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "merge_data": {
      "main": [
        [
          {
            "node": "final_validation_check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "error_guard": {
      "main": [
        [
          {
            "node": "generate_image_prompt",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If Error Existed Then Get Notified",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post_Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_category": {
      "main": [
        [
          {
            "node": "category_exists_check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "publish_blog": {
      "main": [
        [
          {
            "node": "save_live_url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get_Post_Data": {
      "main": [
        [
          {
            "node": "Post_Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "save_live_url": {
      "main": [
        [
          {
            "node": "Post_Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "write_content": {
      "main": [
        [
          {
            "node": "extract_title_body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "create_category": {
      "main": [
        [
          {
            "node": "set_category_id",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "set_category_id": {
      "main": [
        [
          {
            "node": "error_guard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule_Publish": {
      "main": [
        [
          {
            "node": "Get_Post_Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "classify_category": {
      "main": [
        [
          {
            "node": "get_category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_client_status": {
      "main": [
        [
          {
            "node": "client_active_check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "classify_category",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "PBN_Website_Access": {
      "main": [
        [
          {
            "node": "Do the Research on the Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "extract_title_body": {
      "main": [
        [
          {
            "node": "classify_category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "client_active_check": {
      "main": [
        [
          {
            "node": "PBN_Website_Access",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Post_Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Thumbnail Uploading1": {
      "main": [
        [
          {
            "node": "Add Alt Text in Thumbnail Image1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Blog Image Generator1": {
      "main": [
        [
          {
            "node": "Blog Image Binary Conversion1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Blog Image Uploading1": {
      "main": [
        [
          {
            "node": "Add Alt Text in Blog Image1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Blog and Photo Merge1": {
      "main": [
        [
          {
            "node": "publish_blog",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "category_exists_check": {
      "main": [
        [
          {
            "node": "set_category_id",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "create_category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "generate_image_prompt": {
      "main": [
        [
          {
            "node": "Thumbnail Image Generator1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Blog Image Generator1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "final_validation_check": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If Error Existed Then Get Notified1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt Generator1": {
      "ai_languageModel": [
        [
          {
            "node": "generate_image_prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "classify_category",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Do the Research on the Topic",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "Blog and Photo Merge1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "generate_image_prompt",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Thumbnail Image Generator1": {
      "main": [
        [
          {
            "node": "Thumbnail Image Binary Conversion1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Alt Text in Blog Image1": {
      "main": [
        [
          {
            "node": "merge_data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Do the Research on the Topic": {
      "main": [
        [
          {
            "node": "sitemap_crawl( internal_linking )",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Blog Image Binary Conversion1": {
      "main": [
        [
          {
            "node": "Blog Image Uploading1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Alt Text in Thumbnail Image1": {
      "main": [
        [
          {
            "node": "merge_data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "sitemap_crawl( internal_linking )": {
      "main": [
        [
          {
            "node": "write_content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Error Existed Then Get Notified": {
      "main": [
        [
          {
            "node": "Post_Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Thumbnail Image Binary Conversion1": {
      "main": [
        [
          {
            "node": "Thumbnail Uploading1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Error Existed Then Get Notified1": {
      "main": [
        [
          {
            "node": "Post_Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model For Content Writing1": {
      "ai_languageModel": [
        [
          {
            "node": "write_content",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}