✨ $500 AI Visibility Audit — live at Spurlock Studios. Book the audit

Operations & Systems

Automated Image Tagging | GDrive -> OpenAI -> GDrive

This n8n workflow automates image metadata tagging by monitoring a Google Drive folder for new uploads. When a new image is detected, it's sent to OpenAI for content analysis, and the resulting keywords are embedded as subject tags directly into the image's XMP metadata.…

Built · ~4 hours saved per week

Automated AI Image Tagging and Metadata Enrichment This workflow automates the process of analyzing images, generating descriptive tags using AI, and embedding those tags directly into the image file's metadata. It creates a smooth pipeline where simply adding an image to a specific Google Drive folder results in an enriched file with searchable, descriptive keywords, saving significant manual effort in digital asset management. Technologies Used - n8n: The core automation platform coordinating the workflow. - Google Drive: Used as both the trigger source (monitoring a folder for new files) and the destination (updating the files with new metadata). - OpenAI: Provides the artificial intelligence for image analysis, specifically using the GPT-4o model to understand and describe the contents of an image. - JavaScript (Code Node): Used for advanced data manipulation to construct and inject XMP metadata directly into the image's binary data. How AI Integrates into the Flow The AI, powered by OpenAI's GPT-4o vision model, is the intelligent core of this workflow. After an image is downloaded from Google Drive, it is sent to the "Analyze Image Content" node. The AI's role is to: 1. Visually Analyze: "Look" at the image content. 2. Understand and Describe: Interpret the subjects, objects, setting, and actions within the image. 3. Generate Structured Output: Based on the prompt "Deliver a comma seperated list describing the content of this image," the AI generates a clean, machine-readable list of keywords (e.g., "dog, park, green grass, sunny day, playing fetch"). These AI-generated tags are then used to programmatically enrich the image's metadata, making a previously non-searchable asset discoverable and organized without any human intervention. Node-by-Node Analysis H3: Trigger: New file added to Google Drive Folder - Purpose: To kickstart the automation. - Function: This trigger node continuously monitors a specific folder in Google Drive (named "EXIF" in this example). It activates the workflow automatically every time a new file is created or uploaded into that folder. H3: Download Image File - Purpose: To retrieve the actual image data.

Tags: Data Transformation, Google

Integrations: OpenAI, Google Drive, Code

Related automations

Back to the Automation Library