# Scheduled Google Drive monitoring with Postgres: n8n workflow

> Started by a clock, and works across Google Drive and Postgres. 13 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/scheduled-google-drive-monitoring-with-postgres (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Scheduled Google Drive monitoring with Postgres

Started by a clock, and works across Google Drive and Postgres. 13 steps, 2 branches, 1 loop or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscheduled-google-drive-monitoring-with-postgres)

**13 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 Logic 9 Service 3

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Find Files In Folder** Google Drive *Service*
- 3 **Normalize Data** Code *Logic*
- 4 **Get Tracked File Data** Postgres *Service*
- 5 **Evaluate Edits** Code *Logic*
- 6 **Loop Over Items1** Split In Batches *Logic*
- 7 **Merge after Processing Complete** Merge *Logic*
- 8 **Check File Operation** Switch *Logic*
- 9 **If** If *Logic*
- 10 **File Added Processing** No Op *Logic*
- 11 **File Modified Processing** No Op *Logic*
- 12 **File Deleted Processing** No Op *Logic*
- 13 **Update File Metadata** Postgres *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 13, with 2 branches, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Google Drive, Postgres
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Google Drive and Postgres accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 13 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 13 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%2Fscheduled-google-drive-monitoring-with-postgres)
- **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)[Postgres](https://millionrounds.com/workflows?service=Postgres#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Archive Music3AI preview packs to Google Drive and notify Slack** 13 steps · Google Drive, Slack](https://millionrounds.com/workflow/archive-music3ai-preview-packs-to-google-drive-and-notify-sl)
- [**Automate offer letters & notifications with Google Sheets** 13 steps · Gmail, Google Drive](https://millionrounds.com/workflow/automate-offer-letters-and-notifications-with-google-sheets)
- [**Error handling system with Postgres** 13 steps · Email, Postgres](https://millionrounds.com/workflow/error-handling-system-with-postgres)
- [**Generate videos with Veo3 Fast API and Google Drive** 13 steps · Email, Google Drive](https://millionrounds.com/workflow/generate-videos-with-veo3-fast-api-and-google-drive)
- [**Instagram carousel posts from Google Drive with Cloudinary** 13 steps · Google Drive, Telegram](https://millionrounds.com/workflow/instagram-carousel-posts-from-google-drive-with-cloudinary)
- [**Real-time flight tracking with Aviation API and Slack** 13 steps · Postgres](https://millionrounds.com/workflow/real-time-flight-tracking-with-aviation-api-and-slack)
