Automation library · Content

Auto-generate Instagram carousels with OpenAI

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

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
3Loops or waits
1Service it connects to

The flow

Starts it 1Model 4Logic 8Service 11

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

  1. 1Item List Output ParserOutput Parser Item ListModel
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Schedule TriggerSchedule triggerStarts it
  4. 4Facebook PagesHttp RequestService
  5. 5Basic LLM ChainChain LlmModel
  6. 6Get PendingGoogle SheetsService
  7. 7ig-user-idHttp RequestService
  8. 8Loop Over ItemsSplit In BatchesLogic
  9. 9IfIfLogic
  10. 10IG User IDSetLogic
  11. 11IG images IDHttp RequestService
  12. 12OpenAI - Generate Image Http RequestService
  13. 13Generate Description for InstagramOpen AiModel
  14. 14Images ID ArrayCodeLogic
  15. 15Separate Image Outputs Split OutLogic
  16. 16IG Media CarouselHttp RequestService
  17. 17Convert to File Convert To FileService
  18. 18Wait1WaitLogic
  19. 19CloudinaryHttp RequestService
  20. 20IG post MediaHttp RequestService
  21. 21URLSetLogic
  22. 22CompletedGoogle SheetsService
  23. 23WaitWaitLogic
  24. 24Next PendingGoogle SheetsService

How it's built

Starts on
A clock
Steps
24, with 1 branch, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
OpenAI

Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 24 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 24 steps before you point it at anything that matters.