8
n8n 中文网amn8n.com

WordPress自动从RSS发布

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 53 个节点。主要使用 If, Set, Code, Merge, Filter 等节点。 使用Groq AI和Pexels图像从Reddit RSS自动生成WordPress博客文章

前置要求
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "k31vUpT7zr7jkuju",
  "meta": {
    "instanceId": "2eeb2b8f25db5870b79355d99a6203f1dab3ab62d7ed96cb4b3cd87e0f6077be",
    "templateCredsSetupCompleted": true
  },
  "name": "Wordpress 自动从 RSS 发布",
  "tags": [],
  "nodes": [
    {
      "id": "e8f44abf-e994-4f10-b9e9-599ba325e062",
      "name": "通过 AI 创建文章数据",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "2b77ce9f-13e2-4b7d-a163-497d85ea8208",
              "name": "title",
              "type": "string",
              "value": "={{ $json.output.title }}"
            },
            {
              "id": "4ff99c65-b7b0-4d8f-9680-1fff9236dcdd",
              "name": "content",
              "type": "string",
              "value": "={{ $json.output.content }}"
            },
            {
              "id": "9be5a4a8-28f8-4356-9480-e45d27c9524a",
              "name": "category",
              "type": "string",
              "value": "={{ $json.output.category }}"
            },
            {
              "id": "b399f9e4-a19a-4acf-a3e3-4f2eb7f19020",
              "name": "tags",
              "type": "array",
              "value": "={{ $json.output.tag }}"
            },
            {
              "id": "cc7de1f2-fd0f-4929-866f-f6638be3aacb",
              "name": "image_search_keyword",
              "type": "string",
              "value": "={{ $json.output.image_search_keyword }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "f15a5c8d-98be-48c7-a3f8-969b688bed01",
      "name": "Pexels HTTP 请求图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        0
      ],
      "parameters": {
        "url": "https://api.pexels.com/v1/search",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "query",
              "value": "={{ $json.image_search_keyword }}"
            },
            {
              "name": "per_page",
              "value": "1"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "OyhMmrnyuBPBOO4M",
          "name": "Pexel Header Auth For Images"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "c6abc1f9-3def-4ac2-be82-0bcd97176c33",
      "name": "Pexel 错误判断",
      "type": "n8n-nodes-base.if",
      "position": [
        780,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "3fbf57aa-2821-4343-95a2-ce05e9b6f4a3",
              "operator": {
                "type": "array",
                "operation": "empty",
                "singleValue": true
              },
              "leftValue": "={{ $json.photos }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "622675eb-d62c-4e13-b783-bc81c7a48f14",
      "name": "空值时 Pexels HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1160,
        -200
      ],
      "parameters": {
        "url": "https://api.pexels.com/v1/search",
        "options": {},
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "query",
              "value": "=ai"
            },
            {
              "name": "per_page",
              "value": "1"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "OyhMmrnyuBPBOO4M",
          "name": "Pexel Header Auth For Images"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0b1edd07-c833-4e44-bd1f-0ca44e737433",
      "name": "Pexel 合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        1500,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "22518c66-f65b-4d0e-8c45-f4b0e484f7fa",
      "name": "Pexel 图片链接",
      "type": "n8n-nodes-base.set",
      "position": [
        1720,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "08edec66-9d1d-4e08-b402-34c11ab3042f",
              "name": "Photo Landscape",
              "type": "string",
              "value": "={{ $json.photos[0].src.landscape }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "d085a786-c349-4ca2-bec3-04ce6aba2d81",
      "name": "WP 创建分类",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        1940,
        0
      ],
      "parameters": {
        "url": "https://yt.iranjankumar.com/wp-json/wp/v2/categories",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "name",
              "value": "={{ $('Create Post Data From AI').item.json.category }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "834787e7-63b2-479b-935d-a4221644e19f",
      "name": "分类 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        3200,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "45b8961f-b94d-4be2-8ecb-6f1cf0cc524a",
              "name": "category id",
              "type": "number",
              "value": "={{ $json.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "f49ed328-0f40-489c-9d15-06df478f75cb",
      "name": "分类搜索",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        2480,
        200
      ],
      "parameters": {
        "url": "=https://yt.iranjankumar.com/wp-json/wp/v2/categories?search={{ $('Create Post Data From AI').item.json.category }}",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "5b3603d9-d06d-4a96-b604-39fb930cfe86",
      "name": "分类合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        3000,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "d214a4ec-ca83-4868-8807-ded677547940",
      "name": "WP 创建标签1",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        3480,
        0
      ],
      "parameters": {
        "url": "https://yt.iranjankumar.com/wp-json/wp/v2/tags",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "name",
              "value": "={{ $('Create Post Data From AI').item.json.tags[0] }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "95d42aeb-7be3-437a-ae6a-1a4d79783a63",
      "name": "分类切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        2160,
        0
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "bbc751f4-668f-42ce-8648-ad32f7a7eb4a",
                    "operator": {
                      "type": "number",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "4364e900-1980-4afc-b673-aa3f655c1d85",
                    "operator": {
                      "type": "number",
                      "operation": "notExists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "92a8985c-f4db-4982-8b93-32a3bc294f04",
      "name": "标签1搜索",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        4120,
        340
      ],
      "parameters": {
        "url": "=https://yt.iranjankumar.com/wp-json/wp/v2/tags?search={{ $('Create Post Data From AI').item.json.tags[0] }}",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "bb6217b5-e0a5-4629-b57f-607a413d921e",
      "name": "分类过滤",
      "type": "n8n-nodes-base.filter",
      "position": [
        2740,
        200
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "096b866a-e670-4232-914e-cb712ea7a218",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.name }}",
              "rightValue": "={{ $('Create Post Data From AI').item.json.category }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "8e8e670e-1fb7-4525-bd03-221a40ce57e6",
      "name": "标签1切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        3820,
        0
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "bbc751f4-668f-42ce-8648-ad32f7a7eb4a",
                    "operator": {
                      "type": "number",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "4364e900-1980-4afc-b673-aa3f655c1d85",
                    "operator": {
                      "type": "number",
                      "operation": "notExists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "1331d0b8-fd6d-4ff3-9631-d20fb8d880d8",
      "name": "标签1过滤",
      "type": "n8n-nodes-base.filter",
      "position": [
        4500,
        340
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "096b866a-e670-4232-914e-cb712ea7a218",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.name }}",
              "rightValue": "={{ $('Create Post Data From AI').item.json.tags[0] }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "69ae89e6-820d-45a6-a4ec-35f1d1f0a95e",
      "name": "标签1合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        4820,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "8b94efd9-88a1-40d9-a243-d798b5db6342",
      "name": "标签1 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        5140,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "45b8961f-b94d-4be2-8ecb-6f1cf0cc524a",
              "name": "Tag 1 id",
              "type": "number",
              "value": "={{ $json.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3ae6eb7a-a820-4425-9524-0b7f09504f5c",
      "name": "WP 创建标签2",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        5480,
        0
      ],
      "parameters": {
        "url": "https://yt.iranjankumar.com/wp-json/wp/v2/tags",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "name",
              "value": "={{ $('Create Post Data From AI').item.json.tags[1] }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b9708c57-fcb4-4a76-be06-0fb30963d470",
      "name": "标签2切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        5820,
        0
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "bbc751f4-668f-42ce-8648-ad32f7a7eb4a",
                    "operator": {
                      "type": "number",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "4364e900-1980-4afc-b673-aa3f655c1d85",
                    "operator": {
                      "type": "number",
                      "operation": "notExists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "ff944c40-c61f-4de4-9ef8-8bb434f0d206",
      "name": "标签2搜索",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        6120,
        340
      ],
      "parameters": {
        "url": "=https://yt.iranjankumar.com/wp-json/wp/v2/tags?search={{ $('Create Post Data From AI').item.json.tags[1] }}",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "bcbd49e3-6eac-4a31-b829-96e2015975c1",
      "name": "标签2过滤",
      "type": "n8n-nodes-base.filter",
      "position": [
        6500,
        340
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "096b866a-e670-4232-914e-cb712ea7a218",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.name }}",
              "rightValue": "={{ $('Create Post Data From AI').item.json.tags[1] }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "2700fa7d-26ff-4ae4-9bbf-f517710f4ac3",
      "name": "标签2合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        6820,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "b8e3083c-0d75-4076-9c79-d912e2bd6162",
      "name": "标签2 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        7140,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "45b8961f-b94d-4be2-8ecb-6f1cf0cc524a",
              "name": "Tag 2 id",
              "type": "number",
              "value": "={{ $json.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "e62fc5e5-674f-4334-af6e-1a6a6675ee75",
      "name": "WP 创建标签3",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        7380,
        0
      ],
      "parameters": {
        "url": "https://yt.iranjankumar.com/wp-json/wp/v2/tags",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "name",
              "value": "={{ $('Create Post Data From AI').item.json.tags[2] }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b187def9-c62a-41c0-8540-2aa6fbf7f3a9",
      "name": "标签3切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        7720,
        0
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "bbc751f4-668f-42ce-8648-ad32f7a7eb4a",
                    "operator": {
                      "type": "number",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "4364e900-1980-4afc-b673-aa3f655c1d85",
                    "operator": {
                      "type": "number",
                      "operation": "notExists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "eac29116-6a3c-42c6-a8a9-f1d468e291a3",
      "name": "标签3搜索",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        8020,
        340
      ],
      "parameters": {
        "url": "=https://yt.iranjankumar.com/wp-json/wp/v2/tags?search={{ $('Create Post Data From AI').item.json.tags[2] }}",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "c693bbc1-227a-4633-8b59-ec9bc7a08476",
      "name": "标签3过滤",
      "type": "n8n-nodes-base.filter",
      "position": [
        8400,
        340
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "096b866a-e670-4232-914e-cb712ea7a218",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.name }}",
              "rightValue": "={{ $('Create Post Data From AI').item.json.tags[2] }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "1293482a-c27d-41ef-99e4-8fdb95b1975c",
      "name": "标签3合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        8720,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "dd6da282-b47d-4908-a4ae-d0197717e0eb",
      "name": "标签3 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        9040,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "45b8961f-b94d-4be2-8ecb-6f1cf0cc524a",
              "name": "Tag 3 id",
              "type": "number",
              "value": "={{ $json.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "645f67f2-a328-4dda-85bf-069f525ccc8b",
      "name": "WP 创建标签4",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        9280,
        0
      ],
      "parameters": {
        "url": "https://yt.iranjankumar.com/wp-json/wp/v2/tags",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "name",
              "value": "={{ $('Create Post Data From AI').item.json.tags[3] }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "3b77ddc0-899a-41ed-991f-58132ffd11d2",
      "name": "标签4切换",
      "type": "n8n-nodes-base.switch",
      "position": [
        9620,
        0
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "bbc751f4-668f-42ce-8648-ad32f7a7eb4a",
                    "operator": {
                      "type": "number",
                      "operation": "exists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            },
            {
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "4364e900-1980-4afc-b673-aa3f655c1d85",
                    "operator": {
                      "type": "number",
                      "operation": "notExists",
                      "singleValue": true
                    },
                    "leftValue": "={{ $json.id }}",
                    "rightValue": ""
                  }
                ]
              }
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "95916b29-65d3-4b8d-8940-7bcb0c7d9c7c",
      "name": "标签4搜索",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        9920,
        340
      ],
      "parameters": {
        "url": "=https://yt.iranjankumar.com/wp-json/wp/v2/tags?search={{ $('Create Post Data From AI').item.json.tags[3] }}",
        "options": {},
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "b802a647-2e8e-4363-8d80-66194e0cde4c",
      "name": "标签4过滤",
      "type": "n8n-nodes-base.filter",
      "position": [
        10300,
        340
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "096b866a-e670-4232-914e-cb712ea7a218",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.name }}",
              "rightValue": "={{ $('Create Post Data From AI').item.json.tags[3] }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "1603b577-1ba7-48c0-96fb-69d44f79c4c6",
      "name": "标签4合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        10620,
        0
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "9ae2d32f-2988-4335-94fa-bbb4316c8750",
      "name": "标签4 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        10940,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "45b8961f-b94d-4be2-8ecb-6f1cf0cc524a",
              "name": "Tag 4 id",
              "type": "number",
              "value": "={{ $json.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "4ca513c9-62ae-443b-9478-70ada46f91e5",
      "name": "创建文章数据",
      "type": "n8n-nodes-base.set",
      "position": [
        11160,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "aa611f11-bfa7-47af-bcce-24366905f78e",
              "name": "title",
              "type": "string",
              "value": "={{ $('Create Post Data From AI').item.json.title }}"
            },
            {
              "id": "a8160930-2acb-4af4-a158-f7757a34c0f5",
              "name": "content",
              "type": "string",
              "value": "={{ $('Create Post Data From AI').item.json.content }}"
            },
            {
              "id": "d5c6a651-71ec-4201-be55-999ba7de6790",
              "name": "category id",
              "type": "number",
              "value": "={{ $('Category ID').item.json['category id'] }}"
            },
            {
              "id": "94c55328-dab7-4782-989e-56e7a86eabb7",
              "name": "Tag 1 id",
              "type": "number",
              "value": "={{ $('Tag 1 ID').item.json['Tag 1 id'] }}"
            },
            {
              "id": "69623581-0279-45ab-8bb3-a5ca5ab9007a",
              "name": "Tag 2 id",
              "type": "number",
              "value": "={{ $('Tag 2 ID').item.json['Tag 2 id'] }}"
            },
            {
              "id": "d0672775-4605-4c73-b9e3-ad6ea3540c9d",
              "name": "Tag 3 id",
              "type": "number",
              "value": "={{ $('Tag 3 ID').item.json['Tag 3 id'] }}"
            },
            {
              "id": "77c66569-d663-4a2c-8863-d85afd8313ea",
              "name": "Tag 4 id",
              "type": "number",
              "value": "={{ $json['Tag 4 id'] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "8d74981a-9aef-41fd-b5c9-28eadbb1605d",
      "name": "创建帖子",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        11420,
        0
      ],
      "parameters": {
        "title": "={{ $json.title }}",
        "additionalFields": {
          "tags": "={{ [$json['Tag 1 id'], $json['Tag 2 id'], $json['Tag 3 id'], $json['Tag 4 id']] }}",
          "status": "draft",
          "content": "={{ $json.content }}",
          "authorId": 1,
          "categories": "={{ [$json['category id']] }}"
        }
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "cc895447-33a0-42dd-bab0-c331de847218",
      "name": "文章 ID",
      "type": "n8n-nodes-base.set",
      "position": [
        11640,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "4a7905b0-4861-4432-a75e-e49d64377ad7",
              "name": "Post id",
              "type": "number",
              "value": "={{ $json.id }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "9809f25a-b1ef-45c0-b0f8-ce655d25fe1f",
      "name": "Pexel 图片下载",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        12080,
        0
      ],
      "parameters": {
        "url": "={{ $('Pexel Image Url').item.json['Photo Landscape'] }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "2a5f5652-e56a-45bf-a82d-5587418662c7",
      "name": "图片上传至 Wordpress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        12300,
        0
      ],
      "parameters": {
        "url": "https://yt.iranjankumar.com/wp-json/wp/v2/media",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "binaryData",
        "sendHeaders": true,
        "authentication": "predefinedCredentialType",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Disposition",
              "value": "=attachment; filename=\"{{ $('Slug Generator').item.json.slug }}.jpg\""
            }
          ]
        },
        "inputDataFieldName": "data",
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "576776cb-9fbd-4a74-b639-29a3aaafcff7",
      "name": "Slug 生成器",
      "type": "n8n-nodes-base.code",
      "position": [
        11860,
        0
      ],
      "parameters": {
        "jsCode": "// Get the JSON data from the first incoming item\nconst item = $('Create Post Data').first().json.title;\n\n// Get the title from the item, or use an empty string if it doesn't exist\nconst title = item  || 'iranjankumar ai';\n\n// Generate the slug\nconst slug = title\n  .toLowerCase() // Convert to lowercase\n  .trim() // Remove whitespace from both ends\n  .replace(/[^\\w\\s-]/g, '') // Remove all non-word chars except spaces and hyphens\n  .replace(/[\\s_-]+/g, '-') // Replace spaces and underscores with a single hyphen\n  .replace(/^-+|-+$/g, ''); // Remove leading/trailing hyphens\n\n// Return the new slug in the correct n8n format\nreturn [{\n  json: {\n    slug: slug\n  }\n}];"
      },
      "typeVersion": 2
    },
    {
      "id": "bbbf91ab-b58b-459d-82d2-674b6b20cb24",
      "name": "设置图片替代文本和描述",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        12520,
        0
      ],
      "parameters": {
        "url": "=https://yt.iranjankumar.com/wp-json/wp/v2/media/{{ $json.id }}",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "alt_text",
              "value": "={{ $('Create Post Data').item.json.title }}"
            },
            {
              "name": "description",
              "value": "={{ $('Create Post Data').item.json.title }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "31dfb3ae-096f-4063-9317-d24aaf28d631",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        12740,
        0
      ],
      "parameters": {
        "url": "=https://yt.iranjankumar.com/wp-json/wp/v2/posts/{{ $('Post ID').item.json['Post id'] }}",
        "method": "POST",
        "options": {},
        "sendQuery": true,
        "authentication": "predefinedCredentialType",
        "queryParameters": {
          "parameters": [
            {
              "name": "featured_media",
              "value": "={{ $json.id }}"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "9fe16076-c302-4a33-9cae-4b63eb9e4f54",
      "name": "更新文章",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        12960,
        0
      ],
      "parameters": {
        "postId": "={{ $('Post ID').item.json['Post id'] }}",
        "operation": "update",
        "updateFields": {
          "status": "publish"
        }
      },
      "credentials": {
        "wordpressApi": {
          "id": "6OdQVVINLTgY3SCq",
          "name": "yt wp"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "35eae1eb-1670-49f5-a89d-40862ba8efc0",
      "name": "RSS 订阅源触发器",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -1400,
        -320
      ],
      "parameters": {
        "feedUrl": "https://www.reddit.com/r/artificial/.rss",
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7afef122-7428-4833-8684-49fb554afaec",
      "name": "Groq 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        -540,
        320
      ],
      "parameters": {
        "model": "llama3-70b-8192",
        "options": {}
      },
      "credentials": {
        "groqApi": {
          "id": "3rbhHVwS7rnO7gte",
          "name": "Groq account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8cddee8e-1452-4294-a29d-0fdaa890c2dc",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -160,
        280
      ],
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"title\": {\n      \"type\": \"string\"\n    },\n    \"content\": {\n      \"type\": \"string\"\n    },\n    \"category\": {\n      \"type\": \"string\"\n    },\n    \"tag\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"image_search_keyword\": {\n      \"type\": \"string\"\n    }\n  },\n  \"required\": [\"title\", \"content\", \"category\", \"tag\", \"image_search_keyword\"]\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "d3946552-45e5-4841-827a-df942d165094",
      "name": "RSS 订阅源触发器1",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -1420,
        -80
      ],
      "parameters": {
        "feedUrl": "https://www.reddit.com/r/MachineLearning/.rss",
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "3f96b386-c3ab-4b57-85e2-32e7e6344ef8",
      "name": "RSS 订阅源触发器2",
      "type": "n8n-nodes-base.rssFeedReadTrigger",
      "position": [
        -1360,
        200
      ],
      "parameters": {
        "feedUrl": "https://www.reddit.com/r/ArtificialInteligence/.rss",
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "10c19fb9-00ce-4e4d-939c-24ac23dd11f6",
      "name": "触发器合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        -900,
        0
      ],
      "parameters": {
        "numberInputs": 3
      },
      "typeVersion": 3.2
    },
    {
      "id": "7cb3c8d4-e761-4622-8c0a-95d293e6c55c",
      "name": "AI",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -460,
        0
      ],
      "parameters": {
        "text": "=Reddit Post:\nReddit Title: {{ $json.title }}\nand\nReddit Content: {{ $json.content }}",
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "You are a content writer helping to create a blog post for WordPress site.\n\nHere's your task:\nUsing the following Reddit post as inspiration, write a full blog article. The tone should be friendly, personal, and natural — like you're talking to a curious friend over coffee.\n\nGoal:\nTurn the reddit post data into an engaging blog post that would perform well on Medium or similar platforms. Give a catchy title too.\n\nWrite using these style rules:\n\n* **Use clear, everyday language:** Simple words. Short sentences. Write like a human, not a robot.\n* **No clichés or hype words:** Avoid terms like \"game-changer\" or \"revolutionize.\" Just be real.\n* **Be direct:** Get to the point fast. Cut the fluff.\n* **Use a natural voice:** It's okay to start sentences with \"But\" or \"So.\" Write like you speak.\n* **Focus on value:** Don't oversell. Instead, explain the benefit honestly.\n* **Be human:** Don't fake excitement. Just share what's interesting, surprising, or useful.\n* **Light structure:** Use short paragraphs, subheadings, and maybe a few bullet points.\n* **Emotion + story welcome:** Share small stories or examples if it helps explain the point.\n* **Title must be catchy and relevant.**\n\nImportant Note:\nSometimes the post might not include much content — maybe it’s just a short sentence or like only one line. In such cases, don't just put what's given. Instead, use the **title as the main inspiration** and create an engaging blog post based on what the title *suggests*. You can also expand with general knowledge, relevant context, helpful explanations, or personal-style opinions — whatever makes it feel thoughtful and useful to a reader. Imagine you're filling in the gaps with your own voice and insights.\n\nAvoid:\n- Robotic or overly formal tone\n- Long, dense paragraphs\n- Generic summaries or filler content\n\nDo:\n- Write in first person if it makes sense\n- Use contractions (\"I'm\", \"it's\", etc.)\n- Keep it scannable and interesting\n\nStart with a headline, then dive right into the story or explanation.\n\nNow go ahead and write the blog post.\n\nThese are the things I need:\n1. Title\n2. Content\n3. Category: A String\n4. Tags: A array of 4 tags\n5. Image Search Keyword\n\nI think you know about categories and tags, but let me explain what an image search keyword is, as you might be confused. Basically, I am using the Pexels API, which provides images based on a search keyword. I need to use this keyword to fetch images. I just wanted to make sure you understand this.\n\nImportant: Do not add anything before or after, start with json and end with json.\n\nAn Example Output: {\n \"title\": \"What's New with OpenAI's ChatGPT Agent and the Windsurf Shuffle?\",\n \"content\": \"Hey, have you heard about OpenAI's latest ChatGPT Agent? It's kind of wild. This isn't just another chatbot anymore — this agent can actually control your whole computer and help you get stuff done. Think about telling it to open programs, organize files, or even handle some tasks that usually take a bunch of clicking and typing. It basically acts like a digital assistant that lives inside your computer.\\n\\nNow, I've been keeping an eye on how AI tools are evolving, and this feels like a neat step in making them more practical for everyday use. No more copy-pasting or juggling tabs; you just tell the agent what you want, and it goes for it.\\n\\nOn a different note, there's some interesting news about Windsurf — the company that was in talks with OpenAI. Turns out that deal fell through, and Windsurf's CEO is heading over to Google instead. It's always intriguing to see how these tech shifts happen behind the scenes.\\n\\nWhy does this matter? Well, these moves often hint at where the big players are focusing their energy next. The AI world is moving fast, and knowing where companies are investing their talent can clue us in on upcoming tools or trends.\\n\\nIf you're curious about how AI agents like ChatGPT could change your workflow or just want to stay in the loop about what's going on with AI startups, this is a good moment to pay attention. And who knows? Maybe soon these tools will be part of our daily routine, helping us out in ways that feel natural and easy.\\n\\nOh, and if you want to dig deeper, there's an episode from the LWiAI Podcast (#217) that covers all this and more. It's a solid listen if you like getting the scoop straight from the source.\\n\\nSo, what do you think? Would you feel comfortable letting an AI agent take control of parts of your computer? I'm still on the fence but definitely interested in seeing how it all plays out.\",\n \"category\": \"Technology\",\n \"tag\": [\n   \"OpenAI\",\n   \"ChatGPT\",\n   \"AI Agents\",\n   \"Tech News\"\n ],\n \"image_search_keyword\": \"AI assistant on computer\"\n}\n"
            }
          ]
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.7
    },
    {
      "id": "4811dae1-7be3-487e-a479-2a01265b25bf",
      "name": "AI ChatGPT",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "disabled": true,
      "position": [
        -540,
        700
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o",
          "cachedResultName": "GPT-4O"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "=Reddit Post:\nReddit Title: {{ $json.title }}\nand\nReddit Content: {{ $json.content }}"
            },
            {
              "role": "system",
              "content": "You are a content writer helping to create a blog post for WordPress site.\n\nHere's your task:\nUsing the following Reddit post as inspiration, write a full blog article. The tone should be friendly, personal, and natural — like you're talking to a curious friend over coffee.\n\nGoal:\nTurn the reddit post data into an engaging blog post that would perform well on Medium or similar platforms. Give a catchy title too.\n\nWrite using these style rules:\n\n* **Use clear, everyday language:** Simple words. Short sentences. Write like a human, not a robot.\n* **No clichés or hype words:** Avoid terms like \"game-changer\" or \"revolutionize.\" Just be real.\n* **Be direct:** Get to the point fast. Cut the fluff.\n* **Use a natural voice:** It's okay to start sentences with \"But\" or \"So.\" Write like you speak.\n* **Focus on value:** Don't oversell. Instead, explain the benefit honestly.\n* **Be human:** Don't fake excitement. Just share what's interesting, surprising, or useful.\n* **Light structure:** Use short paragraphs, subheadings, and maybe a few bullet points.\n* **Emotion + story welcome:** Share small stories or examples if it helps explain the point.\n* **Title must be catchy and relevant.**\n\nImportant Note:\nSometimes the post might not include much content — maybe it’s just a short sentence or like only one line. In such cases, don't just put what's given. Instead, use the **title as the main inspiration** and create an engaging blog post based on what the title *suggests*. You can also expand with general knowledge, relevant context, helpful explanations, or personal-style opinions — whatever makes it feel thoughtful and useful to a reader. Imagine you're filling in the gaps with your own voice and insights.\n\nAvoid:\n- Robotic or overly formal tone\n- Long, dense paragraphs\n- Generic summaries or filler content\n\nDo:\n- Write in first person if it makes sense\n- Use contractions (\"I'm\", \"it's\", etc.)\n- Keep it scannable and interesting\n\nStart with a headline, then dive right into the story or explanation.\n\nNow go ahead and write the blog post.\n\nThese are the things I need:\n1. Title\n2. Content\n3. Category: A String\n4. Tags: A array of 4 tags\n5. Image Search Keyword\n\nI think you know about categories and tags, but let me explain what an image search keyword is, as you might be confused. Basically, I am using the Pexels API, which provides images based on a search keyword. I need to use this keyword to fetch images. I just wanted to make sure you understand this.\n\nImportant: Do not add anything before or after, start with json and end with json.\n\nA Example Output: {\n\"title\": \n\"What’s New with OpenAI’s ChatGPT Agent and the Windsurf Shuffle?\",\n\"content\": \n\"Hey, have you heard about OpenAI's latest ChatGPT Agent? It's kind of wild. This isn't just another chatbot anymore — this agent can actually control your whole computer and help you get stuff done. Think about telling it to open programs, organize files, or even handle some tasks that usually take a bunch of clicking and typing. It basically acts like a digital assistant that lives inside your computer.\\n\\nNow, I’ve been keeping an eye on how AI tools are evolving, and this feels like a neat step in making them more practical for everyday use. No more copy-pasting or juggling tabs; you just tell the agent what you want, and it goes for it.\\n\\nOn a different note, there’s some interesting news about Windsurf — the company that was in talks with OpenAI. Turns out that deal fell through, and Windsurf’s CEO is heading over to Google instead. It’s always intriguing to see how these tech shifts happen behind the scenes.\\n\\nWhy does this matter? Well, these moves often hint at where the big players are focusing their energy next. The AI world is moving fast, and knowing where companies are investing their talent can clue us in on upcoming tools or trends.\\n\\nIf you’re curious about how AI agents like ChatGPT could change your workflow or just want to stay in the loop about what’s going on with AI startups, this is a good moment to pay attention. And who knows? Maybe soon these tools will be part of our daily routine, helping us out in ways that feel natural and easy.\\n\\nOh, and if you want to dig deeper, there’s an episode from the LWiAI Podcast (#217) that covers all this and more. It’s a solid listen if you like getting the scoop straight from the source.\\n\\nSo, what do you think? Would you feel comfortable letting an AI agent take control of parts of your computer? I’m still on the fence but definitely interested in seeing how it all plays out.\",\n\"category\": \n\"Technology\",\n\"tag\": \n[\n\"OpenAI\",\n\"ChatGPT\",\n\"AI Agents\",\n\"Tech News\"\n],\n\"image_search_keyword\": \n\"AI assistant on computer\"\n}\n"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "id": "UkE4qgMwSCSnI40i",
          "name": "pink R"
        }
      },
      "typeVersion": 1.8
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "timezone": "Asia/Kolkata",
    "callerPolicy": "workflowsFromSameOwner",
    "executionOrder": "v1"
  },
  "versionId": "b8c4663a-904e-45f5-80f7-cfb6f0f8e723",
  "connections": {
    "AI": {
      "main": [
        [
          {
            "node": "Create Post Data From AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post ID": {
      "main": [
        [
          {
            "node": "Slug Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 1 ID": {
      "main": [
        [
          {
            "node": "WP Make Tag 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 2 ID": {
      "main": [
        [
          {
            "node": "WP Make Tag 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 3 ID": {
      "main": [
        [
          {
            "node": "WP Make Tag 4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 4 ID": {
      "main": [
        [
          {
            "node": "Create Post Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Category ID": {
      "main": [
        [
          {
            "node": "WP Make Tag 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pexel Merge": {
      "main": [
        [
          {
            "node": "Pexel Image Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 1 Merge": {
      "main": [
        [
          {
            "node": "Tag 1 ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 2 Merge": {
      "main": [
        [
          {
            "node": "Tag 2 ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 3 Merge": {
      "main": [
        [
          {
            "node": "Tag 3 ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 4 Merge": {
      "main": [
        [
          {
            "node": "Tag 4 ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Update a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pexel Err If": {
      "main": [
        [
          {
            "node": "Pexels HTTP Request on Empty",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Pexel Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Tag 1 Filter": {
      "main": [
        [
          {
            "node": "Tag 1 Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Tag 1 Search": {
      "main": [
        [
          {
            "node": "Tag 1 Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 1 Switch": {
      "main": [
        [
          {
            "node": "Tag 1 Merge",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tag 1 Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 2 Filter": {
      "main": [
        [
          {
            "node": "Tag 2 Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Tag 2 Search": {
      "main": [
        [
          {
            "node": "Tag 2 Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 2 Switch": {
      "main": [
        [
          {
            "node": "Tag 2 Merge",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tag 2 Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 3 Filter": {
      "main": [
        [
          {
            "node": "Tag 3 Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Tag 3 Search": {
      "main": [
        [
          {
            "node": "Tag 3 Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 3 Switch": {
      "main": [
        [
          {
            "node": "Tag 3 Merge",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tag 3 Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 4 Filter": {
      "main": [
        [
          {
            "node": "Tag 4 Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Tag 4 Search": {
      "main": [
        [
          {
            "node": "Tag 4 Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tag 4 Switch": {
      "main": [
        [
          {
            "node": "Tag 4 Merge",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Tag 4 Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a post": {
      "main": [
        [
          {
            "node": "Post ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WP Make Tag 1": {
      "main": [
        [
          {
            "node": "Tag 1 Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WP Make Tag 2": {
      "main": [
        [
          {
            "node": "Tag 2 Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WP Make Tag 3": {
      "main": [
        [
          {
            "node": "Tag 3 Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WP Make Tag 4": {
      "main": [
        [
          {
            "node": "Tag 4 Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Category Merge": {
      "main": [
        [
          {
            "node": "Category ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slug Generator": {
      "main": [
        [
          {
            "node": "Pexel Image Download",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Triggers Merge": {
      "main": [
        [
          {
            "node": "AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Category Filter": {
      "main": [
        [
          {
            "node": "Category Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Category Search": {
      "main": [
        [
          {
            "node": "Category Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Category Switch": {
      "main": [
        [
          {
            "node": "Category Merge",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Category Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Pexel Image Url": {
      "main": [
        [
          {
            "node": "WP Make Category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Post Data": {
      "main": [
        [
          {
            "node": "Create a post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed Trigger": {
      "main": [
        [
          {
            "node": "Triggers Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WP Make Category": {
      "main": [
        [
          {
            "node": "Category Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed Trigger1": {
      "main": [
        [
          {
            "node": "Triggers Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "RSS Feed Trigger2": {
      "main": [
        [
          {
            "node": "Triggers Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Pexel Image Download": {
      "main": [
        [
          {
            "node": "Image Upload To Wordpress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Post Data From AI": {
      "main": [
        [
          {
            "node": "Pexels HTTP Request image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Image Upload To Wordpress": {
      "main": [
        [
          {
            "node": "Set alt text and description to image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pexels HTTP Request image": {
      "main": [
        [
          {
            "node": "Pexel Err If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pexels HTTP Request on Empty": {
      "main": [
        [
          {
            "node": "Pexel Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set alt text and description to image": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量53
分类2
节点类型13
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Ranjan Kumar

Ranjan Kumar

@iamranjank09

Hey, I’m Ranjan Kumar — I build smart, AI-powered workflows with n8n to automate tasks, save time, and simplify daily work. I enjoy combining tools like Groq, OpenAI, WordPress, etc. to create powerful no-code/low-code automations. Whether it’s content creation or API integration, I focus on making workflows that are easy to use, practical, and ready to plug into your stack. Sharing real-world automations to help others work smarter, not harder.

外部链接
在 n8n.io 查看

分享此工作流