Skip to main content

Generate social media ad images for FB/IG/Pinterest with Google Gemini Imagen

Workflow preview

Workflow preview
100%
Generate social media ad images for FB/IG/Pinterest with Google Gemini Imagen preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Purpose & Audience Perfect for marketing teams, agencies, solopreneurs, and e commerce brands who need fast, professional quality ad creatives — without hiring designers or using Canva. This workfl...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.telegram, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Malik Hashir.

Original n8n.io source

1.1 Workflow description

Title
Generate social media ad images for FB/IG/Pinterest with Google Gemini Imagen
Workflow name
Generate social media ad images for FB/IG/Pinterest with Google Gemini Imagen

Purpose & Audience

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 Gemini API).

What It Does

  1. Presents a user-friendly form to collect:
    • Business context
    • Offer/message
    • Brand colors
    • Target platform (FB/IG/Pinterest)
    • Desired ad dimensions (7 formats supported)
  2. Uses Google Gemini’s Imagen 3.0 model to generate platform-optimized images
  3. Delivers each image directly to your Telegram chat with clear captions

✅ Supports 7 ad formats:

  • Facebook Feed (1200×630)
  • Facebook Story (1080×1920)
  • Instagram Feed (1080×1080)
  • Instagram Story & Reel (1080×1920)
  • Pinterest Pin (1000×1500)
  • Pinterest Story (1080×1920)

How to Set Up

  1. Get a Google Gemini API key at ai.google.dev (enable Imagen API)
  2. Create a Telegram bot via @BotFather and note your Bot Token + Chat ID
  3. In n8n:
    • Import this workflow
    • Add Google Gemini credentials (use your API key)
    • Add Telegram credentials (use your Bot Token)
    • Replace ={{ $json.telegramChatId }} in Telegram nodes with your actual numeric Chat ID
  4. Activate the workflow and share the Form Trigger URL with your team!

💡 Pro Tip: Enhance prompts in Gemini nodes with style keywords (e.g., “minimalist”, “vibrant”, “corporate”) for better results.

100% free to use — only pay for Google Imagen API usage. Telegram delivery is free forever.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - 📝 Form Trigger

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.3

Block 2 - 🔀 Route by Dimensions

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 3 - 🎨 FB Story (1080x1920)

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 4 - 🎨 IG Feed (1080x1080)

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 5 - 🎨 IG Story (1080x1920)

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 6 - 🎨 IG Reel (1080x1920)

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 7 - 🎨 Pinterest Pin (1000x1500)

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 8 - 🎨 Pinterest Story (1080x1920)

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 9 - 📤 Send FB Feed

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - 📤 Send FB Story

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - 📤 Send IG Feed

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - 📤 Send IG Story

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - 📤 Send IG Reel

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 14 - 📤 Send Pinterest Pin

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 15 - 📤 Send Pinterest Story

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 16 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note14

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate social media ad images for FB/IG/Pinterest with Google Gemini Imagen
Complexity advanced
Nodes 32
Categories Content Creation, Multimodal AI
Author Malik Hashir
Published 08 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9374/9374.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate social media ad images for FB/IG/Pinterest with Google Gemini Imagen do?

Purpose & Audience Perfect for marketing teams, agencies, solopreneurs, and e commerce brands who need fast, professional quality ad creatives — without hiring designers or using Canva. This workfl...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.