# Generate and publish Instagram carousels with Gemini: n8n workflow

> Started by a clock, and works across Google Drive, Google Sheets and Google Slides. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/generate-and-publish-instagram-carousels-with-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Generate and publish Instagram carousels with Gemini

Started by a clock, and works across Google Drive, Google Sheets and Google Slides. It hands the judgement calls to Gemini. 29 steps, 1 branch, 3 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-and-publish-instagram-carousels-with-gemini)

**29 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**3** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 7 Service 18

The steps in the order they run, from what starts it.

- 1 **Structured Output Parser1** Output Parser Structured *Model*
- 2 **Run daily schedule** Schedule trigger *Starts it*
- 3 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 4 **Generate carousel content** Agent *Model*
- 5 **Duplicate carousel template** Google Drive *Service*
- 6 **Replace text in template** Google Slides *Service*
- 7 **Get slides (carousels)** Google Slides *Service*
- 8 **Loop carousel slides** Split In Batches *Logic*
- 9 **Aggregate** Aggregate *Logic*
- 10 **get the imgs from slides** Google Slides *Service*
- 11 **add data** Google Sheets *Service*
- 12 **convert** Extract From File *Service*
- 13 **get data** Google Sheets *Service*
- 14 **make a link** Http Request *Service*
- 15 **get last row** Code *Logic*
- 16 **slide 1** Http Request *Service*
- 17 **slide 2** Http Request *Service*
- 18 **slide 3** Http Request *Service*
- 19 **slide 4** Http Request *Service*
- 20 **slide 5** Http Request *Service*
- 21 **slide 6** Http Request *Service*
- 22 **Container HTTP Carousel1** Http Request *Service*
- 23 **🔍 Check Processing Status2** Set *Logic*
- 24 **⏰ Initial Processing Wait1** Wait *Logic*
- 25 **Check publish status** Http Request *Service*
- 26 **Is carousel ready** If *Logic*
- 27 **publish** Http Request *Service*
- 28 **Retry publish check in 5 seconds** Wait *Logic*
- 29 **update status** Google Sheets *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 29, with 1 branch, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Google Sheets, Google Slides
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Google Drive, Google Sheets and Google Slides accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 29 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 29 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-and-publish-instagram-carousels-with-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Google Slides](https://millionrounds.com/workflows?service=Google+Slides#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Analyze website content changes with Gemini** 29 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/analyze-website-content-changes-with-gemini)
- [**Automate ASMR glass fruit video creation & publishing with Veo** 29 steps · calls a model · Google Cloud Storage, Google Sheets](https://millionrounds.com/workflow/automate-asmr-glass-fruit-video-creation-and-publishing-with)
- [**Automate LinkedIn content creation with OpenAI and Notion** 29 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/automate-linkedin-content-creation-with-openai-and-notion)
- [**Create faceless videos with Gemini and ElevenLabs** 29 steps · calls a model · Google Drive](https://millionrounds.com/workflow/create-faceless-videos-with-gemini-and-elevenlabs)
- [**Draft and track incident postmortems with OpenAI** 29 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/draft-and-track-incident-postmortems-with-openai)
- [**GPT-4o, RunwayML, ElevenLabs for Social Media with Gemini** 29 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/gpt-4o-runwayml-elevenlabs-for-social-media-with-gemini)
