Skip to main content

Hello,

I’ve set up a workflow that connects Google Drive and OpenAI. The automation is designed so that whenever a new image file is uploaded to a specific Google Drive folder, OpenAI analyzes the image, generates metadata based on my prompt, and then writes that metadata into the image’s “description” property in Google Drive.

The workflow itself shows no errors, but it only works intermittently.

  • Sometimes, when I upload 10 images, all of them process successfully.

  • Other times, when I upload just a few images, none (or only one) get processed.

  • Occasionally, if I select “Edit draft” and rerun the test, the workflow completes successfully for the chosen items.

I have around 10,000 images that need searchable metadata generated through OpenAI. Could someone please help me figure out how to make this workflow process files reliably and in bulk?

I’ve attached screenshots showing the workflow steps and the inconsistent results.

Thank you so much for your time and help!

 

 

 

 

Hi ​@Hapier2025 

Help links for using GDrive in Zaps: https://zapier.com/apps/google-drive/integrations#help

Make sure to review for the limitations of what is considered a “new” file to trigger the Zap.

 

Not all my files are triggering my new file in folder Zap.

The New File in Folder trigger has some nuance about what it will trigger on:

Google Files (e.g. Google Doc, Google Sheets etc)

  • If a file was created within the folder, the Zap will trigger
  • If a file was modified fewer than 4 days ago and moved to the folder, the Zap will trigger
  • If a file was modified greater than 4 days ago and moved to the folder, the Zap won't trigger
  • If a file was created greater than 4 days ago and modified less than 4 days ago and moved to the folder, the Zap won't trigger

Non-Google files (e.g. pdf or jpg):

  • If a file is directly added to the folder, the Zap will trigger
  • If a file is directly added to the folder but was modified/created greater than 4 days ago, the Zap won't trigger
  • If a file is moved to the folder (even if it was added to Google Drive in the last 4 days), the Zap won't trigger

Also, you can't trigger or act upon a folder shared with you, so files added to folders you don't own will not trigger the Zap. The connected account must be the owner.


@Hapier2025 

Consider an alternative approach…

 

Put together a GSheet with the files to process that way you can track which are to do vs completed vs run issues.

Columns:

  • File ID
    • Used to find the file to process
  • File Name

 

Then import that as a Zapier Table to be used in the Zaps to tracking.

Zapier Tables count as 0 Tasks in Zap Runs.

Fields

  • File ID
  • File Name
  • Status
    • To Do
    • Process
    • Done
    • Issue
  • Timestamp
    • Track when the record was completed being processed by the automation

 

Flow: Zapier Tables > Filter > Delay > GDrive > AI > GDrive > Zapier Tables

Idea being that you trigger from an updated Zapier Table record.

You can configure another Zap that runs on a schedule to pick records to process.

e.g. every hour pick 10 records, then use Looping to update those records Status to trigger the main Zap.

Help: https://zapier.com/apps/looping/integrations#help

 

Help links for using AI by Zapierhttps://zapier.com/apps/ai/integrations#help

For that amount of files, you likely will need to use your own OpenAI app account connection for the billing.

 

NOTE: You probably want to add a Delay After Queue step to the Zap to space out the processing due to API limits for the apps involved.

Help: https://zapier.com/apps/delay/integrations#help

 

Info about error handling in Zaps: https://help.zapier.com/hc/en-us/articles/22495436062605-Set-up-custom-error-handling

 

If you need to hire help for configuring this Zap logic, there is a directory of Zapier Partnershttps://zapier.com/partnerdirectory


Thank you so much for the suggestions, we will try it out for sure :)