Import images from Gmail to Google Drive
ProductivitySales EnablementRecipe ToolsDeveloper ToolMarketingWorkatoData ParserUtilitiesDocument/FileAPI Integration
What it does
When a new email arrives in Gmail with a CSV attachment, this automation downloads the file and extracts image links from it. It creates a shared Google Drive folder and sheet so someone can review all images in one place.
Who it's for
Operations teams who need to extract and organize images from email attachments into a shared Google Drive folder.
How teams use this
Organize product images from supplier emails
Extract image links from a supplier CSV attached to an email, download all images, and store them in a shared Google Drive folder with a reference sheet. The team can review and sort images without manual downloads.
Route images to a marketing review channel
Send the Google Drive folder link to a Slack channel after images are organized so the marketing team can review and approve them before use. Only the destination channel changes.
Filter images by type before download
Add a condition to check the image file extension or link pattern so only specific image types are downloaded and stored. This requires adding a filter step after CSV parsing.
How it works
- Monitor for new email. A new email arrives in Gmail with a CSV attachment containing image links and related data.
- Download the CSV attachment. Download the email attachment from Gmail so the image links and metadata can be extracted and processed by the custom code step.
- Parse the CSV file. Parse the CSV with Csv Parser to extract image links and other columns, then loop through each row to process images one by one.
- Create a shared folder and sheet. Create a new folder in Google Drive, set it to shared with anyone, and create a Google Sheet inside it listing all extracted image links.
- Download each image. For each image link in the CSV, download the image asynchronously via Rest and store it in the Google Drive folder so all images are available in one place.