This workflow corresponds to n8n.io template #9374 — we link there as the canonical source.
This workflow follows the Form Trigger → Googlegemini recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "aaaef0b0-91fd-49d6-ad8b-6703aaff5719",
"name": "\ud83d\udcdd Form Trigger",
"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
],
"parameters": {},
"typeVersion": 2.3
},
{
"id": "84afb4ae-95b0-49fe-96b5-04a0d90c5189",
"name": "\ud83d\udd00 Route by Dimensions",
"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": "\ud83c\udfa8 FB Story (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": "\ud83c\udfa8 IG Feed (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": "\ud83c\udfa8 IG Story (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": "\ud83c\udfa8 IG Reel (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": "\ud83c\udfa8 Pinterest Pin (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": "\ud83c\udfa8 Pinterest Story (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": "\ud83d\udce4 Send FB Feed",
"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
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "02845408-b1d4-435f-ab74-1c2a03ed2750",
"name": "\ud83d\udce4 Send FB Story",
"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
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "e734a918-9a5d-4739-a776-cfb48cac30a5",
"name": "\ud83d\udce4 Send IG Feed",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Optimized caption for IG\n\nNOTE: Square format delivery",
"position": [
4416,
2816
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "546d7d2d-7b70-44a6-95c7-ef38c812cfbb",
"name": "\ud83d\udce4 Send IG Story",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Story format caption\n\nNOTE: Vertical story delivery",
"position": [
4416,
2992
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "196fce88-de69-4981-9e1e-f6ac71937a39",
"name": "\ud83d\udce4 Send IG Reel",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Reel-optimized caption\n\nNOTE: Video thumbnail format",
"position": [
4416,
3168
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "7dcda54a-0b8b-4c96-8db8-278c4756b2cb",
"name": "\ud83d\udce4 Send Pinterest Pin",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Pinterest-specific caption\n\nNOTE: Tall pin format delivery",
"position": [
4416,
3360
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "23412497-82b7-40b0-b771-8a07025f9a90",
"name": "\ud83d\udce4 Send Pinterest Story",
"type": "n8n-nodes-base.telegram",
"notes": "SETUP:\n1. Same credentials\n2. Story pin caption\n\nNOTE: Pinterest story format delivery",
"position": [
4416,
3568
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "f1bdc137-2329-40ee-b94c-4e06e1e2deef",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
3040,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "bb933707-d815-46f0-875b-cd79da792075",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
3424,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a239af9e-576d-4f5c-8816-2f49af15618f",
"name": "Sticky Note13",
"type": "n8n-nodes-base.stickyNote",
"position": [
3792,
3872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "64819d3c-966a-40cf-adb9-97cebc83e83b",
"name": "Sticky Note14",
"type": "n8n-nodes-base.stickyNote",
"position": [
4288,
3872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "bdd2def6-7bd6-47a9-b40a-7a13dc484419",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
2208,
1872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "83bd0934-4e29-43fe-989f-7773d116220e",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1808,
1872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "09edeec4-f1f5-43a4-a4da-b8ef21f76dba",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1872,
2752
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "22b11177-7f4b-4f93-9c97-0ffaf72978cf",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
2336,
2592
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "acb37246-3c0c-4b35-95ef-b375aa7b3793",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
3680,
1984
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "aa6c9cd5-315f-4742-b169-b5dbb8f5397f",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
4272,
1808
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "28b4450d-1ecf-4c5c-b8f4-66614e114263",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
2608,
1872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "fb806e42-f2f8-41a9-8b97-b143e4905b1d",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
2960,
1872
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "189632b7-00f9-47fc-8238-00830a6ad34f",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
1824,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "84c3ca48-d584-452d-a739-f1681a241ea5",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"position": [
2288,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e3d4dab2-8905-4c7d-8e45-f039ebcac00e",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"position": [
2672,
3856
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "066a9ea7-d59d-4970-a476-cf855c5e58bb",
"name": "\ud83c\udfa8 FB Feed (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": "Sticky Note15",
"type": "n8n-nodes-base.stickyNote",
"position": [
1616,
1680
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"connections": {
"\ud83d\udcdd Form Trigger": {
"main": [
[
{
"node": "\ud83d\udd00 Route by Dimensions",
"type": "main",
"index": 0
}
]
]
},
"\ud83c\udfa8 IG Feed (1080x1080)": {
"main": [
[
{
"node": "\ud83d\udce4 Send IG Feed",
"type": "main",
"index": 0
}
]
]
},
"\ud83c\udfa8 IG Reel (1080x1920)": {
"main": [
[
{
"node": "\ud83d\udce4 Send IG Reel",
"type": "main",
"index": 0
}
]
]
},
"\ud83d\udd00 Route by Dimensions": {
"main": [
[
{
"node": "\ud83c\udfa8 FB Feed (1200x630) -gemini",
"type": "main",
"index": 0
}
],
[
{
"node": "\ud83c\udfa8 FB Story (1080x1920)",
"type": "main",
"index": 0
}
],
[
{
"node": "\ud83c\udfa8 IG Feed (1080x1080)",
"type": "main",
"index": 0
}
],
[
{
"node": "\ud83c\udfa8 IG Story (1080x1920)",
"type": "main",
"index": 0
}
],
[
{
"node": "\ud83c\udfa8 IG Reel (1080x1920)",
"type": "main",
"index": 0
}
],
[
{
"node": "\ud83c\udfa8 Pinterest Pin (1000x1500)",
"type": "main",
"index": 0
}
],
[
{
"node": "\ud83c\udfa8 Pinterest Story (1080x1920)",
"type": "main",
"index": 0
}
]
]
},
"\ud83c\udfa8 FB Story (1080x1920)": {
"main": [
[
{
"node": "\ud83d\udce4 Send FB Story",
"type": "main",
"index": 0
}
]
]
},
"\ud83c\udfa8 IG Story (1080x1920)": {
"main": [
[
{
"node": "\ud83d\udce4 Send IG Story",
"type": "main",
"index": 0
}
]
]
},
"\ud83c\udfa8 Pinterest Pin (1000x1500)": {
"main": [
[
{
"node": "\ud83d\udce4 Send Pinterest Pin",
"type": "main",
"index": 0
}
]
]
},
"\ud83c\udfa8 FB Feed (1200x630) -gemini": {
"main": [
[
{
"node": "\ud83d\udce4 Send FB Feed",
"type": "main",
"index": 0
}
]
]
},
"\ud83c\udfa8 Pinterest Story (1080x1920)": {
"main": [
[
{
"node": "\ud83d\udce4 Send Pinterest Story",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Perfect for marketing teams, agencies, solopreneurs, and e-commerce brands who need fast, professional-quality ad creatives — without hiring designers or using Canva. This workflow automates image generation for Facebook, Instagram, and Pinterest using Google’s Imagen 3.0 (via…
Source: https://n8n.io/workflows/9374/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow serves as a complete "AI Receptionist" for mortgage brokers or high-ticket service providers. It automates the messy process of qualifying leads, getting internal approval, and collectin
following up on every lead by hand is slow, inconsistent, and lets good opportunities slip. by the time you read a form submission, write a reply, and figure out what to do next — the lead has moved o
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
Most expense tracker apps (like Money Lover, Spendee, or Wallet) have a common friction point: Data Entry. You have to unlock your phone, find the app, wait for it to load, navigate menus, and manuall
This workflow showcases various useful Gmail search, filter, and AI categorization operations and generates a knowledge graph for your mail using the InfraNodus GraphRAG API, which you can use to reve