Automated image analysis and metadata tagging inside Google Drive
This AI-assisted n8n workflow triggers when a new image lands in Google Drive and branches into two parallel steps. One path extracts the binary payload while the other uses OpenAI to inspect the image and generate keywords. A code step merges metadata back and updates the Drive file.
- Catalogue ID
- #1761
- Functional nodes
- 8
- Connections
- 8
- Trigger
- googleDriveTrigger
- AI layer
- AI-assisted
Business problem solved
Marketing and property teams store thousands of unlabelled images in Drive folders where search relies solely on cryptic camera filenames. Tagging assets manually is slow and rarely stays consistent.
Trigger
The Google Drive trigger activates automatically whenever a new image file enters the monitored folder.
Connected systems
- Google Drive
- OpenAI
- File conversion and code node
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow architecture
- 1. Extract from File (Service and data) (connects to Merge Metadata and Base64…)
- 2. Convert to File (Service and data) (connects to Update Image File)
- 3. Analyze Image Content (AI layer) (connects to Merge Metadata and Base64…)
- 4. Download Image File (Service and data) (connects to Analyze Image Content, Extract from File)
- 5. Trigger: New file added to… (Trigger) (connects to Download Image File)
- 6. Write Metadata to Base64… (Logic and routing) (connects to Convert to File)
- 7. Update Image File (Service and data)
- 8. Merge Metadata and Base64… (Logic and routing) (connects to Write Metadata to Base64…)
- Trigger
- AI layer
- Logic and routing
- Service and data
Node positions and directed links are generated from the verified catalogue record.
Workflow steps
- 01
Drive image intake
The newly added image loads from Google Drive and splits into parallel binary and visual analysis paths.
- 02
OpenAI visual keyword generation
OpenAI inspects objects, setting and attributes inside the photo to output clean descriptive tags.
- 03
Base64 metadata embedding
Merged tags and file data pass through a code node that embeds keywords into the file metadata.
- 04
Drive file update
The tagged binary image converts back to file form and updates the existing asset inside Google Drive.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow contains zero node-level error flags across its 8 functional nodes and 8 connections.
Production layer added by ALTAI
During live deployment, ALTAI adds image-format filtering, original-file backup policies, controlled vocabulary prompts and an error queue.
Google Drive automated image metadata tagging Frequently asked questions
This workflow embeds keywords directly inside the image metadata; optional Google Sheets logging can run alongside it.
No. Writing metadata headers into the binary file preserves original image dimensions and visual quality.
Yes. Supplying approved terms inside the system prompt keeps every image tagged consistently.
Related n8n workflows
OpenAI product image generation and Drive archive
Reads product image URLs from Google Sheets, analyses shots with OpenAI to craft photography prompts, generates new images, uploads to Drive and logs links.
Chat-triggered ChatGPT image generation to Drive and Sheets
Accepts image prompts over chat, calls the image generation API via HTTP, loops outputs to Google Drive and records file URLs plus aggregated usage in Sheets.
Google Drive media to OpenAI caption and Instagram
Fetches uploaded media from Google Drive, generates captions via OpenAI, saves post details to Google Sheets and publishes to Instagram through Facebook Graph API.

We write the proposal after we have found the problem together
In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.
30 minutes · no preparation needed
The call and the week of discovery are both free.Read the terms