The problem
Supplier invoices arrive as PDFs by email and LINE and someone retypes the number, date, amount and due date into a spreadsheet before the accountant sees them. Typos slip through, due dates get missed and month end starts with a hunt for the invoices nobody logged.
Architecture
- Channel
- Shared Drive invoice folder
- Supplier invoice PDFs
- Agent
- n8n workflow
- Model with a fixed field list
- Tools
- Google Sheets register
- Gmail summary email
- Human
- Finance owner approves
- Person fills blank fields
Where the data stays: Invoices stay in your Drive and the register in your own Sheet; only the PDF text goes to the model provider.
Design flow
- Staff drop the invoice PDF in Drive
- PDF turned into plain text
- Model pulls the fixed fields
- Row added as Pending, summary emailed
- Unread fields left blank and highlightedOnly sometimes
- Finance owner marks Approved or QueryHuman checkpoint
Setup
Total time: 2 h 15 min our estimate
- 20 min
Done when: One shared Drive folder for invoice PDFs and a Sheet with columns for invoice number, supplier name, address, email, phone, total due, invoice date, due date, file link and status.
- 30 min
Done when: Dropping a test PDF starts an execution in which the Google Drive trigger, the download and the Extract from File node show the invoice as plain text.
- 30 min
The published prompt tells the model it may omit any value it does not know; keep that line.
Done when: The Information Extractor returns the eight fields for a test invoice, and a field it cannot read comes back empty instead of guessed.
- 20 min
Done when: Each test invoice adds one row with status Pending, and empty cells are highlighted by a conditional format.
- 20 min
Done when: The finance owner receives a short Gmail summary with invoice number, supplier, amount, due date and the file link.
- 15 min
Done when: The finance owner checks each row against the PDF and marks it Approved or Query, and only Approved rows are paid or posted to the accounting system.
Ticks are saved on this browser.
Risks and data
Data
Invoices carry supplier contact names, emails, phone numbers and amounts. Keep the folder and the register inside your own Google Workspace, limit the Sheet to finance, and check the model provider's data terms before sending invoice text to it.
How it goes wrong
The model misreads an amount or a due date, the same PDF is dropped twice, or a file that is not an invoice lands in the folder and makes a junk row. The published build has no review step, so the Pending status is the guard: the finance owner checks each row against the linked PDF, and a repeated invoice number in the register shows a duplicate.
How the agent works
It starts
Staff drop every supplier invoice PDF into one shared Google Drive folder.
The agent works
A new file triggers the agent, which extracts the text, asks the model for a fixed set of fields (invoice number, supplier name and contact details, total due, invoice date, due date) and appends a row to a Google Sheet that serves as the invoice register. It emails the finance owner a short summary of each new row with a link to the file, and a status column stays at Pending until the owner marks it Approved or Query. Nothing is paid or posted to the accounting system from the sheet without that approval.
The result
Fields the model could not read are left blank and highlighted so a person fills them in from the PDF.
Worked example
A published n8n build on GitHub does the mechanical part: a Drive trigger on a folder named Invoice Bucket, text extraction, GPT-4 pulling eight fields (invoice number, client name, address, email, phone, total amount due, invoice date, due date), a row in a sheet named Invoice DB, then a GPT-4 drafted summary email sent through Gmail. It has no review step, which is the one thing to add before using it for payments. Qonto, whose Claude based agents handle financial admin for small businesses, states the design rule plainly: the agent can prepare and recommend, but the user makes the decision.
The published build uses GPT-4 in n8n. The extraction prompt works the same with Claude or Gemini, and Make or Zapier can run the Drive to Sheets flow.
Join the Agent OS Club
Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.
Founding offer, ends 31 December 2026 or at member 100
Join the Agent OS ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
Published: 2026-10-16