# Generate and publish weekly social posts with Gemini: n8n workflow

> Started by someone submitting a form, and works across Google Drive and Google Sheets. 19 steps, 1 branch, 2 loops or waits: a working afternoon to...

Source: https://millionrounds.com/workflow/generate-and-publish-weekly-social-posts-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 weekly social posts with Gemini

Started by someone submitting a form, and works across Google Drive and Google Sheets. 19 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

Medium

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

**19 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Logic 8 Service 9

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

- 1 **New Content Calendar Request** Form trigger *Starts it*
- 2 **Daily Publish Trigger (9AM)** Schedule trigger *Starts it*
- 3 **Prepare Calendar Config** Set *Logic*
- 4 **Get Today's Scheduled Posts** Google Sheets *Service*
- 5 **Generate 7-Day Content Plan (Gemini AI)** Http Request *Service*
- 6 **Filter Status = Scheduled** Filter *Logic*
- 7 **Parse AI Response Into Daily Posts** Code *Logic*
- 8 **Any Posts Today?** If *Logic*
- 9 **Loop Through Each Day** Split In Batches *Logic*
- 10 **Loop Through Today's Posts** Split In Batches *Logic*
- 11 **No Posts Today** No Op *Logic*
- 12 **Generate Post Image (Gemini AI)** Http Request *Service*
- 13 **Publish to Social Media (Ayrshare)** Http Request *Service*
- 14 **Convert Image to File** Convert To File *Service*
- 15 **Mark Post as Published** Google Sheets *Service*
- 16 **Upload Image to Google Drive** Google Drive *Service*
- 17 **Make Image Public** Google Drive *Service*
- 18 **Format Post Row** Set *Logic*
- 19 **Save Post to Calendar Sheet** Google Sheets *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 19, with 1 branch, 2 loops or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Google Drive, Google Sheets
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

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 19 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-weekly-social-posts-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)

## Workflows like it

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

- [**Auto-extract & distribute video clips** 19 steps · Google Sheets](https://millionrounds.com/workflow/auto-extract-and-distribute-video-clips)
- [**Automate S3 video transcoding, thumbnail generation & CDN** 19 steps · Google Sheets, Slack](https://millionrounds.com/workflow/automate-s3-video-transcoding-thumbnail-generation-and-cdn)
- [**Build a multi-site content aggregator with Google Sheets** 19 steps · Google Sheets](https://millionrounds.com/workflow/build-a-multi-site-content-aggregator-with-google-sheets)
- [**CLIP FACTORY – Long-Form to Shorts Production & Publishing System** 19 steps · Google Sheets](https://millionrounds.com/workflow/clip-factory-long-form-to-shorts-production-and-publishing-s)
- [**Log weekly SEO technical audits with Google PageSpeed** 19 steps · Google Sheets](https://millionrounds.com/workflow/log-weekly-seo-technical-audits-with-google-pagespeed)
- [**Send post-delivery CSAT surveys and log responses with Gmail** 19 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/send-post-delivery-csat-surveys-and-log-responses-with-gmail)
