使用OpenAI自动化WordPress和WooCommerce内容:评论、留言和更新
高级
这是一个Content Creation、Multimodal AI领域的自动化工作流,包含 38 个节点。主要使用 Set、Code、Wordpress、HttpRequest、ManualTrigger 等节点。 使用OpenAI自动化WordPress和WooCommerce内容:评论、留言和更新
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "83099d8fa5039aef53fd399c311d59a17992752996623f2bbd2595dce699372d",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "db247af8-ae34-439b-a4ea-8ccc8950ad7c",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d1f8e127-621e-4054-b547-be2a32e4f16e",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
368
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "aae92991-376b-4252-ae1d-8e1ff86d1df8",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
128,
720
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d88aef89-5579-4d2e-b3a8-b84bff0186a0",
"name": "更新文章",
"type": "n8n-nodes-base.wordpress",
"disabled": true,
"position": [
2160,
1168
],
"parameters": {},
"typeVersion": 1
},
{
"id": "03818d71-aa1d-4381-b22b-d71427c4e395",
"name": "从 WooCommerce 获取产品",
"type": "n8n-nodes-base.httpRequest",
"maxTries": 5,
"position": [
128,
144
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 4.2,
"waitBetweenTries": 2000
},
{
"id": "efb0c8c9-e3c3-4817-8d49-f0b1382ed3fc",
"name": "构建产品评论提示",
"type": "n8n-nodes-base.set",
"position": [
368,
144
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "04a36c3c-3288-4c0d-86d4-486d614d3a10",
"name": "生成产品评论(AI)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
656,
144
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1.8,
"waitBetweenTries": 2000
},
{
"id": "a974f5e6-127e-4e2a-8b4d-62a1af49ca29",
"name": "提取 AI 输出",
"type": "n8n-nodes-base.set",
"position": [
1008,
144
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "40e730ff-6af1-4933-aeae-534011520281",
"name": "发布产品评价",
"type": "n8n-nodes-base.httpRequest",
"maxTries": 5,
"position": [
1264,
144
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 4.2,
"waitBetweenTries": 5000
},
{
"id": "3b5fa5b5-e34e-43cf-bdd9-91de7fe1bc88",
"name": "从 WordPress 获取文章",
"type": "n8n-nodes-base.httpRequest",
"maxTries": 5,
"position": [
112,
496
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 4.2,
"waitBetweenTries": 2000
},
{
"id": "8b7b7c8b-6d1b-4607-bb05-df09d826376f",
"name": "构建文章评论提示",
"type": "n8n-nodes-base.set",
"position": [
368,
496
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "a9a753f4-b25d-406b-82a8-37742c70545b",
"name": "生成文章评论(AI)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
640,
496
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1.8,
"waitBetweenTries": 2000
},
{
"id": "a021eabc-94d0-4267-a9d7-3f245eca0e61",
"name": "提取 AI 输出1",
"type": "n8n-nodes-base.set",
"position": [
992,
496
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "2efa30e8-d463-48ed-aa97-c5da08e43174",
"name": "发布文章评论",
"type": "n8n-nodes-base.httpRequest",
"maxTries": 5,
"position": [
1248,
496
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 4.2,
"waitBetweenTries": 2000
},
{
"id": "f69f0508-f078-4e52-bb86-6b7b59b04686",
"name": "获取文章内容(API)",
"type": "n8n-nodes-base.httpRequest",
"position": [
192,
864
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "67f7c59a-ab86-46b7-a0a8-2a929ea76866",
"name": "准备文章内容字段",
"type": "n8n-nodes-base.set",
"position": [
448,
864
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "ceebfe61-d937-4bf2-b830-f1e4b1f6fc56",
"name": "格式化文章内容用于提示",
"type": "n8n-nodes-base.code",
"position": [
688,
864
],
"parameters": {},
"typeVersion": 2
},
{
"id": "62a31833-e8d7-453b-b2c6-ddbee6c0933b",
"name": "生成标题和摘要段落(AI)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
928,
864
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "1c3033db-0219-4b01-86e5-7b094dcc2b4f",
"name": "格式化 AI 输出用于更新",
"type": "n8n-nodes-base.code",
"position": [
1280,
864
],
"parameters": {},
"typeVersion": 2
},
{
"id": "e5e45fb4-868a-4384-9132-ef2818387469",
"name": "在 WordPress 中更新文章",
"type": "n8n-nodes-base.httpRequest",
"position": [
1520,
864
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "4282f20c-3c76-4b2d-9c03-7a4658e84f0a",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-272,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "098c7452-91bb-4b1a-9113-00f93ee04cb8",
"name": "从 WooCommerce 获取产品分类",
"type": "n8n-nodes-base.httpRequest",
"position": [
192,
1168
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "0f8e577e-b7ae-4b10-8db9-ebb2f73422d6",
"name": "准备分类字段",
"type": "n8n-nodes-base.set",
"position": [
480,
1168
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "8d7c47f4-2574-424e-8dc9-d126234f3d6f",
"name": "清理分类描述",
"type": "n8n-nodes-base.code",
"position": [
688,
1168
],
"parameters": {},
"typeVersion": 2
},
{
"id": "0a1af60d-7ab9-40dc-8044-b722680b1a6f",
"name": "生成分类标题和摘要",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
928,
1168
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "e9a33302-00c1-4aa9-9593-a662d79eaec5",
"name": "在 WooCommerce 中更新产品分类",
"type": "n8n-nodes-base.httpRequest",
"position": [
1520,
1168
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "3bcae65f-011a-4d68-81a6-ade55f4e6018",
"name": "格式化 AI 输出用于分类更新",
"type": "n8n-nodes-base.code",
"position": [
1280,
1168
],
"parameters": {},
"typeVersion": 2
},
{
"id": "3159e160-e762-4e78-83d5-e848e70bacd4",
"name": "从 WooCommerce 获取产品(用于更新)",
"type": "n8n-nodes-base.httpRequest",
"position": [
176,
1504
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "a590015f-72ec-4663-8d1a-2b0285c404e6",
"name": "准备产品字段",
"type": "n8n-nodes-base.set",
"position": [
464,
1504
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "b7a346f7-1821-4d05-8966-276350000813",
"name": "清理产品描述和简短描述",
"type": "n8n-nodes-base.code",
"position": [
672,
1504
],
"parameters": {},
"typeVersion": 2
},
{
"id": "d4c0d8ed-37ed-4921-bd65-34d78b83af3d",
"name": "生成产品描述",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
912,
1504
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "2632a3aa-9a7f-4c92-a48a-61e39029a9e5",
"name": "格式化 AI 输出用于产品更新",
"type": "n8n-nodes-base.code",
"position": [
1264,
1504
],
"parameters": {},
"typeVersion": 2
},
{
"id": "a0279473-af0d-40dd-98f0-8478cf07f45e",
"name": "在 WooCommerce 中更新产品",
"type": "n8n-nodes-base.httpRequest",
"position": [
1504,
1504
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "041ea350-4715-4132-b15f-170191ae8533",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1840,
1120
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e3aef832-58ec-413a-af92-ae25544c18e8",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
128,
1056
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4b4fbf76-b52e-4f30-88eb-5e0730498d75",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
128,
1376
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "3a8dda0c-7411-4ba2-bb60-87f4b8c5b4e2",
"name": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"disabled": true,
"position": [
-240,
672
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "276ef163-5cad-4135-b57a-07ecfb5ad13d",
"name": "执行工作流",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-224,
528
],
"parameters": {},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Execute workflow": {
"main": [
[
{
"node": "Fetch Products from WooCommerce",
"type": "main",
"index": 0
},
{
"node": "Fetch Articles from WordPress",
"type": "main",
"index": 0
},
{
"node": "Fetch Article Content (API)",
"type": "main",
"index": 0
},
{
"node": "Fetch Product Categories from WooCommerce",
"type": "main",
"index": 0
},
{
"node": "Fetch Products from WooCommerce (for Update)",
"type": "main",
"index": 0
}
]
]
},
"Extract AI Output": {
"main": [
[
{
"node": "Post Review to Product",
"type": "main",
"index": 0
}
]
]
},
"Extract AI Output1": {
"main": [
[
{
"node": "Post Comment to Article",
"type": "main",
"index": 0
}
]
]
},
"Prepare Product Fields": {
"main": [
[
{
"node": "Clean Product Description & Short Description",
"type": "main",
"index": 0
}
]
]
},
"Prepare Category Fields": {
"main": [
[
{
"node": "Clean Category Description",
"type": "main",
"index": 0
}
]
]
},
"Clean Category Description": {
"main": [
[
{
"node": "Generate Category Heading & Summary",
"type": "main",
"index": 0
}
]
]
},
"Fetch Article Content (API)": {
"main": [
[
{
"node": "Prepare Article Content Fields",
"type": "main",
"index": 0
}
]
]
},
"Format AI Output for Update": {
"main": [
[
{
"node": "Update Article in WordPress",
"type": "main",
"index": 0
}
]
]
},
"Build Article Comment Prompt": {
"main": [
[
{
"node": "Generate Article Comment (AI)",
"type": "main",
"index": 0
}
]
]
},
"Build Product Comment Prompt": {
"main": [
[
{
"node": "Generate Product Comment (AI)",
"type": "main",
"index": 0
}
]
]
},
"Fetch Articles from WordPress": {
"main": [
[
{
"node": "Build Article Comment Prompt",
"type": "main",
"index": 0
}
]
]
},
"Generate Article Comment (AI)": {
"main": [
[
{
"node": "Extract AI Output1",
"type": "main",
"index": 0
}
]
]
},
"Generate Product Comment (AI)": {
"main": [
[
{
"node": "Extract AI Output",
"type": "main",
"index": 0
}
]
]
},
"Generate Product Descriptions": {
"main": [
[
{
"node": "Format AI Output for Product Update",
"type": "main",
"index": 0
}
]
]
},
"Prepare Article Content Fields": {
"main": [
[
{
"node": "Format Article Content for Prompt",
"type": "main",
"index": 0
}
]
]
},
"Fetch Products from WooCommerce": {
"main": [
[
{
"node": "Build Product Comment Prompt",
"type": "main",
"index": 0
}
]
]
},
"Format Article Content for Prompt": {
"main": [
[
{
"node": "Generate Heading & Summary Paragraph (AI)",
"type": "main",
"index": 0
}
]
]
},
"Format AI Output for Product Update": {
"main": [
[
{
"node": "Update Product in WooCommerce",
"type": "main",
"index": 0
}
]
]
},
"Generate Category Heading & Summary": {
"main": [
[
{
"node": "Format AI Output for Category Update",
"type": "main",
"index": 0
}
]
]
},
"Format AI Output for Category Update": {
"main": [
[
{
"node": "Update Product Category in WooCommerce",
"type": "main",
"index": 0
}
]
]
},
"Fetch Product Categories from WooCommerce": {
"main": [
[
{
"node": "Prepare Category Fields",
"type": "main",
"index": 0
}
]
]
},
"Generate Heading & Summary Paragraph (AI)": {
"main": [
[
{
"node": "Format AI Output for Update",
"type": "main",
"index": 0
}
]
]
},
"Fetch Products from WooCommerce (for Update)": {
"main": [
[
{
"node": "Prepare Product Fields",
"type": "main",
"index": 0
}
]
]
},
"Clean Product Description & Short Description": {
"main": [
[
{
"node": "Generate Product Descriptions",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个高级难度的工作流,适用于Content Creation、Multimodal AI等场景。适合高级用户,包含 16+ 个节点的复杂工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用GPT-4.1为WordPress文章添加AI生成标题和结论
使用GPT-4.1为WordPress文章添加AI生成标题和结论
Set
Code
Http Request
+3
8 节点Ali Khosravani
Content Creation
基于 YouTube 视频的自主博客发布
使用 ChatGPT、Sheets、Apify、Pexels 和 WordPress 从 YouTube 视频自主发布博客
If
Set
Code
+18
80 节点Oriol Seguí
Content Creation
使用 OpenAI 为 WooCommerce 生成真实产品评论
使用 OpenAI 为 WooCommerce 生成真实产品评论
Set
Http Request
Manual Trigger
+2
7 节点Ali Khosravani
Content Creation
内容生成器 v3
AI驱动博客自动化:使用GPT-4生成并发布SEO文章至WordPress和Twitter
If
Set
Code
+25
144 节点Jay Emp0
Content Creation
使用GPT-5和fal.ai图像从关键词到WordPress自动化SEO博客流程
使用GPT-5和fal.ai图像从关键词到WordPress自动化SEO博客流程
Set
Code
Wait
+20
96 节点Paul
Content Creation
使用OpenAI和WordPress自动化SEO博客文章创建与发布
使用OpenAI和WordPress自动化SEO博客文章创建与发布
If
Set
Code
+11
22 节点Khaisa Studio
Content Creation
工作流信息
难度等级
高级
节点数量38
分类2
节点类型8
作者
Ali Khosravani
@alikhosroAutomation & SEO Specialist with years of experience building smart workflows, AI-powered content solutions, and marketing automations. Skilled in n8n, WordPress, and API integrations to help businesses save time and grow faster.
外部链接
在 n8n.io 上查看 →
分享此工作流