Rename Japan e-bookkeeping receipts and invoices with Gemini and Google Drive
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Drive.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Folder Configurations (Edit Fields (Set)): sets 4 fields: inputFolderId, outputFolderId, skipFolderId…
- Retrieve Input Folder Files (Google Drive): work with file folder
- Process Files Individually (Loop Over Items (Split in Batches)): loops over the items in batches
- Download from Google Drive (Google Drive): download
- Encode File and Detect MIME (Code): runs custom JavaScript code
- Check Supported File Type (If): checks a condition and branches into true / false
- Send to Gemini for OCR (HTTP Request): calls an HTTP API (POST)
- Copy to Manual Review Folder (Google Drive): copy
- Generate Compliant Filename (Code): runs custom JavaScript code
- Validate Single Document Status (If): checks a condition and branches into true / false
…plus 1 more step. See the full node list below.
Services it uses
Other Google Gemini + Google Drive templates (272)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview Helps Japanese businesses digitizing paper invoices and receipts under Japan's Electronic Bookkeeping Act. Files in a Google Drive INPUT folder are read with Google Gemini OCR, then copied to OUTPUT with a compliant searchable filename…