Skip to main content

Batch Ad Banner Generator with gpt-image-2 and Sharp

Workflow preview

Workflow preview
100%
Batch Ad Banner Generator with gpt-image-2 and Sharp preview
Open on n8n.io

1. Workflow Overview

This workflow automates batch ad banner production from existing source images. It is designed for teams that already store campaign source images in Google Drive and want to generate multiple ad f...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.openai

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Batch Ad Banner Generator with gpt-image-2 and Sharp
Workflow name
Batch Ad Banner Generator with gpt-image-2 and Sharp
  • This workflow automates batch ad banner production from existing source images.

  • It is designed for teams that already store campaign source images in Google Drive and want to generate multiple ad formats such as 300x250, 728x90, 160x600, 320x100, 300x50, and 970x250.

  • The workflow uses Google Sheets as the job queue. Each row contains the source Google Drive file ID, edit instruction, headline, CTA, target banner sizes, and output folder ID. n8n downloads the source image from Google Drive, passes it to the native OpenAI Edit Image node for optional refinement, then uses a Code node with sharp to crop and resize the image into exact pixel dimensions. The generated banners are uploaded back to Google Drive, and the workflow updates the original Google Sheets row with output links, file names, timestamp, and status.

  • This approach avoids asking an image model to generate every ad size directly. The model handles the creative refinement, while sharp handles deterministic resizing and exact banner dimensions.

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 - Manual Trigger

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

Block 2 - Sticky Note - Overview

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

Block 3 - Sticky Note - Sheet Format

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

Block 4 - Sticky Note - Sharp Setup

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

Block 5 - Google Sheets - Read Jobs

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 6 - Code - Normalize Pending Rows

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Split In Batches

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 8 - Google Drive - Download Source Image

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 9 - Edit image

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 10 - Code - Build Banner Sizes With Sharp

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Google Drive - Upload Banner

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 12 - Code - Collect Upload Links

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Google Sheets - Update Result

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

3. Summary Table

Workflow Batch Ad Banner Generator with gpt-image-2 and Sharp
Complexity intermediate
Nodes 13
Categories Content Creation, Multimodal AI
Author Leo Wood
Published 20 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15837/15837.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 Batch Ad Banner Generator with gpt-image-2 and Sharp do?

This workflow automates batch ad banner production from existing source images. It is designed for teams that already store campaign source images in Google Drive and want to generate multiple ad f...

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.