Skip to main content

Post daily AI-generated Instagram images from Google Sheets with GPT-4.1 Nano and Google Gemini

Workflow preview

Workflow preview
100%
Post daily AI-generated Instagram images from Google Sheets with GPT-4.1 Nano and Google Gemini preview
Open on n8n.io

1. Workflow Overview

A fully automated n8n workflow that runs every day at 1:10 PM IST and publishes a fresh AI generated image to Instagram — zero manual effort required after setup. It reads content ideas from a Goog...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-uploadtourl.uploadtourl, @mookielianhd/n8n-nodes-instagram.instagram, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.chainllm

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Post daily AI-generated Instagram images from Google Sheets with GPT-4.1 Nano and Google Gemini
Workflow name
Post daily AI-generated Instagram images from Google Sheets with GPT-4.1 Nano and Google Gemini

A fully automated n8n workflow that runs every day at 1:10 PM IST and publishes a fresh AI-generated image to Instagram — zero manual effort required after setup.

It reads content ideas from a Google Sheet, uses GPT-4.1 Nano to craft a cinematic image prompt and a niche-matched caption, generates the image with Google Gemini 2.5 Flash, uploads it to a public CDN called Upload to Url (https://uploadtourl.com) , posts it to Instagram, and logs everything back to the sheet.


✨ What This Workflow Does

  1. Triggers daily at 1:10 PM IST via Schedule Trigger
  2. Fetches a pending idea from a Google Sheet where Status = "Ready"
  3. Generates an image prompt + caption using GPT-4.1 Nano — tailored to the niche's aesthetic (luxury, minimalist, vibrant, etc.)
  4. Creates the image using Google Gemini 2.5 Flash Image model
  5. Uploads the image to a public CDN via UploadToURL (https://uploadtourl.com)
  6. Posts to Instagram as a feed post with the AI-generated caption
  7. Updates the Google Sheet row with the prompt, caption, image URL, and status "Posted"

🛠 Tools & Services Used

Tool Purpose
n8n Schedule Trigger Fires the workflow daily at 13:10
Google Sheets Stores content ideas and tracks post status
OpenAI GPT-4.1 Nano Generates image prompts and Instagram captions
Google Gemini 2.5 Flash Image Generates the AI image from the prompt
UploadToURL Hosts the image on a public CDN
Instagram Graph API Publishes the image as a feed post

📋 Google Sheet Structure

Your sheet (Instagram Posting) needs these columns:

Column Description
Idea/Niche The content topic (e.g. Minimalist Home, Luxury Cars)
Status Set to Ready to queue a post; auto-updated to Posted
Prompt Auto-filled with the AI-generated image prompt
Caption Auto-filled with the AI-generated Instagram caption
Image_URL Auto-filled with the CDN-hosted image link

⚙️ Setup Requirements

  • Google Sheets OAuth2 credentials connected to your spreadsheet
  • OpenAI API key (GPT-4.1 Nano)
  • Google Gemini (PaLM) API key
  • UploadToURL account and API credentials
  • Instagram Graph API credentials (connected Business/Creator account)

💡 How to Use

  1. Add your content ideas to the Google Sheet with Status = "Ready"
  2. Import this workflow into your n8n instance
  3. Connect all credentials
  4. Activate the workflow — it will auto-post daily at 1:10 PM IST

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

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 2 - Generate an image

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

Block 3 - Upload a File

Type / Role
n8n-nodes-uploadtourl.uploadToUrl - uploadToUrl
Config choices
Version 1

Block 4 - Publish

Type / Role
@mookielianhd/n8n-nodes-instagram.instagram - instagram
Config choices
Version 1

Block 5 - Update row in sheet

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

Block 6 - Get-Ideas

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

Block 7 - Sticky Note

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

Block 8 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 9 - Generate-Prompt-and-Caption

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.9

Block 10 - Sticky Note1

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - Sticky Note5

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

Block 15 - Sticky Note6

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

Block 16 - Sticky Note7

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

3. Summary Table

Workflow Post daily AI-generated Instagram images from Google Sheets with GPT-4.1 Nano and Google Gemini
Complexity advanced
Nodes 16
Categories Social Media, Multimodal AI
Author Jitesh Dugar
Published 28 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15364/15364.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 Post daily AI-generated Instagram images from Google Sheets with GPT-4.1 Nano and Google Gemini do?

A fully automated n8n workflow that runs every day at 1:10 PM IST and publishes a fresh AI generated image to Instagram — zero manual effort required after setup. It reads content ideas from a Goog...

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 Social Media, Multimodal AI use case.