Automated Image Metadata Tagging with n8n and Google Drive

Discover how to automatically analyze and tag image metadata using n8n, Google Drive, and AI. This workflow saves time by adding descriptive keywords to images right in your Google Drive folder, eliminating manual tagging errors.
googleDriveTrigger
openAi
exif-data.exifData
+3
Workflow Identifier: 1866
NODES in Use: Google Drive Trigger, Google Drive, OpenAI, Merge, Exif Data, Sticky Note

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does ⚙️

This workflow watches a Google Drive folder for new image files.

It downloads the image automatically and sends it to OpenAI for content description.

Then it adds the AI keywords into the image’s EXIF metadata.

Finally, it uploads the updated image back to Google Drive.

This removes manual tagging work and makes images easy to find.


Tools and Services Used

  • Google Drive: stores and triggers on new images.
  • OpenAI API: analyses images and generates keywords.
  • n8n: orchestrates automation workflow.
  • Exif Data community node: writes keywords into image metadata.
  • Optional Self-hosting: deploy n8n on server for control. self-host n8n

Inputs → Processing → Output

Inputs

  • New image files added in a specific Google Drive folder.

Processing Steps

  1. Trigger detects new image upload.
  2. Google Drive node downloads the image content.
  3. OpenAI (LangChain) node analyzes image base64 data and returns a comma-separated list of keywords.
  4. Merge node combines image data and AI keywords.
  5. Exif Data node writes AI-generated keywords into the image’s EXIF metadata fields: Subject and Keywords.
  6. Another Google Drive node overwrites the original image with updated metadata content.

Output

  • Image file saved back into Google Drive folder with embedded, searchable metadata tags.

Who Should Use This Workflow

This helps anyone who stores many photos in Google Drive and wants to tag them automatically.

It’s for people who want to save time and avoid mistakes in manual image tagging.

Also good for those who want consistent searchable metadata across their photo collections.


Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor.
  3. In n8n, click on menu then select Import from File.
  4. Choose the downloaded workflow file to load it.

Step 2: Configure Workflow Settings

  1. Add Google Drive OAuth2 credentials.
  2. Add OpenAI API Key credentials.
  3. Check and update the watched Google Drive folder ID if needed.
  4. If any node requires emails, channels, prompt text, or file names, update those values accordingly.
  5. Verify that the prompt for OpenAI remains:
    
    Deliver a comma separated list describing the content of this image.
    

Step 3: Test the Workflow

  1. Add a test image file to the Google Drive folder or trigger the workflow manually in n8n.
  2. Watch the execution log to ensure image metadata tags are added without errors.

Step 4: Enable Workflow for Production

  1. Switch the workflow toggle to active in n8n to start real-time operation.
  2. Monitor initial runs and adjust settings if any issue appears.

This setup guides beginners how to quickly deploy and run this automation inside n8n without building it from zero.


Customization Ideas ✏️

  • Add more EXIF metadata fields like DateTimeOriginal or Artist using dynamic values.
  • Use other AI providers by replacing OpenAI node and adjusting prompt accordingly.
  • Filter which image types trigger the workflow to avoid unsupported files.
  • Change trigger from real-time to scheduled for batch updating images.
  • Log image names and keywords to Google Sheets for tracking purposes.

Troubleshooting 🔧

  • Problem: Trigger does not detect new files in folder.
    Cause: Wrong folder ID or missing permissions.
    Fix: Verify folder ID and ensure Google Drive credentials have read access.
  • Problem: OpenAI node fails or gives empty results.
    Cause: Incorrect image data encoding or wrong input type.
    Fix: Confirm Google Drive download output is base64 and OpenAI input type is base64.
  • Problem: Exif Data node does not write metadata.
    Cause: Community node missing or misconfigured.
    Fix: Install n8n-nodes-exif-data community node and reconfigure metadata fields.

Pre-Production Checklist ✅

  • Make sure Google Drive credentials have full access for target folder.
  • Upload a test image to verify the trigger fires and runs workflow.
  • Check that Google Drive node exports image base64 data correctly.
  • Confirm OpenAI node returns descriptive, comma-separated keywords.
  • Test that Exif Data node writes metadata and the changes persist in image file.
  • Back up original images before running this workflow on large data.

Deployment Guide

After testing, activate the workflow by turning on its toggle in n8n.

The workflow will then watch the configured Google Drive folder for new images and process them immediately.

Use the n8n execution logs to monitor success or catch errors in AI analysis or metadata writing steps.


Summary of Results

✓ Saves hours of manual photo tagging work.

✓ Reduces errors and inconsistent image metadata.

✓ Ensures new images in Google Drive folder are auto-tagged with AI keywords.

✓ Makes photos easier to search and organize later.


Frequently Asked Questions

Yes. The workflow requires changing trigger and file management nodes to match the chosen cloud service.
Yes. Each image sends a request that consumes OpenAI API credits based on the pricing plan.
Yes. Images stay in your n8n environment with credentials managed securely. Protect n8n access carefully.
Workflow supports moderate volumes. For large batches, switch to scheduled triggers and add throttling.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free