Automate Odoo Product Image Imports Using Google Drive & n8n

Save hours manually updating Odoo product images by automating image imports directly from Google Drive. This n8n workflow integrates Google Drive and Odoo to streamline your product image management, drastically reducing errors and manual work.
googleDrive
odoo
code
+7
Workflow Identifier: 2149
NODES in Use: Filter, Google Drive, Code, Switch, Odoo, Extract From File, Summarize, Google Chat, Schedule Trigger, Manual Trigger
Automate Odoo image imports with n8n and Google Drive

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

Learn how to Build this Workflow with AI:

What This Workflow Does

This workflow watches a Google Drive folder for new product images and copies them into Odoo product or template records automatically.
It fixes the problem of wasting many hours doing uploads by hand.
After running, the product images in Odoo are updated with fresh pictures without any manual work.

The workflow runs every 10 minutes. It finds only JPG and PNG files. Then it reads file names to get model type and SKU to find matching Odoo records. It downloads images, converts them to Base64, and updates Odoo images.
Processed files are moved to a done folder and old images there get deleted to save space.
Finally, a Google Chat message announces how many images got updated.


Tools and Services Used

  • n8n: Automation platform to build and run workflow.
  • Google Drive: Stores product images in a folder with OAuth2 access.
  • Odoo ERP: Stores product and template records with images.
  • Google Chat: Receives update notifications.

Inputs, Processing Steps, and Outputs

Inputs

  • Folder ID on Google Drive containing new product images.
  • Odoo ERP connection with API access and product SKU mapping.
  • Google Chat space or channel for notifications.

Processing Steps

  • Trigger every 10 minutes to start workflow.
  • Find all files in the Drive folder.
  • Filter to keep only .jpg and .png files.
  • Parse file names to get model (product/template) and SKU.
  • Route images to either product or template branch.
  • Query Odoo records by SKU to find matching products/templates.
  • Download each image file.
  • Convert downloaded images from binary to Base64 string.
  • Update Odoo records image fields with new images.
  • Move processed images to a “done” folder in Google Drive.
  • Find and delete old duplicate images in the “done” folder.
  • Count how many images updated and send a message on Google Chat.

Outputs

  • Up-to-date product and template images in Odoo.
  • Processed images archived in “done” folder.
  • Notification message showing update count.

Beginner Step-by-Step: How to Use This Workflow in Production Inside n8n

Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open your n8n editor where you want to run this workflow.
  3. Use the Import from File option to load the workflow.

Configure Credentials and IDs

  1. Add your Google Drive OAuth2 credentials with permission to the image folder.
  2. Add your Odoo API credentials that allow reading and updating products.
  3. Add your Google Chat credentials to send messages.
  4. Update folder IDs for the input and done folders in Google Drive.
  5. Verify Odoo SKU matching field, such as default_code, is correct.

Test the Workflow

  1. Run the workflow once manually inside n8n to check for errors and observe logs.
  2. Verify product images update correctly in Odoo.
  3. Confirm Google Chat message posts as expected.

Activate and Monitor

  1. Switch the workflow toggle to “active” to make it run on schedule.
  2. Monitor workflow executions in the n8n dashboard for failures.
  3. Consider self-host n8n if running in production for control and security.

Code Snippet for Parsing File Names

The workflow uses this JavaScript code inside the Code node to separate file names into model and SKU.

for (const item of $input.all()) {
  let parts = item.json.name.split('.').slice(0, -1).join('.').split('_');
  item.json.model = parts[0];
  item.json.sku = parts.slice(1).join('_');
}
return $input.all();

This code takes a file name like “product_1234.png” and sets model = “product” and sku = “1234”.
Ensure filenames follow the pattern for proper parsing.


Customizations

  • Change file filters in Filter node to add or remove image types like GIF or WEBP.
  • Modify filename parsing code to match your file naming rules.
  • Add a Click Manual node to run workflow by hand if preferred.
  • Update the Google Chat space or change messaging text in the notification node.
  • Expand Odoo update nodes to modify other fields like attributes or descriptions.

Troubleshooting

  • Problem: No files found in Google Drive folder.
    Cause: Wrong Drive or folder IDs.
    Fix: Copy exact IDs from Google Drive URL.
  • Problem: SKU not found in Odoo.
    Cause: Filename SKU doesn’t match Odoo default_code.
    Fix: Confirm SKU codes match exactly.
  • Problem: Images not updating in Odoo.
    Cause: Base64 conversion failed or no update permission.
    Fix: Check image encode step and Odoo API permissions.

Pre-Production Checklist

  • Ensure Google Drive access and correct folder IDs.
  • Validate naming and extensions of image files.
  • Test API credentials in Odoo by getting a product record.
  • Test run workflow manually with sample images.
  • Verify Google Chat webhook setup.

Summary of Benefits

✓ Saves at least 5 hours weekly by automating image uploads.
✓ Reduces image upload errors to nearly zero.
✓ Keeps Odoo product images fresh and accurate.
✓ Sends notifications for transparency.
✓ Helps organize Google Drive by moving and deleting files.


Automate Odoo image imports with n8n and Google Drive

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Check that Google Drive Drive ID and folder ID are correct and copy them exactly from the Drive URL.
File name SKUs may not match Odoo default_code fields exactly. Verify matching spelling and format.
Confirm Base64 image data is created properly and Odoo API credentials allow updates.
Yes, remove or disable the Google Chat node but notifications will not be sent.

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.