Auto-import Google Drive deliverables into NetX

By General Input

Every 15 minutes, pull new agency deliverables from a Google Drive intake folder into NetX and log each ingest in a Google Sheet.

Integrations

  • Google Drive
  • NetX
  • Google Sheets

Type

Deterministic Code

Categories

  • Marketing
  • Operations

Build a code workflow that runs on a cron every 15 minutes to sweep a designated Google Drive "DAM intake" folder for new creative deliverables, import each new file into a target NetX folder, and append a row to a Google Sheets ingest log so producers can verify what landed.

Trigger: cron, every 15 minutes.

On each run:

1. Determine the cursor. Read the most recent timestamp from the Google Sheets ingest log (the last appended row's timestamp column). If the log is empty, fall back to a stored cursor or the workflow start time. This becomes the modifiedTime lower bound for the sweep.

2. Call Google Drive "List Files" scoped to the configured intake folder ID, filtering with a query that requires the parent folder and modifiedTime greater than the cursor. Request the fields needed downstream: id, name, mimeType, modifiedTime, and owners (email).

3. For each returned file:

a. Skip Google-native files (mimeType starting with application/vnd.google-apps.) such as Docs, Sheets, and Slides. They have no binary export, and we do not want to guess a format.

b. Call Google Drive "Download File Content" to fetch the raw bytes.

c. Call NetX "Import Asset (Upload File)" to upload the bytes into the configured NetX destination folder ID, using the original Drive filename. Capture the new NetX asset ID from the response.

d. Call Google Sheets "Append Values" on the configured spreadsheet and tab to append one row: [originalFilename, netxAssetId, driveOwnerEmail, ingestTimestampUtcIso8601].

4. Because the cursor for the next run is derived from the most recent timestamp appended to the Sheet, files are never re-imported.

Workflow inputs to expose:

- Google Drive intake folder ID

- NetX destination folder ID

- Google Sheets spreadsheet ID and sheet/tab name for the ingest log

Credentials: Google Drive (OAuth), NetX (site URL + API token), Google Sheets (OAuth). Log per-file outcomes (imported, skipped-google-native, failed) so a single bad file does not break the whole sweep.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentLocal listing health board for every location you manageLet support send one-off Loops emails without an engineerStop cold emails to anyone with a live deal in PipedriveiMessage campaign console with pre-flight checks and delivery boardLinkedIn Ads budget pacing dashboard for every client accountFront desk appointment confirmation board for the next 3 daysGive your team Looker numbers without buying more seatsBuild audience segments from product usage and push to LoopsTurn the people who engage with your posts into Pipedrive leads