Translate Gmail image and PDF attachments into multiple languages with Gemini and Drive
Ready for 3.0What this workflow does
This workflow has 30 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail and Google Drive.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Set configuration (Edit Fields (Set)): sets or maps fields
- Generate sample email (Code): runs custom JavaScript code
- Has image or PDF attachment? (If): checks a condition and branches into true / false
- Build Translation Jobs (Code): runs custom JavaScript code
- Create Drive Folder (Google Drive): uses Google Drive
- Combine email with Drive folder (Merge): merges the data from its input branches
- Reply: No Image Found (Gmail): uses Gmail
- Dry run? (translate) (If): checks a condition and branches into true / false
- Share Folder (Anyone with link) (Google Drive): uses Google Drive
- Mock Gemini translation (Code): runs custom JavaScript code
…plus 18 more steps. See the full node list below.
Services it uses
Other Gmail + Google Drive templates (465)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Drive
n8n-nodes-base.googleDrive - Gmail
n8n-nodes-base.gmail - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Data table
n8n-nodes-base.dataTable
From the author
Quick overview This workflow monitors Gmail for labeled emails with image attachments, uses the Google Gemini API to translate text inside each image into multiple languages, uploads the translated images to a shared Google Drive folder, and replies to the…