Skip to main content

Generate and publish Instagram carousels with Gemini and Google Slides

Workflow preview

Workflow preview
100%
Generate and publish Instagram carousels with Gemini and Google Slides preview
Open on n8n.io

1. Workflow Overview

Generate and publish Instagram carousels automatically Turn a single topic into a published Instagram Carousel in minutes. Creating educational carousel posts usually takes hours: writing the scrip...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.aggregate, n8n-nodes-base.wait, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.googleslides, n8n-nodes-base.extractfromfile, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate and publish Instagram carousels with Gemini and Google Slides
Workflow name
Generate and publish Instagram carousels with Gemini and Google Slides

Generate and publish Instagram carousels automatically

Turn a single topic into a published Instagram Carousel in minutes.

Creating educational carousel posts usually takes hours: writing the script, designing the slides in Figma/Canva, exporting images, and scheduling. This workflow automates the entire pipeline using Gemini AI, Google Slides, and the Meta Graph API.

It generates the content, designs the visuals by manipulating a template, and publishes the carousel directly to your Instagram Business account.

๐Ÿš€ What this workflow does

  1. Script Generation: Runs daily (or on demand) to prompt Google Gemini to write a 6-slide educational script (Hook, Mistake, Why It Matters, Value, Tip, CTA).
  2. Design Automation:
  • Copies a master Google Slides template.
  • Uses a "Find & Replace" operation to insert the AI-generated text into the correct placeholders.
  • Generates thumbnail images for each slide.
  1. Image Hosting: Uploads the slide images to ImgBB to get public URLs (required by Meta's API).
  2. Publishing:
  • Creates a carousel container on Instagram using the Meta Graph API.
  • Checks the container status until it is "FINISHED".
  • Publishes the media to your feed.
  1. Logging: Records the post details, captions, and status in Google Sheets.

๐Ÿ’ก Key Features

  • True Design Automation: Doesn't just overlay text on images; it uses real Google Slides templates, allowing for complex layouts and branding.
  • Smart Polling: Includes a "Wait & Check" loop to ensure the media container is fully processed by Facebook before attempting to publish (prevents API errors).
  • Structured Content: The AI is prompted to follow a proven "Viral Educational" framework (Hook -> Value -> Action).
  • Asset Management: Automatically organizes generated slide images and links in Google Sheets for your archives.

๐Ÿ› ๏ธ Prerequisites

  • Google Cloud: Enabled APIs for Drive, Slides, Sheets, and Gemini.
  • Meta Developer App: An Instagram Business account connected to a Facebook Page, with a System User token (instagram_basic, instagram_content_publish, pages_read_engagement).
  • ImgBB Account: A free API key for temporary image hosting.
  • Templates: A Google Sheet and Google Slide template (links provided in the workflow sticky notes).

๐Ÿ“ Setup Instructions

  1. Resources: Copy the provided Google Sheet and Slide templates to your Drive.
  2. Credentials: Authenticate Google, Meta, and ImgBB in n8n.
  3. Configuration:
  • Update the Google Drive node with your Slide Template ID.
  • Update the Google Sheets nodes with your Sheet ID.
  • Update the HTTP Request nodes with your ImgBB API Key and Instagram Account ID.
  1. Run: Activate the schedule or click "Execute" to generate your first post!

Need help setting this up or want a custom automation for your agency? I specialize in building agentic workflows for consultants and agencies.

๐Ÿ“ง Contact me: [email protected]

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 - Structured Output Parser1

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

Block 2 - Aggregate

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

Block 3 - โฐ Initial Processing Wait1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 4 - ๐Ÿ” Check Processing Status2

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - Container HTTP Carousel1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - make a link

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - get the imgs from slides

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

Block 8 - convert

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

Block 9 - add data

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

Block 10 - get data

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

Block 11 - get last row

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

Block 12 - update status

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

Block 13 - publish

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Main Guide

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

Block 15 - Sticky Note

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

Block 16 - Sticky Note3

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

Block 17 - Run daily schedule

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

Block 18 - Generate carousel content

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 19 - Loop carousel slides

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

Block 20 - Check publish status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 21 - Is carousel ready

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 22 - Retry publish check in 5 seconds

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 23 - Google Gemini Chat Model1

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

Block 24 - Replace text in template

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

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

3. Summary Table

Workflow Generate and publish Instagram carousels with Gemini and Google Slides
Complexity advanced
Nodes 36
Categories Content Creation, Multimodal AI
Author Bakdaulet Abdikhan
Published 03 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12413/12413.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 and publish Instagram carousels with Gemini and Google Slides do?

Generate and publish Instagram carousels automatically Turn a single topic into a published Instagram Carousel in minutes. Creating educational carousel posts usually takes hours: writing the scrip...

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.