使用Nano Banana生成新闻简报图片并发布人工审核推文到X
这是一个Social Media, Multimodal AI领域的自动化工作流,包含 25 个节点。主要使用 If, Wait, Twitter, Telegram, HttpRequest 等节点。 使用Nano Banana生成新闻简报图片并发布人工审核推文到X
- •Twitter API 凭证
- •Telegram Bot Token
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
使用的节点 (25)
{
"meta": {
"instanceId": "40f29e455b10b3ef07629363459d0fa6954887d44ddad18e74a5539a487f2eee",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "4e4e1e95-613b-4f13-a44d-ffde7edce8ff",
"name": "图像生成 (Nano Banana)",
"type": "n8n-nodes-base.httpRequest",
"position": [
608,
704
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "38ea4e52-c5dc-4ffe-8880-5dbd5a82e239",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
64,
800
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "2773185b-19d7-4c6b-95f3-3b225f02ee02",
"name": "等待1",
"type": "n8n-nodes-base.wait",
"position": [
832,
704
],
"webhookId": "b28958ca-679e-45b7-9d3f-700ad1d7efca",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "76cf0327-0251-434f-a0f2-c8253eafacd5",
"name": "获取图像",
"type": "n8n-nodes-base.httpRequest",
"position": [
1056,
624
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "4288bcf7-b30d-4055-9f39-1e87558ff93a",
"name": "图像已创建",
"type": "n8n-nodes-base.if",
"position": [
1280,
704
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "97cb9e63-1eb5-43e0-93a4-e438d1bba382",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-448,
400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c5548a43-8e9a-4bb9-9d28-06a855e22033",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-32,
384
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "48e99baf-a6a1-4ba2-a765-8703e0f5d7d7",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
464,
416
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "da849ea0-2e81-4daf-853e-f5907dfea6e2",
"name": "Google Sheets 触发器",
"type": "n8n-nodes-base.googleSheetsTrigger",
"position": [
-368,
704
],
"parameters": {},
"typeVersion": 1
},
{
"id": "1c8c8e1d-4fc7-4fe7-824a-78e29e08207a",
"name": "发布媒体",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
2064,
1280
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "facaea24-1375-4e65-ab62-8ed01fad19b1",
"name": "添加图片URL",
"type": "n8n-nodes-base.googleSheets",
"position": [
1472,
448
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "21e17eff-1ee9-4c5b-9b96-d60bc1573abe",
"name": "OpenAI 聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1920,
944
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "d901aea2-cd2f-47b4-a97b-bc0c198db4db",
"name": "发送推文文本待审批",
"type": "n8n-nodes-base.telegram",
"position": [
976,
1296
],
"webhookId": "ac50c81a-be0c-4c8f-88cd-9663f6c9460c",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "e91f14a0-161a-4806-995e-d5a6236cd3fb",
"name": "发送推文图片待审批",
"type": "n8n-nodes-base.telegram",
"position": [
752,
1296
],
"webhookId": "ac50c81a-be0c-4c8f-88cd-9663f6c9460c",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "184a3c5b-2655-4f35-a1c0-4ada4df4195c",
"name": "已批准",
"type": "n8n-nodes-base.if",
"position": [
1280,
1392
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "cfb48a9e-f290-43eb-a2b3-3ba0f16752c7",
"name": "推文未获批准",
"type": "n8n-nodes-base.googleSheets",
"position": [
1472,
1552
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "f7038b75-7d6b-40fe-b6aa-32ddc4e6569f",
"name": "下载图片",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
304,
1376
],
"parameters": {},
"retryOnFail": false,
"typeVersion": 4.2
},
{
"id": "49b19210-9915-4ae9-a5da-a3097e529111",
"name": "重新下载图像",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
1888,
1280
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "a64dd96f-24a0-472a-9455-e6fae5369810",
"name": "创建推文",
"type": "n8n-nodes-base.twitter",
"position": [
2240,
1296
],
"parameters": {},
"typeVersion": 2
},
{
"id": "20bb76b6-6476-4fc5-b565-1820279675e1",
"name": "推文生成器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1920,
736
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "fecae118-9e21-485f-a19c-c7220fa771a7",
"name": "提示生成器",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
48,
544
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "6144f543-5b3f-4991-831c-7b6d36a6e123",
"name": "推文已发布",
"type": "n8n-nodes-base.googleSheets",
"position": [
2432,
1296
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "8d711b2d-ede5-46e2-92c0-ebc228bb3458",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
256,
1088
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5f26e665-302e-4525-b7ec-704eb5d492dc",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1840,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "25cf6979-8f83-4c73-a2dd-345444b71efa",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
1792,
1104
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Wait1": {
"main": [
[
{
"node": "Get Image",
"type": "main",
"index": 0
}
]
]
},
"Approved": {
"main": [
[
{
"node": "Downlaod Image again",
"type": "main",
"index": 0
}
],
[
{
"node": "Tweet not approved",
"type": "main",
"index": 0
}
]
]
},
"Get Image": {
"main": [
[
{
"node": "Image created",
"type": "main",
"index": 0
}
]
]
},
"post media": {
"main": [
[
{
"node": "Create Tweet",
"type": "main",
"index": 0
}
],
[]
]
},
"Create Tweet": {
"main": [
[
{
"node": "Tweet posted",
"type": "main",
"index": 0
}
]
]
},
"Image created": {
"main": [
[
{
"node": "Add Image URL",
"type": "main",
"index": 0
},
{
"node": "Tweet Generator",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"Download Image": {
"main": [
[
{
"node": "Send Tweet image for approval",
"type": "main",
"index": 0
}
],
[]
]
},
"Tweet Generator": {
"main": [
[
{
"node": "Download Image",
"type": "main",
"index": 0
}
]
]
},
"Prompt Generator": {
"main": [
[
{
"node": "Image Gen (Nano Banana)",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Prompt Generator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "Tweet Generator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Downlaod Image again": {
"main": [
[
{
"node": "post media",
"type": "main",
"index": 0
}
],
[]
]
},
"Google Sheets Trigger": {
"main": [
[
{
"node": "Prompt Generator",
"type": "main",
"index": 0
}
]
]
},
"Image Gen (Nano Banana)": {
"main": [
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"Send Tweet text for approval": {
"main": [
[
{
"node": "Approved",
"type": "main",
"index": 0
}
]
]
},
"Send Tweet image for approval": {
"main": [
[
{
"node": "Send Tweet text for approval",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 社交媒体, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Sulieman Said
@sulieman-said👋 Hi, I’m Sulieman – Founder of aufCopilot.de . I build custom n8n workflows, automations & AI integrations to help businesses save time and scale smarter. I share templates, answer questions and love exploring creative use cases – from lead generation to data workflows and AI-powered automations. 🚀 Always happy to connect, learn and contribute to the community. Although my profile is in English, I am a native German speaker and happy to work in both German and English projects.
分享此工作流