Automation library · Content

Automated AI content creation & Instagram publishing

Started by a clock, and works across Google Sheets. It hands the judgement calls to Gemini. 18 steps, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: Gemini

18 stepsMedium: a working afternoon
0Branches: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Model 9Logic 3Service 5

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

  1. 1Scheduled Start: Check for New PostsSchedule triggerStarts it
  2. 2(LLM Model for Concept)Lm Chat Google GeminiModel
  3. 3(Parse Concept JSON)Output Parser StructuredModel
  4. 4(LLM Model for Prompts)Lm Chat Google GeminiModel
  5. 5(Parse Prompts JSON)Output Parser StructuredModel
  6. 6(LLM Model for Caption)Lm Chat Google GeminiModel
  7. 7(Parse Caption JSON)Output Parser StructuredModel
  8. 81. Get Next Post Idea from SheetGoogle SheetsService
  9. 93a. Generate Content Concept (Gemini)Chain LlmModel
  10. 103b. Generate Image Prompt Options (Gemini)Chain LlmModel
  11. 113c. Generate Post Caption (Gemini)Chain LlmModel
  12. 122. Prepare Input Variables (Topic, Audience, etc.)SetLogic
  13. 134. Generate Image using Prompt 1 (Replicate Flux)Http RequestService
  14. 145. Prepare Data for Instagram APISetLogic
  15. 156a. Create Instagram Media ContainerFacebook Graph ApiService
  16. 166b. Wait for Container ProcessingWaitLogic
  17. 176c. Publish Post to InstagramFacebook Graph ApiService
  18. 187. Update Post Status in SheetGoogle SheetsService

How it's built

Starts on
A clock
Steps
18, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Sheets
Model
Gemini

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, 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?

Plan an afternoon. 18 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 18 steps before you point it at anything that matters.