AI客座文章生成器与OpenAI及Google Sheets自动化
中级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 7 个节点。主要使用 If, Set, OpenAi, GoogleSheets, ManualTrigger 等节点。 AI客座文章生成器与OpenAI及Google Sheets自动化
前置要求
- •OpenAI API Key
- •Google Sheets API 凭证
使用的节点 (7)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "a93c2d1221e546a84f92e07ce458d71f828e250bc33a25fc5481e8d9db0e3c2f"
},
"tags": [],
"nodes": [
{
"id": "ff9ed5e3-49e0-41ed-a10b-10ac380c0b47",
"name": "启动触发器",
"type": "n8n-nodes-base.manualTrigger",
"position": [
200,
300
],
"typeVersion": 1
},
{
"id": "0058cd43-e14f-4a4c-b15e-c04f569c8c70",
"name": "读取计划表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
400,
300
],
"parameters": {
"range": "Planning!A1:E1000",
"sheetId": "1PiygWwVov4WzA8qvUOaZ9N1G9JgtgmpYy0w8ty3CHd0",
"operation": "lookup",
"returnAllMatches": true
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "1",
"name": "Google Sheets account"
}
},
"typeVersion": 4
},
{
"id": "b3082328-2ab1-4857-b3fa-7db55f89160d",
"name": "筛选状态 = 开始",
"type": "n8n-nodes-base.if",
"position": [
600,
300
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"Status\"]}}",
"value2": "Start",
"operation": "equals"
}
]
}
},
"typeVersion": 1
},
{
"id": "f8b0b56b-e580-4b67-9871-4a9c3bb92446",
"name": "格式化提示词",
"type": "n8n-nodes-base.set",
"position": [
800,
300
],
"parameters": {
"values": {
"string": [
{
"name": "prompt",
"value": "Write a guest post in German about the topic '{{ $json.Topic }}'. Include this note: '{{ $json.Note }}'"
}
]
},
"keepOnlySet": true
},
"typeVersion": 2
},
{
"id": "a95b45a5-b84e-43a0-ae53-2c2854e317d4",
"name": "OpenAI - 生成帖子",
"type": "n8n-nodes-base.openAi",
"position": [
1000,
300
],
"parameters": {
"model": "text-davinci-003",
"prompt": "={{$json[\"prompt\"]}}",
"resource": "completion",
"maxTokens": 1000,
"temperature": 0.7
},
"credentials": {
"openAiApi": {
"id": "2",
"name": "OpenAI account"
}
},
"typeVersion": 1
},
{
"id": "96de9e63-5680-4db5-9936-65e33ff73c95",
"name": "保存帖子到表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
1200,
300
],
"parameters": {
"range": "Generated!A1:C1",
"sheetId": "1PiygWwVov4WzA8qvUOaZ9N1G9JgtgmpYy0w8ty3CHd0",
"operation": "append",
"dataToSend": "autoMapInputData"
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "1",
"name": "Google Sheets account"
}
},
"typeVersion": 4
},
{
"id": "d5bc4074-7ab1-4a0e-85cb-5c61792b53a9",
"name": "标记为已完成",
"type": "n8n-nodes-base.googleSheets",
"position": [
1400,
300
],
"parameters": {
"key": "={{$json.rowIndex}}",
"range": "Planning!E:E",
"options": {
"valueInputOption": "RAW"
},
"sheetId": "1PiygWwVov4WzA8qvUOaZ9N1G9JgtgmpYy0w8ty3CHd0",
"operation": "update",
"dataToSend": {
"values": [
{
"value": "Finished",
"column": "Status"
}
]
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "1",
"name": "Google Sheets account"
}
},
"typeVersion": 4
}
],
"settings": {},
"connections": {
"Format Prompt": {
"main": [
[
{
"node": "OpenAI - Generate Post",
"type": "main",
"index": 0
}
]
]
},
"Start Trigger": {
"main": [
[
{
"node": "Read Planning Sheet",
"type": "main",
"index": 0
}
]
]
},
"Save Post to Sheet": {
"main": [
[
{
"node": "Mark as Finished",
"type": "main",
"index": 0
}
]
]
},
"Read Planning Sheet": {
"main": [
[
{
"node": "Filter Status = Start",
"type": "main",
"index": 0
}
]
]
},
"Filter Status = Start": {
"main": [
[
{
"node": "Format Prompt",
"type": "main",
"index": 0
}
]
]
},
"OpenAI - Generate Post": {
"main": [
[
{
"node": "Save Post to Sheet",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI驱动的邮件分诊与自动回复系统,集成OpenAI代理和Gmail
AI驱动的邮件分诊与自动回复系统,集成OpenAI代理和Gmail
If
Set
Gmail
+20
68 节点Abdullahi Ahmed
内容创作
Printify自动化 - 更新标题和描述 - AlexK1919
使用GPT-4o-mini为Printify自动生成SEO产品标题和描述
If
Set
Code
+10
26 节点Amit Mehta
内容创作
适用于WooCommerce Nano Banana的AI虚拟试穿
使用Fal.ai Nano Banana为WooCommerce自动生成虚拟AI试穿图像
If
Set
Wait
+7
20 节点Davide
内容创作
✅ 病毒式Reels工厂
使用Veo、Shotstack和Postiz自动化ASMR玻璃水果视频创作与发布
If
Jwt
Set
+12
37 节点Ayoub Boutouil
内容创作
Google Maps 数据提取
使用Perplexity AI和邮箱验证自动化Google Maps潜在客户生成
If
Set
Code
+8
18 节点Antxon Pous
内容创作
使用Meta Graph API从Google表格自动化Instagram故事发布
使用Meta Graph API从Google表格自动化Instagram故事发布
If
Set
Sort
+8
19 节点iMan
内容创作
工作流信息
难度等级
中级
节点数量7
分类2
节点类型5
作者
Juan de Dios Estrella Sáez
@juanestrellaHi 👋 I’m Juan de Dios. I turn manual work into automated systems using n8n & Make, so you can focus on what really matters. I share my workflows, tips, and templates so you can start automating too. Got a question? I’m just a comment away
外部链接
在 n8n.io 查看 →
分享此工作流