使用 Google Gemini Imagen 为 FB/IG/Pinterest 生成社交媒体广告图片
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 32 个节点。主要使用 Switch, Telegram, FormTrigger, GoogleGemini 等节点。 使用 Google Gemini Imagen 为 FB/IG/Pinterest 生成社交媒体广告图片
前置要求
- •Telegram Bot Token
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "76f564ce9e1f496ea6c3533f155d5217a31a74b1b62bea30c37742947aa7de7c",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "aaaef0b0-91fd-49d6-ad8b-6703aaff5719",
"name": "📝 表单触发器",
"type": "n8n-nodes-base.formTrigger",
"notes": "SETUP:\n1. Configure form fields as shown\n2. Copy webhook URL after saving\n3. Share URL with users\n\nNOTE: This captures user inputs for ad generation",
"position": [
1984,
3184
],
"webhookId": "ad-generator-form",
"parameters": {},
"typeVersion": 2.3
},
{
"id": "84afb4ae-95b0-49fe-96b5-04a0d90c5189",
"name": "🔀 按维度路由",
"type": "n8n-nodes-base.switch",
"notes": "SETUP:\n1. Already configured with 7 dimension routes\n2. Enable 'Output All Matching' in options\n3. Each output triggers corresponding image generation\n\nNOTE: Creates separate paths for each selected dimension",
"position": [
2448,
3104
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "47526ff8-0fb3-4df6-b05b-79ffe640d5e4",
"name": "🎨 FB快拍 (1080x1920)",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"notes": "SETUP:\n1. Same API credentials as other Gemini nodes\n2. Set aspect ratio: 9:16\n3. Optimized for vertical story format\n\nNOTE: Creates vertical story-format image",
"position": [
3808,
2608
],
"parameters": {},
"typeVersion": 1
},
{
"id": "258488d9-4aad-4357-9baa-3cc5b3bd27c2",
"name": "🎨 IG动态 (1080x1080)",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"notes": "SETUP:\n1. Same API credentials\n2. Set aspect ratio: 1:1 (square)\n3. Instagram feed optimized prompt\n\nNOTE: Perfect square for IG feed posts",
"position": [
3808,
2784
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c1c1fc06-3a06-4f44-a0cd-857ed17a6859",
"name": "🎨 IG快拍 (1080x1920)",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"notes": "SETUP:\n1. Same API credentials\n2. Set aspect ratio: 9:16\n3. Story-optimized vertical design\n\nNOTE: Vertical format for IG Stories",
"position": [
3808,
2960
],
"parameters": {},
"typeVersion": 1
},
{
"id": "f3a20164-ec38-4140-94f4-649997d3ec3a",
"name": "🎨 IG短视频 (1080x1920)",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"notes": "SETUP:\n1. Same API credentials\n2. Set aspect ratio: 9:16\n3. Designed for Reels thumbnails\n\nNOTE: Optimized for video content covers",
"position": [
3808,
3136
],
"parameters": {},
"typeVersion": 1
},
{
"id": "aecc6084-767a-4266-b29f-bd7d771dc0f8",
"name": "🎨 Pinterest图钉 (1000x1500)",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"notes": "SETUP:\n1. Same API credentials\n2. Set aspect ratio: 2:3\n3. Pinterest-style tall pin format\n\nNOTE: Standard Pinterest pin dimensions",
"position": [
3808,
3328
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a6124726-1f33-4d3c-a5ac-b78506e7e02f",
"name": "🎨 Pinterest快拍 (1080x1920)",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"notes": "SETUP:\n1. Same API credentials\n2. Set aspect ratio: 9:16\n3. Pinterest Story format\n\nNOTE: Story-style vertical pin",
"position": [
3808,
3536
],
"parameters": {},
"typeVersion": 1
},
{
"id": "38aa5c3d-ad0f-42a2-9605-03be9a35f3f8",
"name": "📤 发送FB动态",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Create Telegram bot via @BotFather\n2. Add bot token to credentials\n3. Get your chat ID (message bot, use /getUpdates)\n4. Add chat ID to node settings\n\nNOTE: Sends generated image with caption",
"position": [
4416,
2448
],
"webhookId": "f5a5a886-8808-4fc6-a0c8-ea698f9ca400",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "02845408-b1d4-435f-ab74-1c2a03ed2750",
"name": "📤 发送FB快拍",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same Telegram credentials as above\n2. Same chat ID\n3. Caption includes format details\n\nNOTE: Delivers story format image",
"position": [
4416,
2640
],
"webhookId": "0b185df3-d19d-47f6-8e23-e6f9945d6780",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "e734a918-9a5d-4739-a776-cfb48cac30a5",
"name": "📤 发送IG动态",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Optimized caption for IG\n\nNOTE: Square format delivery",
"position": [
4416,
2816
],
"webhookId": "0cf63f18-ee84-495b-89b7-9259682a435b",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "546d7d2d-7b70-44a6-95c7-ef38c812cfbb",
"name": "📤 发送IG快拍",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Story format caption\n\nNOTE: Vertical story delivery",
"position": [
4416,
2992
],
"webhookId": "807c9284-2f35-4240-87eb-d0575214c3af",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "196fce88-de69-4981-9e1e-f6ac71937a39",
"name": "📤 发送IG短视频",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Reel-optimized caption\n\nNOTE: Video thumbnail format",
"position": [
4416,
3168
],
"webhookId": "3763612a-45e8-4359-bf79-5e173c861035",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "7dcda54a-0b8b-4c96-8db8-278c4756b2cb",
"name": "📤 发送Pinterest图钉",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Pinterest-specific caption\n\nNOTE: Tall pin format delivery",
"position": [
4416,
3360
],
"webhookId": "b005a861-9d93-4f51-9b6c-b012a8da2660",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "23412497-82b7-40b0-b771-8a07025f9a90",
"name": "📤 发送Pinterest快拍",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Story pin caption\n\nNOTE: Pinterest story format delivery",
"position": [
4416,
3568
],
"webhookId": "324fc16a-4773-47d6-ad7a-d0e0960abaec",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "f1bdc137-2329-40ee-b94c-4e06e1e2deef",
"name": "便签11",
"type": "n8n-nodes-base.stickyNote",
"position": [
3040,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "bb933707-d815-46f0-875b-cd79da792075",
"name": "便签12",
"type": "n8n-nodes-base.stickyNote",
"position": [
3424,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a239af9e-576d-4f5c-8816-2f49af15618f",
"name": "便签13",
"type": "n8n-nodes-base.stickyNote",
"position": [
3792,
3872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "64819d3c-966a-40cf-adb9-97cebc83e83b",
"name": "便签14",
"type": "n8n-nodes-base.stickyNote",
"position": [
4288,
3872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "bdd2def6-7bd6-47a9-b40a-7a13dc484419",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
2208,
1872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "83bd0934-4e29-43fe-989f-7773d116220e",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1808,
1872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "09edeec4-f1f5-43a4-a4da-b8ef21f76dba",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1872,
2752
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "22b11177-7f4b-4f93-9c97-0ffaf72978cf",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2336,
2592
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "acb37246-3c0c-4b35-95ef-b375aa7b3793",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
3680,
1984
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "aa6c9cd5-315f-4742-b169-b5dbb8f5397f",
"name": "便利贴5",
"type": "n8n-nodes-base.stickyNote",
"position": [
4272,
1808
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "28b4450d-1ecf-4c5c-b8f4-66614e114263",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
2608,
1872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "fb806e42-f2f8-41a9-8b97-b143e4905b1d",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
2960,
1872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "189632b7-00f9-47fc-8238-00830a6ad34f",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
1824,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "84c3ca48-d584-452d-a739-f1681a241ea5",
"name": "便签 9",
"type": "n8n-nodes-base.stickyNote",
"position": [
2288,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e3d4dab2-8905-4c7d-8e45-f039ebcac00e",
"name": "便签10",
"type": "n8n-nodes-base.stickyNote",
"position": [
2672,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "066a9ea7-d59d-4970-a476-cf855c5e58bb",
"name": "🎨 FB动态 (1200x630) -gemini",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"notes": "SETUP:\n1. Add Google Gemini API credentials\n2. Select model: imagen-3.0-generate-001\n3. Set aspect ratio: 16:9\n4. Prompt auto-populates from form data\n\nNOTE: Generates landscape image for FB Feed",
"position": [
3808,
2464
],
"parameters": {},
"typeVersion": 1
},
{
"id": "52d0b9bd-aea3-469a-a44e-3b4bf0c04f20",
"name": "便签15",
"type": "n8n-nodes-base.stickyNote",
"position": [
1616,
1680
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"📝 Form Trigger": {
"main": [
[
{
"node": "🔀 Route by Dimensions",
"type": "main",
"index": 0
}
]
]
},
"🎨 IG Feed (1080x1080)": {
"main": [
[
{
"node": "📤 Send IG Feed",
"type": "main",
"index": 0
}
]
]
},
"🎨 IG Reel (1080x1920)": {
"main": [
[
{
"node": "📤 Send IG Reel",
"type": "main",
"index": 0
}
]
]
},
"🔀 Route by Dimensions": {
"main": [
[
{
"node": "🎨 FB Feed (1200x630) -gemini",
"type": "main",
"index": 0
}
],
[
{
"node": "🎨 FB Story (1080x1920)",
"type": "main",
"index": 0
}
],
[
{
"node": "🎨 IG Feed (1080x1080)",
"type": "main",
"index": 0
}
],
[
{
"node": "🎨 IG Story (1080x1920)",
"type": "main",
"index": 0
}
],
[
{
"node": "🎨 IG Reel (1080x1920)",
"type": "main",
"index": 0
}
],
[
{
"node": "🎨 Pinterest Pin (1000x1500)",
"type": "main",
"index": 0
}
],
[
{
"node": "🎨 Pinterest Story (1080x1920)",
"type": "main",
"index": 0
}
]
]
},
"🎨 FB Story (1080x1920)": {
"main": [
[
{
"node": "📤 Send FB Story",
"type": "main",
"index": 0
}
]
]
},
"🎨 IG Story (1080x1920)": {
"main": [
[
{
"node": "📤 Send IG Story",
"type": "main",
"index": 0
}
]
]
},
"🎨 Pinterest Pin (1000x1500)": {
"main": [
[
{
"node": "📤 Send Pinterest Pin",
"type": "main",
"index": 0
}
]
]
},
"🎨 FB Feed (1200x630) -gemini": {
"main": [
[
{
"node": "📤 Send FB Feed",
"type": "main",
"index": 0
}
]
]
},
"🎨 Pinterest Story (1080x1920)": {
"main": [
[
{
"node": "📤 Send Pinterest Story",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 Gemini 和 Ideogram AI 通过网站抓取为 FB、IG 和 Pinterest 生成社交媒体广告
使用 Gemini 和 Ideogram AI 通过网站抓取为 FB、IG 和 Pinterest 生成社交媒体广告
Set
Slack
Switch
+4
38 节点Malik Hashir
内容创作
Gemini AI和CoinGecko的Telegram实时加密货币价格机器人
Gemini AI和CoinGecko的Telegram实时加密货币价格机器人
Set
Code
Telegram
+4
13 节点Malik Hashir
内容创作
自动化特朗普Truth Social监控与Telegram和Discord警报
自动化特朗普Truth Social监控与Telegram和Discord警报
If
Code
Limit
+6
16 节点Malik Hashir
内容创作
通过RapidAPI自动发送经济日历PDF报告到Telegram
通过RapidAPI自动发送经济日历PDF报告到Telegram
Set
Code
Telegram
+3
19 节点Malik Hashir
内容创作
使用Gemini 2.5 Pro和TwelveData通过Telegram机器人生成股票交易信号
使用Gemini 2.5 Pro和TwelveData通过Telegram机器人生成股票交易信号
Set
Code
Wait
+9
36 节点Malik Hashir
内容创作
成分分析
使用Telegram和Gemini 2.5 Flash分析产品成分照片
If
Switch
Telegram
+6
17 节点Parth Pansuriya
内容创作