Gmail PDF Invoice Capture to Google Drive + Sheets (Gemini, n8n)
Gmail PDF Invoice Capture to Google Drive + Sheets (Gemini, n8n)
Regular price
£52.99
Regular price
£52.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
âš¡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
Gmail PDF Invoice Capture to Google Drive + Sheets (Gemini, n8n)
Regular price
£52.99
Regular price
£52.99
Sale price
Unit price
/
per
Automatically capture PDF invoices from Gmail, extract data with Google Gemini, and file them in Google Drive + Sheets (n8n)
This n8n automation watches your Gmail inbox for PDF invoices, uses Google Gemini to extract and classify invoice details, uploads the PDF to the right Google Drive folder, and logs everything into Google Sheets with a direct file link.
What this workflow does
- Runs every minute: checks Gmail for new messages and downloads attachments.
- PDF-only filtering: continues only when the email contains at least one PDF attachment, then splits attachments so each PDF is handled individually.
- Extracts invoice fields with Gemini: sends each PDF to Google Gemini to extract key invoice data such as date, vendor, amount, taxes, category, and payment method, plus a suggested filename.
- Routes corporativo vs pessoal: Gemini classification determines whether the invoice is treated as corporate or personal.
- Uploads to the correct Drive location: stores the PDF in the corresponding Google Drive folder using the suggested filename.
- Logs to Google Sheets: appends a new row with the extracted invoice data, the Gmail sender address, and the Google Drive file URL.
Use cases
- Turn invoice emails into a searchable archive in Google Drive, without manual downloading.
- Maintain an up-to-date invoice ledger in Google Sheets with file links for quick review.
- Automatically separate corporate vs personal invoices using Gemini classification.
Technical details
- n8n workflow with nodes such as if, set, merge, split out, and Google Drive integration (plus a sticky note for guidance).
- Integrations: Gmail (polling + attachment download), Google Gemini (invoice extraction & classification), Google Drive (corporate/personal uploads), and Google Sheets (row append).
-
Setup note: in the Gemini prompt, replace
[NOME_DA_SUA_EMPRESA]with your real company name for accurate classification. Configure the target Drive folder IDs/locations and select your Sheets spreadsheet + worksheet.
