使用OpenAI-Gemini创建Dev.to文章 - AI生成带图片内容
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 30 个节点。主要使用 Set, Limit, SplitOut, Aggregate, HttpRequest 等节点。 使用OpenAI/Gemini创建Dev.to文章 - AI生成带图片内容
前置要求
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
使用的节点 (30)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "c66762406062d6f96baac676fbcb1ad043cf6c0875d0fc4a63da087ec2d9f92e",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "b4b0d6be-9142-427d-82bf-77a08cb81bd9",
"name": "当点击\"执行工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
640,
240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9e0079e0-e875-4822-9aed-4746249b9a62",
"name": "AI 代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1664,
240
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "24c241e9-3d5d-476d-b7b4-0d58a6f15d22",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1472,
512
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "89e24193-2e68-4fc6-afea-2c7523cae63d",
"name": "拆分输出",
"type": "n8n-nodes-base.splitOut",
"position": [
2000,
240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "e318a8e5-1f8e-44e2-90d2-73faaff66fdc",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
2336,
240
],
"parameters": {},
"typeVersion": 3
},
{
"id": "e046e8a3-0cc5-43f3-b188-abeea0b3638a",
"name": "发布图片到 Cloudinary2",
"type": "n8n-nodes-base.httpRequest",
"position": [
2528,
512
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "2248af03-d7c8-43a7-b840-35ba34226082",
"name": "设置输入图像",
"type": "n8n-nodes-base.set",
"position": [
2496,
304
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "369c3830-6d3e-4aa2-8a3c-dc931728a4ee",
"name": "设置输出图像",
"type": "n8n-nodes-base.set",
"position": [
2736,
512
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "89e9c21e-adb5-4f67-818f-85d465281dfb",
"name": "在 dev.to 上发布文章",
"type": "n8n-nodes-base.httpRequest",
"position": [
4672,
224
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "a999c74c-62ba-4658-bbac-e09438e5cf37",
"name": "结构化输出解析器1",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
1808,
496
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "0714b7bb-3ca8-47d1-ab9d-cd49b215b768",
"name": "OpenAI 聊天模型4",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1728,
624
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "e76e6474-7865-43b0-b3d1-ca93c6f58917",
"name": "聚合",
"type": "n8n-nodes-base.aggregate",
"position": [
3264,
224
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0a57c810-c82c-4f38-b1da-4c9f17a1cedd",
"name": "文章撰写器",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
3904,
224
],
"parameters": {},
"retryOnFail": false,
"typeVersion": 1.7
},
{
"id": "c9579ede-8305-4f04-9d31-0c68f695513f",
"name": "生成图像1",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"position": [
2704,
304
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3dfeb899-50d0-4cb1-9959-edd76c2edf15",
"name": "OpenAI 聊天模型2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
4000,
640
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "15845289-24b0-4b93-8828-bc06cac9bfa3",
"name": "OpenAI 聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
3840,
432
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "6c2255f3-82bf-4d08-88e2-3357606dfac3",
"name": "结构化输出解析器2",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
4048,
448
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "377e9dc4-5f70-4052-bacb-b8373196df1b",
"name": "设置输入数据/凭据",
"type": "n8n-nodes-base.set",
"position": [
1184,
240
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "371ca127-dcc5-43a4-b3ab-282c1a9b80eb",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
576,
-656
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b2e1e465-c369-4196-bcaf-613bff5c3072",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1440,
-368
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "faa77088-2bb3-494b-be0d-88c2434ac280",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
2192,
-368
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "3b72446d-7ae3-493a-b971-43f49115ef4e",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
3024,
-368
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9a0565a2-8639-4a87-bc3a-eccb6e08462f",
"name": "便签 4",
"type": "n8n-nodes-base.stickyNote",
"position": [
3648,
-368
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2dfd29ab-db23-4749-8895-0eb1c035415c",
"name": "便签 5",
"type": "n8n-nodes-base.stickyNote",
"position": [
4432,
-368
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c564735c-cc8c-4be0-9a5a-c48dc8df4dc2",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
2384,
800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4285f355-afd2-4d19-b6c2-adfd5f55bf41",
"name": "生成图像",
"type": "@n8n/n8n-nodes-langchain.openAi",
"disabled": true,
"position": [
2576,
976
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "c756aff3-cde5-4727-bfb0-53b7d8153d43",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
3136,
784
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e8b8b3b0-c01f-4131-9551-fcb35ee07a8e",
"name": "从表格获取数据",
"type": "n8n-nodes-base.googleSheets",
"disabled": true,
"position": [
848,
480
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "d121cb07-33ff-4f2c-91a4-95aebf78afca",
"name": "限制",
"type": "n8n-nodes-base.limit",
"disabled": true,
"position": [
1024,
480
],
"parameters": {},
"typeVersion": 1
},
{
"id": "9c92d91c-5b80-4dc7-8554-47561157307f",
"name": "定时触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"disabled": true,
"position": [
672,
480
],
"parameters": {},
"typeVersion": 1.2
}
],
"pinData": {},
"connections": {
"Limit": {
"main": [
[
{
"node": "Set input data/credintenials",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Article wrtiter",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Article wrtiter": {
"main": [
[
{
"node": "Post article on dev.to",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Input Image",
"type": "main",
"index": 0
}
]
]
},
"Set Input Image": {
"main": [
[
{
"node": "Generate an image1",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Get data form sheet",
"type": "main",
"index": 0
}
]
]
},
"Set Output Image": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Generate an image1": {
"main": [
[
{
"node": "Post image Cloudinary2",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "Article wrtiter",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "Structured Output Parser2",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model4": {
"ai_languageModel": [
[
{
"node": "Structured Output Parser1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Get data form sheet": {
"main": [
[
{
"node": "Limit",
"type": "main",
"index": 0
}
]
]
},
"Post image Cloudinary2": {
"main": [
[
{
"node": "Set Output Image",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser1": {
"ai_outputParser": [
[
{
"node": "AI Agent",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Structured Output Parser2": {
"ai_outputParser": [
[
{
"node": "Article wrtiter",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"Set input data/credintenials": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Set input data/credintenials",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
WordPress、OpenAI与Perplexity的自动化SEO博客发布
WordPress、OpenAI与Perplexity的自动化SEO博客发布
Set
Limit
Split Out
+14
43 节点LukaszB
内容创作
AI 电影短片生成器
使用 Gemini、GPT 和 ElevenLabs 将名言转换为社交媒体热门视频
If
Jwt
Set
+17
48 节点LukaszB
内容创作
内容生成器 v3
AI驱动博客自动化:使用GPT-4生成并发布SEO文章至WordPress和Twitter
If
Set
Code
+25
144 节点Jay Emp0
内容创作
使用GPT-5和fal.ai图像从关键词到WordPress自动化SEO博客流程
使用GPT-5和fal.ai图像从关键词到WordPress自动化SEO博客流程
Set
Code
Wait
+20
96 节点Paul
内容创作
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+27
125 节点Daniel Ng
内容创作
使用Perplexity和GPT为WordPress创建SEO优化博客,包含关键词和媒体
使用Perplexity和GPT为WordPress创建SEO优化博客,包含关键词和媒体
Set
Code
Limit
+22
124 节点Paul
内容创作
工作流信息
难度等级
高级
节点数量30
分类2
节点类型16
作者
LukaszB
@lukaszbAI 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 查看 →
分享此工作流