Automation library · Scheduling

Schedule and auto-post images to Instagram with Google Sheets

Started by a clock, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 19 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

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

The flow

Starts it 1Model 2Logic 6Service 10

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

  1. 1Daily TriggerSchedule triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Workflow ConfigurationSetLogic
  4. 4Generate Caption and HashtagsAgentModel
  5. 5Get Next Scheduled PostGoogle SheetsService
  6. 6Post to InstagramFacebook Graph ApiService
  7. 7Check If Post FoundIfLogic
  8. 86b. Wait for Container ProcessingWaitLogic
  9. 9Get Access Token from FacebookHttp RequestService
  10. 10No More PostsCodeLogic
  11. 11Publish Post to InstagramFacebook Graph ApiService
  12. 12Search files and foldersGoogle DriveService
  13. 13Check Post SuccessIfLogic
  14. 14Download Image from DriveGoogle DriveService
  15. 15Update Sheet - PostedGoogle SheetsService
  16. 16Update Sheet - FailedGoogle SheetsService
  17. 17Upload Image to FacebookHttp RequestService
  18. 18Get Public URL From FacebookHttp RequestService
  19. 19Prepare AI ContextSetLogic

How it's built

Starts on
A clock
Steps
19, with 2 branches, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Google Drive, Google Sheets
Model
OpenAI

Questions

What does it need to run?

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

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.