Templates / Extract and log invoice data from Google Drive PDFs to Google Sheets with Gemini

Extract and log invoice data from Google Drive PDFs to Google Sheets with Gemini

Ready for 3.0

by Oriol ✓ · 0 views · created 2026-11-18 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 23 nodes and runs on a schedule (every hour). Along the way it connects Google Sheets, Google Drive and Google Gemini Chat Model.

How it runs

Trigger: On a schedule (every hour).

  1. Config (Edit Fields (Set)): sets 11 fields: inbox_folder_id, processed_folder_id, review_folder_id…
  2. Read existing invoices (Google Sheets): read
  3. List PDFs in Inbox (Google Drive): work with file folder
  4. Download PDF (Google Drive): download
  5. Extract PDF text (Extract from File): extracts data from a file (pdf)
  6. Prepare invoice text (Edit Fields (Set)): sets 4 fields: file_id, file_name, file_link…
  7. Has text? (If): checks a condition and branches into true / false
  8. Extract invoice data (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini model; output parser: Parse AI output
  9. Mark as scanned (Edit Fields (Set)): sets 4 fields: file_id, file_name, file_link…
  10. Add file details (Edit Fields (Set)): sets 4 fields: file_id, file_name, file_link…

…plus 10 more steps. See the full node list below.

Services it uses

Google SheetsGoogle DriveGoogle Gemini Chat Model

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 (13)

From the author

Quick overview This workflow runs hourly to scan a Google Drive “Inbox” folder for PDF invoices, extract invoice fields with Google Gemini, and log the results to Google Sheets while filing PDFs into Processed or Review folders, with an optional summary…

Excerpt from Oriol's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.