8
n8n 中文网amn8n.com

使用OpenAI和WordPress自动化SEO博客文章创建与发布

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 22 个节点。主要使用 If, Set, Code, Wordpress, HttpRequest 等节点。 使用OpenAI和WordPress自动化SEO博客文章创建与发布

前置要求
  • 可能需要目标 API 的认证凭证
  • Telegram Bot Token
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "a5fd400c6ce3e6fce31bb31916a9cfa04e30e08115d80423a7e69507457fa5bb"
  },
  "nodes": [
    {
      "id": "76dbfac0-fe7f-4a79-9d7a-197e57e3b642",
      "name": "主题选择器和标题生成器",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        336,
        208
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "49e846e4-bd87-4fa9-a661-b5d3ed719561",
      "name": "基础LLM链",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        688,
        208
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "bae35281-c0a5-48af-ab52-b9e62b561ec9",
      "name": "OpenAI - 生成图像",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1264,
        208
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "a6d5dba6-54da-4d26-89a5-90c5a9ee450c",
      "name": "上传图像到 WP",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1488,
        208
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "21b9f00a-4904-467d-91cb-f6f00db2e697",
      "name": "Wordpress - 设置特色图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1712,
        208
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "85afc2ca-e0d6-4c9d-80a6-258861f5176c",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        112,
        304
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d8447a15-4e04-4056-8b04-e346914c7577",
      "name": "文章生成器",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        688,
        368
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "cae1fda6-32a9-44f6-8482-833e79226cf0",
      "name": "Telegram触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -112,
        112
      ],
      "webhookId": "a9b697dc-5b4e-418c-83ed-54966ce7ea34",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b5bcfda1-7004-4465-828c-18d41423278f",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        112,
        112
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "63886a15-2045-43b1-80a6-3574134aa8e4",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "54c8e94c-0356-46ab-a4db-67c741facdda",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1344,
        512
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "279e6bce-b635-4e16-9117-e2eecbc9c1f0",
      "name": "获取",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        1040,
        208
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "da921683-2a0a-4901-80cc-59605aa3c058",
      "name": "设置有效分类",
      "type": "n8n-nodes-base.set",
      "position": [
        448,
        656
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ce40b7b2-10a1-407d-8569-8c48d9885390",
      "name": "分类映射",
      "type": "n8n-nodes-base.code",
      "position": [
        1104,
        656
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5efd463f-c52a-43b7-9fe9-4d0e2bb77a22",
      "name": "📦 格式化最终数据",
      "type": "n8n-nodes-base.set",
      "position": [
        672,
        656
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "3fa76244-7b34-4761-a01e-a72680553392",
      "name": "获取分类",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        224,
        656
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b8781242-cfbb-45e4-a066-cb84b67e914f",
      "name": "🚀 发布",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        896,
        656
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 4.2
    },
    {
      "id": "bcf19367-7d34-47f1-b023-8b5719aa6421",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        576
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d59cd82e-554c-42de-a2a6-a847b38043d0",
      "name": "元数据生成器",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        336,
        368
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cc8c2918-d179-40b6-a4e3-d67d013e7416",
      "name": "解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        480,
        368
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "beb57cbd-3c57-4c5d-8a0c-bf6ba6757e36",
      "name": "替代文本",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        832,
        368
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f180f1e1-36bb-453f-8419-7a96bea89820",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        336
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Topic Chooser and Title Maker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get": {
      "main": [
        [
          {
            "node": "OpenAI - Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Topic Chooser and Title Maker",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "Get",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Topic Chooser and Title Maker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Article Generator": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Metadata Generator": {
      "ai_languageModel": [
        [
          {
            "node": "Topic Chooser and Title Maker",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image to WP": {
      "main": [
        [
          {
            "node": "Wordpress - Set Featured Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Generate Image": {
      "main": [
        [
          {
            "node": "Upload Image to WP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Topic Chooser and Title Maker": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流