Automation library · Content

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

19 stepsMedium: a working afternoon
1Branch: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 2Logic 8Service 9

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

  1. 1New Content Calendar RequestForm triggerStarts it
  2. 2Daily Publish Trigger (9AM)Schedule triggerStarts it
  3. 3Prepare Calendar ConfigSetLogic
  4. 4Get Today's Scheduled PostsGoogle SheetsService
  5. 5Generate 7-Day Content Plan (Gemini AI)Http RequestService
  6. 6Filter Status = ScheduledFilterLogic
  7. 7Parse AI Response Into Daily PostsCodeLogic
  8. 8Any Posts Today?IfLogic
  9. 9Loop Through Each DaySplit In BatchesLogic
  10. 10Loop Through Today's PostsSplit In BatchesLogic
  11. 11No Posts TodayNo OpLogic
  12. 12Generate Post Image (Gemini AI)Http RequestService
  13. 13Publish to Social Media (Ayrshare)Http RequestService
  14. 14Convert Image to FileConvert To FileService
  15. 15Mark Post as PublishedGoogle SheetsService
  16. 16Upload Image to Google DriveGoogle DriveService
  17. 17Make Image PublicGoogle DriveService
  18. 18Format Post RowSetLogic
  19. 19Save Post to Calendar SheetGoogle SheetsService

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.