8
n8n 中文网amn8n.com

SEO 友好 - WordPress 文章生成器

高级

这是一个AI, Marketing领域的自动化工作流,包含 18 个节点。主要使用 If, Discord, Telegram, Wordpress, HttpRequest 等节点,结合人工智能技术实现智能自动化。 生成并发布 SEO 优化的博客文章到 WordPress

前置要求
  • Discord Bot Token 或 Webhook
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "lZI2xknLPhHU6gZB",
  "meta": {
    "instanceId": "c2650793f644091dc80fb900fe63448ad1f4b774008de9608064d67294f8307c",
    "templateCredsSetupCompleted": true
  },
  "name": "SEO 友好 - Wordpress 文章生成器",
  "tags": [],
  "nodes": [
    {
      "id": "a7e0b3f7-7b86-4e94-b5c5-104cb92a332f",
      "name": "主题选择器和标题生成器",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        320,
        -320
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "4ef52544-155b-4192-9fe3-243503c3f83e",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -180,
        -380
      ],
      "webhookId": "a9b697dc-5b4e-418c-83ed-54966ce7ea34",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "581e3845-ac08-4d69-ac27-c702cfe1a959",
      "name": "⚙️ 设置指南",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1768fb1a-3da2-4d36-a67a-e82b8e511b00",
      "name": "🧠 概览 - 此工作流的功能",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        -680
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "29fd6900-3f7c-4efa-83bf-93297239c425",
      "name": "检查来自 Telegram 的命令",
      "type": "n8n-nodes-base.if",
      "position": [
        0,
        -380
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "cf9ed09e-aca1-496b-8b39-a1290f912bbf",
      "name": "计划自动触发器(每 3 小时)1",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -80,
        -140
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "14ac3e7a-5830-4f36-98ce-672c1442cba8",
      "name": "通知 Discord 频道",
      "type": "n8n-nodes-base.discord",
      "position": [
        1180,
        -20
      ],
      "webhookId": "722513b9-8a0c-4ba1-b0ee-c712d8fb0af6",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "638a51ea-dedf-4734-8e12-c1fc0d76b794",
      "name": "将特色图像附加到文章",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        940,
        60
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "a860c065-448a-44f6-83de-6a739380c731",
      "name": "上传图像到 Wordpress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        740,
        80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f5bafe2f-ac4b-42e5-9c23-506b02115060",
      "name": "创建 WP 草稿文章1",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        340,
        80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3a661537-7bf8-4f05-9869-c2ed0f4f497d",
      "name": "ALT:元数据生成器(Gemini)1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        340,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3ab3b38b-0627-4a92-a3c2-75776cd896cc",
      "name": "解析博客元数据 JSON1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        500,
        -120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9a1bd821-e55f-4448-b4ba-a827e7a0724c",
      "name": "文章生成器(替代)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        840,
        -120
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9955289b-3787-413a-9724-4bac6459b537",
      "name": "文章生成器(替代2)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1000,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ce431f84-a3c8-40ce-b903-6d64f479dfe8",
      "name": "文章生成器",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        680,
        -120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "34fcbcf7-a734-4b7d-9421-0371f56de25d",
      "name": "生成特色图像(OpenAI)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        540,
        80
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "55642750-4403-4868-a263-6e08bf6fbb05",
      "name": "生成文章正文",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        640,
        -320
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "89058ee2-9400-4b32-8cf4-d1a5796a003b",
      "name": "通知 Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1180,
        220
      ],
      "webhookId": "29c01d67-35b0-4234-92dd-c729fcb6fe7e",
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "71c2ae60-8a20-4cb3-aef1-4e63308cf0f8",
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Check command from telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Article Generator": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Article Body",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create WP Draft Post1": {
      "main": [
        [
          {
            "node": "Generate Featured Image (OpenAI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Article Body": {
      "main": [
        [
          {
            "node": "Create WP Draft Post1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Discord channel": {
      "main": [
        []
      ]
    },
    "Article Generator (alt2)": {
      "ai_languageModel": [
        []
      ]
    },
    "Parse Blog Metadata JSON1": {
      "ai_outputParser": [
        [
          {
            "node": "Topic Chooser and Title Maker",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image to Wordpress": {
      "main": [
        [
          {
            "node": "Attach Feature Image to Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check command from telegram": {
      "main": [
        [
          {
            "node": "Topic Chooser and Title Maker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Attach Feature Image to Post": {
      "main": [
        [
          {
            "node": "Notify Discord channel",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Topic Chooser and Title Maker": {
      "main": [
        [
          {
            "node": "Generate Article Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Featured Image (OpenAI)": {
      "main": [
        [
          {
            "node": "Upload Image to Wordpress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ALT: Metadata Generator (Gemini)1": {
      "ai_languageModel": [
        [
          {
            "node": "Topic Chooser and Title Maker",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Scheduled Auto Trigger (Every 3 Hours)1": {
      "main": [
        [
          {
            "node": "Topic Chooser and Title Maker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流