Automation library · Money admin

Generate Instagram posts with OpenAI and Gemini

Started by a clock, and works across Email. It hands the judgement calls to Gemini and OpenAI. 10 steps: a working afternoon to understand properly.

MediumCalls a model: Gemini, OpenAI

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

The flow

Starts it 1Model 3Logic 1Service 5

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3Basic LLM ChainChain LlmModel
  4. 4Read Text Files from DiskRead Write FileService
  5. 5Code-Split-LangChainCodeLogic
  6. 6Extract from Text FileExtract From FileService
  7. 7Convert Quote to FileConvert To FileService
  8. 8Write Text Files from DiskRead Write FileService
  9. 9Generate an imageGoogle GeminiModel
  10. 10Send emailEmail SendService

How it's built

Starts on
A clock
Steps
10
Size
Medium: a working afternoon
Connects to
Email
Model
Gemini, OpenAI

Questions

What does it need to run?

An n8n account, plus your own Email account, and a key for Gemini and OpenAI. 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 and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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