8
n8n 中文网amn8n.com

用于 WordPress 的 AI 博客内容撰写器与图片生成器

高级

这是一个AI, Marketing领域的自动化工作流,包含 41 个节点。主要使用 Set, Code, Notion, Markdown, Aggregate 等节点,结合人工智能技术实现智能自动化。 基于GPT Image 1和Perplexity的WordPress自动化博客内容创建器

前置要求
  • Notion API Key
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "QstDSb3iuluJPo9Z",
  "meta": {
    "instanceId": "740c1df6d3b1b6ea8a9d2223701f6904173f9e3cf7381cd181644b043420ba09",
    "templateCredsSetupCompleted": true
  },
  "name": "用于 WordPress 的 AI 博客内容撰写器与图片生成器",
  "tags": [
    {
      "id": "yJOJy9E45J8vdOmq",
      "name": "for selling",
      "createdAt": "2025-05-04T19:55:33.401Z",
      "updatedAt": "2025-05-04T19:55:33.401Z"
    }
  ],
  "nodes": [
    {
      "id": "56d8ef14-404e-4ac4-bc3f-ebcdc3665109",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3c5f2ac5-9beb-4d8a-8686-0c16a58b67fe",
      "name": "Wordpress",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        440,
        40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "de317131-e6c4-4870-8d15-594d16986286",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "020c42db-7808-4d5d-8ee1-e9696c5bd3e2",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1080,
        -40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "64460c3f-a952-406c-abf8-719a7331d2b2",
      "name": "清理链接",
      "type": "n8n-nodes-base.set",
      "position": [
        -760,
        40
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "064a2ff5-2e52-4e48-804f-8fd03e6e4127",
      "name": "清理 HTML",
      "type": "n8n-nodes-base.set",
      "position": [
        -20,
        40
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "67417eb3-b1b6-47e6-aeec-28ac5d1f9478",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -1700,
        240
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "8536770c-0e35-4c09-84fb-9c41575f57b4",
      "name": "获取品牌简报",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -1460,
        240
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "620a4460-7bc8-446a-861c-4914f3d17c8e",
      "name": "当点击\"测试工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2220,
        -80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cb481ba9-05c9-46e8-b08e-b33e7ecc5a8d",
      "name": "创意生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1680,
        40
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "b24a404d-ac7f-40c2-8130-ae72e5e29300",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1880,
        -40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2e04507d-12c0-494d-82bc-59f9e6e70a8b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        660
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a2531ece-71db-43ed-a49e-d467eff7ddab",
      "name": "添加WordPress摘要",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -140,
        900
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e09f1ad4-e98c-4446-af6f-252133c43493",
      "name": "摘要生成器",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -460,
        900
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "50867aeb-eecf-4554-be97-21e649ea5d27",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        660
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "727be801-a43c-45d0-a206-e4890800e36e",
      "name": "更新博客文章列表",
      "type": "n8n-nodes-base.googleSheets",
      "onError": "continueRegularOutput",
      "position": [
        400,
        900
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "2882dca1-0aa8-4d40-a53d-6d8d9d74e4d0",
      "name": "更新基础文章",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        600,
        900
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "f2271df2-a4a8-4086-a463-d737aa9cd941",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        160,
        900
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9de9e4ea-f4ba-4b28-a30c-3729b8becc1d",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2220,
        180
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9ca6e0c9-8722-4e32-a382-14d669a86ecc",
      "name": "当被其他工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -980,
        1580
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5311babf-bf00-4db1-8056-ebd26c2239cc",
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        -740,
        1580
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e6972482-e358-4937-9835-00dfadd91f2c",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -520,
        1580
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "095abb3f-3821-4966-837e-e1a43a4813bb",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -300,
        1580
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "093bd89d-a43a-42af-92c8-6f68679538fb",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1160,
        1400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "739bf9e6-0bb1-4ee2-82e7-4d4ffbad5afd",
      "name": "内容撰写器",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -400,
        40
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "6b3d10df-9320-4bee-a522-4bcbef385aab",
      "name": "OpenAI 4.1 mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -400,
        260
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "2f12b63d-3527-4a2c-badf-787ebcb4f0cf",
      "name": "OpenAI 4.1 mini2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -460,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "da75f620-2cf0-445c-8f8f-062f5ac51028",
      "name": "OpenAI 4.1 mini3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1840,
        240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "aba58514-21b3-4d3b-815b-7edde4a111d2",
      "name": "分类重写",
      "type": "n8n-nodes-base.code",
      "position": [
        -1320,
        40
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "eeb92c39-8ee8-4f86-93ba-a29d60ebdb80",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1320,
        240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d30b4c50-6d1e-4e1b-88a3-558aa66a783f",
      "name": "# 生成并保存图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1000,
        40
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "429684c9-bf1d-4818-93e8-1b6b70e87d8e",
      "name": "检查历史记录",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        -1580,
        240
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "04c3f68f-e018-4e62-8973-61c8c85eed91",
      "name": "使用 OpenAI 创建图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1160,
        760
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b0ce5b61-2a47-4e87-aac4-119cf40dc194",
      "name": "上传到 imgbb",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -940,
        760
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1e67d82b-bfc4-490c-949d-f0455878539d",
      "name": "获取图片链接",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1360,
        1060
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d80be876-4c27-4603-b1fe-1cc5b7b19341",
      "name": "上传图片到 Wordpress1",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        -1160,
        1060
      ],
      "parameters": {},
      "retryOnFail": false,
      "typeVersion": 4.2,
      "alwaysOutputData": false
    },
    {
      "id": "427e0419-052e-4bf1-a540-6d5f3dc14516",
      "name": "在 Wordpress 文章1 上设置图片",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        -960,
        1060
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "dba1badd-158a-420a-8c70-b8d0992a8b75",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        660
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a6f568c1-003c-435f-a126-7b6b2343e9c0",
      "name": "OpenAI 4.1 mini4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1500,
        940
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b4f8f40d-ecfa-4a72-9ace-d1bdcf27870a",
      "name": "编写创建图像的提示词",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -1520,
        760
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "6fd49b17-5ea8-4ee9-9827-11112e90e115",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        900,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5556b9ef-eab4-47b4-85f6-576dd4cc7a98",
  "connections": {
    "Notion": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Markdown": {
      "main": [
        [
          {
            "node": "Update list of blog post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wordpress": {
      "main": [
        [
          {
            "node": "Write prompt to create image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Idea creator": {
      "main": [
        [
          {
            "node": "Category rewrite",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check History": {
      "ai_tool": [
        [
          {
            "node": "Idea creator",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Cleanup HTML ": {
      "main": [
        [
          {
            "node": "Wordpress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cleanup Links": {
      "main": [
        [
          {
            "node": "Content writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Idea creator",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Content writer": {
      "main": [
        [
          {
            "node": "Cleanup HTML ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download image": {
      "main": [
        [
          {
            "node": "Upload Image to Wordpress1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Excerpt creator": {
      "main": [
        [
          {
            "node": "WordPress excerpt add",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI 4.1 mini": {
      "ai_languageModel": [
        [
          {
            "node": "Content writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Upload to imgbb": {
      "main": [
        [
          {
            "node": "Download image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get brand brief": {
      "ai_tool": [
        [
          {
            "node": "Idea creator",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Category rewrite": {
      "main": [
        [
          {
            "node": "Perplexity Research",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI 4.1 mini2": {
      "ai_languageModel": [
        [
          {
            "node": "Excerpt creator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI 4.1 mini3": {
      "ai_languageModel": [
        [
          {
            "node": "Idea creator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI 4.1 mini4": {
      "ai_languageModel": [
        [
          {
            "node": "Write prompt to create image",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Idea creator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity Research": {
      "main": [
        [
          {
            "node": "Cleanup Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create image open AI": {
      "main": [
        [
          {
            "node": "Upload to imgbb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WordPress excerpt add": {
      "main": [
        [
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Idea creator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Update list of blog post": {
      "main": [
        [
          {
            "node": "Update base post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image to Wordpress1": {
      "main": [
        [
          {
            "node": "Set Image on Wordpress Post1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Image on Wordpress Post1": {
      "main": [
        [
          {
            "node": "Excerpt creator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write prompt to create image": {
      "main": [
        [
          {
            "node": "Create image open AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Idea creator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

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

作者
LukaszB

LukaszB

@lukaszb

AI Automation Expert | Web & Mobile App Integrator With 2+ years of experience, I build smart automations, web & mobile app workflows, and scalable platforms using tools like n8n, Make, and more. I help businesses reduce operational costs, save time, and scale faster with AI-powered solutions. For business enquiries, send me an email at kontakt@lumizone.pl

外部链接
在 n8n.io 查看

分享此工作流