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
Automate image metadata with n8n and Google Drive

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

Learn how to Build this Workflow with AI:

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


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.


Automate image metadata with n8n and Google Drive

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.