# Schedule and auto-post images to Instagram with Google Sheets: n8n workflow

> Started by a clock, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/schedule-and-auto-post-images-to-instagram-with-google-sheet (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Scheduling](https://millionrounds.com/workflows?category=Scheduling#library)

# 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.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fschedule-and-auto-post-images-to-instagram-with-google-sheet)

**19 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 6 Service 10

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

- 1 **Daily Trigger** Schedule trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Workflow Configuration** Set *Logic*
- 4 **Generate Caption and Hashtags** Agent *Model*
- 5 **Get Next Scheduled Post** Google Sheets *Service*
- 6 **Post to Instagram** Facebook Graph Api *Service*
- 7 **Check If Post Found** If *Logic*
- 8 **6b. Wait for Container Processing** Wait *Logic*
- 9 **Get Access Token from Facebook** Http Request *Service*
- 10 **No More Posts** Code *Logic*
- 11 **Publish Post to Instagram** Facebook Graph Api *Service*
- 12 **Search files and folders** Google Drive *Service*
- 13 **Check Post Success** If *Logic*
- 14 **Download Image from Drive** Google Drive *Service*
- 15 **Update Sheet - Posted** Google Sheets *Service*
- 16 **Update Sheet - Failed** Google Sheets *Service*
- 17 **Upload Image to Facebook** Http Request *Service*
- 18 **Get Public URL From Facebook** Http Request *Service*
- 19 **Prepare AI Context** Set *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fschedule-and-auto-post-images-to-instagram-with-google-sheet)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also scheduling, with the same services where possible, closest in size first.

- [**AI Calling Agent with Retell AI and Google Calendar Scheduling** 19 steps · calls a model · Google Calendar, Google Sheets](https://millionrounds.com/workflow/ai-calling-agent-with-retell-ai-and-google-calendar-scheduli)
- [**Actioning your meeting next steps with OpenAI** 19 steps · calls a model · Google Calendar, Google Drive](https://millionrounds.com/workflow/actioning-your-meeting-next-steps-with-openai)
- [**Automate email triage & meeting scheduling with Gmail** 19 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/automate-email-triage-and-meeting-scheduling-with-gmail)
- [**Automate meeting summaries & action items with Google Meet** 19 steps · calls a model · Google Calendar, Google Drive](https://millionrounds.com/workflow/automate-meeting-summaries-and-action-items-with-google-meet)
- [**Generate and schedule social media posts with OpenAI** 19 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/generate-and-schedule-social-media-posts-with-openai-2)
- [**Organize school emails with Google Calendar and Drive** 19 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/organize-school-emails-with-google-calendar-and-drive)
