Templates / Extract and process invoices with GPT-4, Google Drive, and Google Sheets

Extract and process invoices with GPT-4, Google Drive, and Google Sheets

Ready for 3.0

by Wolfgang Renner ✓ · 913 views · created 2025-11-20 · 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-10-19.

What this workflow does

This AI workflow has 12 nodes and runs on Google Drive events (file created). Along the way it connects Google Sheets, Google Drive and OpenAI Chat Model.

How it runs

Trigger: On Google Drive events (file created).

  1. Download file (Google Drive): download
  2. Extract from File: extracts data from a file (pdf)
  3. Invoice Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Chart of Accounts); memory: Simple Memory; output parser: Structured Output Parser
  4. Update Booking List (Google Sheets): append
  5. Edit Fields (Edit Fields (Set)): sets 1 field: data
  6. Move file (Google Drive): move
  7. Save to Drive (Google Drive): uses Google Drive

Services it uses

Google SheetsGoogle DriveOpenAI 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 (10)

From the author

This template is a fully automated AI invoice processing workflow for n8n. It watches a Google Drive folder for new invoice PDFs, extracts all key information using an AI Agent, assigns the correct booking account, saves the renamed invoice in the right Drive…

Excerpt from Wolfgang Renner'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.