使用AI自动化品牌风格博客创建
高级
这是一个AI, Marketing领域的自动化工作流,包含 27 个节点。主要使用 Set, Html, Limit, Merge, Markdown 等节点,结合人工智能技术实现智能自动化。 使用AI自动化品牌风格博客创建
前置要求
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (27)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"nodes": [
{
"id": "d3159589-dbb7-4cca-91f5-09e8b2e4cba8",
"name": "当点击“测试工作流程”时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
240,
500
],
"parameters": {},
"typeVersion": 1
},
{
"id": "b4b42b3f-ef30-4fc8-829d-59f8974c4168",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
2180,
700
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "8gccIjcuf3gvaoEr",
"name": "OpenAi account"
}
},
"typeVersion": 1
},
{
"id": "032c3012-ed8d-44eb-94f0-35790f4b616f",
"name": "OpenAI 聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
2980,
460
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "8gccIjcuf3gvaoEr",
"name": "OpenAi account"
}
},
"typeVersion": 1
},
{
"id": "bf922785-7e8f-4f93-bfff-813c16d93278",
"name": "OpenAI 聊天模型2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
2020,
520
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "8gccIjcuf3gvaoEr",
"name": "OpenAi account"
}
},
"typeVersion": 1
},
{
"id": "d8d4b26f-270f-4b39-a4cd-a6e4361da591",
"name": "提取语音特征",
"type": "@n8n/n8n-nodes-langchain.informationExtractor",
"position": [
2160,
540
],
"parameters": {
"text": "=### Analyse the given content\n\n{{ $json.data.map(item => item.replace(/\\n/g, '')).join('\\n---\\n') }}",
"options": {
"systemPromptTemplate": "You help identify and define a company or individual's \"brand voice\". Using the given content belonging to the company or individual, extract all voice characteristics from it along with description and examples demonstrating it."
},
"schemaType": "manual",
"inputSchema": "{\n\t\"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \t\"properties\": {\n \"characteristic\": { \"type\": \"string\" },\n \"description\": { \"type\": \"string\" },\n \"examples\": { \"type\": \"array\", \"items\": { \"type\": \"string\" } }\n }\n\t}\n}"
},
"typeVersion": 1
},
{
"id": "8cca272c-b912-40f1-ba08-aa7c5ff7599c",
"name": "获取博客",
"type": "n8n-nodes-base.httpRequest",
"position": [
480,
500
],
"parameters": {
"url": "https://blog.n8n.io",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "aa1e2a02-2e2b-4e8d-aef8-f5f7a54d9562",
"name": "获取文章",
"type": "n8n-nodes-base.httpRequest",
"position": [
1120,
500
],
"parameters": {
"url": "=https://blog.n8n.io{{ $json.article }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "78ae3dfc-5afd-452f-a2b6-bdb9dbd728bd",
"name": "提取文章 URL",
"type": "n8n-nodes-base.html",
"position": [
640,
500
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "article",
"attribute": "href",
"cssSelector": ".item.post a.global-link",
"returnArray": true,
"returnValue": "attribute"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "3b2b6fea-ed2f-43ba-b6d1-e0666b88c65b",
"name": "分离 URL",
"type": "n8n-nodes-base.splitOut",
"position": [
800,
500
],
"parameters": {
"options": {},
"fieldToSplitOut": "article"
},
"typeVersion": 1
},
{
"id": "68bb20b1-2177-4c0f-9ada-d1de69bdc2a0",
"name": "最新文章",
"type": "n8n-nodes-base.limit",
"position": [
960,
500
],
"parameters": {
"maxItems": 5
},
"typeVersion": 1
},
{
"id": "f20d7393-24c9-4a51-872e-0dce391f661c",
"name": "提取文章内容",
"type": "n8n-nodes-base.html",
"position": [
1280,
500
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": ".post-section",
"returnValue": "html"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "299a04be-fe9b-47d9-b2c6-e2e4628f77e0",
"name": "合并文章",
"type": "n8n-nodes-base.aggregate",
"position": [
1780,
540
],
"parameters": {
"options": {
"mergeLists": true
},
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "data"
}
]
}
},
"typeVersion": 1
},
{
"id": "8480ece7-0dc1-4682-ba9e-ded2c138d8b8",
"name": "文章风格与品牌语音",
"type": "n8n-nodes-base.merge",
"position": [
2560,
320
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineByPosition"
},
"typeVersion": 3
},
{
"id": "024efee2-5a2f-455c-a150-4b9bdce650b2",
"name": "保存为草稿",
"type": "n8n-nodes-base.wordpress",
"position": [
3460,
320
],
"parameters": {
"title": "={{ $json.output.title }}",
"additionalFields": {
"slug": "={{ $json.output.title.toSnakeCase() }}",
"format": "standard",
"status": "draft",
"content": "={{ $json.output.body }}"
}
},
"credentials": {
"wordpressApi": {
"id": "YMW8mGrekjfxKJUe",
"name": "Wordpress account"
}
},
"typeVersion": 1
},
{
"id": "71f4ab1e-ef61-48f3-92e8-70691f7d0750",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
480,
180
],
"parameters": {
"color": 7,
"width": 606,
"height": 264,
"content": "## 1. 导入现有内容"
},
"typeVersion": 1
},
{
"id": "3d3a55a5-4b4a-4ea2-a39c-82b366fb81e6",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1440,
240
],
"parameters": {
"color": 7,
"width": 434,
"height": 230,
"content": "## 2. 将 HTML 转换为 Markdown"
},
"typeVersion": 1
},
{
"id": "08c0b683-ec06-47ce-871c-66265195ca29",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1980,
80
],
"parameters": {
"color": 7,
"width": 446,
"height": 233,
"content": "## 3. 使用 AI 分析文章结构和写作风格"
},
"typeVersion": 1
},
{
"id": "515fe69f-061e-4dfc-94ed-4cf2fbe10b7b",
"name": "捕获现有文章结构",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
2020,
380
],
"parameters": {
"text": "={{ $json.data.join('\\n---\\n') }}",
"messages": {
"messageValues": [
{
"message": "=Given the following one or more articles (which are separated by ---), describe how best one could replicate the common structure, layout, language and writing styles of all as aggregate."
}
]
},
"promptType": "define"
},
"typeVersion": 1.4
},
{
"id": "ba4e68fb-eccc-4efa-84be-c42a695dccdb",
"name": "Markdown",
"type": "n8n-nodes-base.markdown",
"position": [
1600,
540
],
"parameters": {
"html": "={{ $json.data }}",
"options": {}
},
"typeVersion": 1
},
{
"id": "d459ff5b-0375-4458-a49f-59700bb57e12",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2340,
740
],
"parameters": {
"color": 7,
"width": 446,
"height": 253,
"content": "## 4. 使用 AI 提取语音特征和特质"
},
"typeVersion": 1
},
{
"id": "71fe32a9-1b8a-446c-a4ff-fb98c6a68e1b",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2720,
0
],
"parameters": {
"color": 7,
"width": 626,
"height": 633,
"content": "## 5. 使用 AI 自动化生成符合品牌的文章"
},
"typeVersion": 1
},
{
"id": "4e6fbe4e-869e-4bef-99ba-7b18740caecf",
"name": "内容生成代理",
"type": "@n8n/n8n-nodes-langchain.informationExtractor",
"position": [
3000,
320
],
"parameters": {
"text": "={{ $json.instruction }}",
"options": {
"systemPromptTemplate": "=You are a blog content writer who writes using the following article guidelines. Write a content piece as requested by the user. Output the body as Markdown. Do not include the date of the article because the publishing date is not determined yet.\n\n## Brand Article Style\n{{ $('Article Style & Brand Voice').item.json.text }}\n\n##n Brand Voice Characteristics\n\nHere are the brand voice characteristic and examples you must adopt in your piece. Pick only the characteristic which make sense for the user's request. Try to keep it as similar as possible but don't copy word for word.\n\n|characteristic|description|examples|\n|-|-|-|\n{{\n$('Article Style & Brand Voice').item.json.output.map(item => (\n`|${item.characteristic}|${item.description}|${item.examples.map(ex => `\"${ex}\"`).join(', ')}|`\n)).join('\\n')\n}}"
},
"attributes": {
"attributes": [
{
"name": "title",
"required": true,
"description": "title of article"
},
{
"name": "summary",
"required": true,
"description": "summary of article"
},
{
"name": "body",
"required": true,
"description": "body of article"
},
{
"name": "characteristics",
"required": true,
"description": "comma delimited string of characteristics chosen"
}
]
}
},
"typeVersion": 1
},
{
"id": "022de44c-c06c-41ac-bd50-38173dae9b37",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
3460,
480
],
"parameters": {
"color": 7,
"width": 406,
"height": 173,
"content": "## 6. 将草稿保存到 Wordpress"
},
"typeVersion": 1
},
{
"id": "fe54c40e-6ddd-45d6-a938-f467e4af3f57",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2900,
660
],
"parameters": {
"color": 5,
"width": 440,
"height": 120,
"content": "### 问:我是否需要为每篇文章分析品牌语音?"
},
"typeVersion": 1
},
{
"id": "1832131e-21e8-44fc-9370-907f7b5a6eda",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
1000,
680
],
"parameters": {
"color": 5,
"width": 380,
"height": 120,
"content": "### 问:我可以使用博客文章以外的其他媒体吗?"
},
"typeVersion": 1
},
{
"id": "8e8706a3-122d-436b-9206-de7a6b2f3c39",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-120
],
"parameters": {
"width": 400,
"height": 800,
"content": "## 试试看!"
},
"typeVersion": 1
},
{
"id": "1510782d-0f88-40ca-99a8-44f984022c8e",
"name": "新文章指令",
"type": "n8n-nodes-base.set",
"position": [
2820,
320
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "2c7e2a28-30f9-4533-a394-a5e967ebf4ec",
"name": "instruction",
"type": "string",
"value": "=Write a comprehensive guide on using AI for document classification and document extraction. Explain the benefits of using vision models over traditional OCR. Close out with a recommendation of using n8n as the preferred way to get started with this AI use-case."
}
]
}
},
"typeVersion": 3.4
}
],
"pinData": {},
"connections": {
"Get Blog": {
"main": [
[
{
"node": "Extract Article URLs",
"type": "main",
"index": 0
}
]
]
},
"Markdown": {
"main": [
[
{
"node": "Combine Articles",
"type": "main",
"index": 0
}
]
]
},
"Get Article": {
"main": [
[
{
"node": "Extract Article Content",
"type": "main",
"index": 0
}
]
]
},
"Split Out URLs": {
"main": [
[
{
"node": "Latest Articles",
"type": "main",
"index": 0
}
]
]
},
"Latest Articles": {
"main": [
[
{
"node": "Get Article",
"type": "main",
"index": 0
}
]
]
},
"Combine Articles": {
"main": [
[
{
"node": "Capture Existing Article Structure",
"type": "main",
"index": 0
},
{
"node": "Extract Voice Characteristics",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Extract Voice Characteristics",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "Content Generation Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "Capture Existing Article Structure",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Extract Article URLs": {
"main": [
[
{
"node": "Split Out URLs",
"type": "main",
"index": 0
}
]
]
},
"Extract Article Content": {
"main": [
[
{
"node": "Markdown",
"type": "main",
"index": 0
}
]
]
},
"New Article Instruction": {
"main": [
[
{
"node": "Content Generation Agent",
"type": "main",
"index": 0
}
]
]
},
"Content Generation Agent": {
"main": [
[
{
"node": "Save as Draft",
"type": "main",
"index": 0
}
]
]
},
"Article Style & Brand Voice": {
"main": [
[
{
"node": "New Article Instruction",
"type": "main",
"index": 0
}
]
]
},
"Extract Voice Characteristics": {
"main": [
[
{
"node": "Article Style & Brand Voice",
"type": "main",
"index": 1
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Get Blog",
"type": "main",
"index": 0
}
]
]
},
"Capture Existing Article Structure": {
"main": [
[
{
"node": "Article Style & Brand Voice",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
(Duc)深度研究市场模板
集成PerplexityAI研究和OpenAI内容的多层级WordPress博客生成器
If
Set
Xml
+28
132 节点Daniel Ng
人工智能
WordPress博客自动化专业版(深度研究)v1
WordPress自动博客专业版 - 含深度研究的内容自动化机器
If
Set
Xml
+24
77 节点Daniel Ng
人工智能
使用Excel、Outlook和AI的每日新闻简报服务
使用Excel、Outlook和AI的每日新闻简报服务
If
Set
Html
+13
33 节点Jimleuk
人工智能
使用AI和APIFY自动化销售会议准备并发送至WhatsApp
使用AI和APIFY自动化销售会议准备并发送至WhatsApp
If
Set
Html
+15
61 节点Jimleuk
销售
WordPress博客自动化专业版(SEO主题)v2
WordPress自动博客专业版 - SEO主题内容自动化机器
If
Set
Xml
+21
63 节点Daniel Ng
人工智能
YouTube RAG 搜索前端(使用 Apify、Qdrant 和 AI)
基于 Apify、Qdrant 和 AI 的 YouTube RAG 搜索前端
If
Set
Html
+23
62 节点Jimleuk
人工智能
工作流信息
难度等级
高级
节点数量27
分类2
节点类型14
作者
Jimleuk
@jimleukFreelance consultant based in the UK specialising in AI-powered automations. I work with select clients tackling their most challenging projects. For business enquiries, send me an email at hello@jimle.uk LinkedIn: https://www.linkedin.com/in/jimleuk/ X/Twitter: https://x.com/jimle_uk
外部链接
在 n8n.io 查看 →
分享此工作流