Extract Gulf tax invoices from Google Drive to Google Sheets with Gemini
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive, Google Gemini and Google Sheets.
How it runs
Trigger: On Google Drive events (file created).
- Config (Edit Fields (Set)): sets 7 fields: spreadsheetId, processedFolderId, reviewFolderId…
- Download invoice file (Google Drive): download
- Read invoice with Gemini (Google Gemini): work with document
- Normalize Arabic and English fields (Code): runs custom JavaScript code
- Append invoice row (Google Sheets): append
- Needs review? (If): checks a condition and branches into true / false
- Split line items (Code): runs custom JavaScript code
- Move to Needs review folder (Google Drive): move
- Move to Processed folder (Google Drive): move
- Append line items (Google Sheets): append
Services it uses
Other Google Gemini + Google Sheets templates (819) · Other Google Drive + Google Sheets templates (720) · 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.
Nodes used (7)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if
From the author
Quick Overview This workflow watches a Google Drive folder for new invoice PDFs or images, extracts Arabic/English invoice data with Google Gemini, normalizes numbers and dates, appends invoice and line-item rows to Google Sheets, and then moves each file to…