How to Automatically Summarize and Log Invoice PDFs with n8n and AI: Google Drive × Google Sheets

Four steps to summarize invoice PDFs with AI and log them in a spreadsheet

Opening each invoice PDF you receive and typing the vendor, amount and description into a spreadsheet: this monthly chore can be automated by combining n8n with AI. This article walks you step by step through building a setup where “saving an invoice PDF to Google Drive makes AI summarize it and add a row to a spreadsheet.” For more on n8n itself, see also What Is n8n? What It Can Do, Pricing and How to Get Started.

Automatically summarizing and logging invoice PDFs with AI, in 30 seconds (no audio)

The finished workflow

  • Save an invoice PDF to a designated folder in Google Drive
  • n8n detects it and extracts the text from the PDF
  • AI reads the vendor, amount and invoice details and writes a short summary
  • A new row is added to the “Invoice log” spreadsheet, one row per invoice

What you need beforehand

  • n8n (cloud or self-hosted)
  • A Google account (for Drive and Sheets)
  • A folder for invoices (e.g. “Invoices_Received”)
  • A spreadsheet for the log (put headings such as “Date received,” “Vendor,” “Amount,” “Summary” and “File name” in row 1)
  • Settings for using an AI model (an API key from OpenAI, Anthropic, Google, etc. The cloud version also offers a way to use AI without your own key)

How to build it: connect five boxes

StepBox (node) usedKey settings
1Google Drive TriggerChoose “File Created” and limit it to the invoice folder
2Google Drive (Download a file)Pull in the PDF file that was detected
3Extract from File (Extract From PDF)Extract the text inside the PDF
4Basic LLM Chain + AI modelInstruct the AI to read the required fields from the extracted text
5Google Sheets (Append Row)Append one row with the fields the AI read, each in its own column

Box names are as shown in n8n as of October 2026. You can check the detailed settings in the official documentation for Google Drive Trigger, Extract from File and Google Sheets.

Example instructions for the AI (box 4)

The following is text extracted from an invoice we received.
Read the fields below and answer in JSON format only.
– vendor: name of the company that issued the invoice
– amount: invoice total including tax (numbers only)
– summary: summary of what is being billed (30 characters or fewer)
Leave any field you can’t read blank. Do not fill in fields by guessing.

If you define the answer format (field names and length) in advance, the answer comes back in the same shape every time, so it can go straight into the spreadsheet columns. Writing “do not fill in by guessing” is also important.

Common sticking points

Connecting your Google account

In the cloud version, you can connect simply by signing in with your Google account. In the self-hosted version, you need to create a project in Google Cloud, enable the Drive and Sheets APIs, and configure the connection yourself. Note that if the app is left in “Testing” status, only registered accounts can use it and the connection expires after 7 days (official documentation).

Depending on how files are added, the trigger may not fire

Google Drive Trigger checks for new files at a set interval (every minute by default). Files moved in from another folder or added through a desktop sync app may not be treated as newly created and may not trigger the workflow. If it isn’t working, try uploading to the folder from your browser.

Text can’t be extracted from scanned image PDFs

A PDF that is just a scan of paper contains images, so Extract from File can’t pull text from it. In that case, add a step in between that reads text from images (OCR) or passes the image to an AI model that can read images.

Test runs and automatic runs are different

Even if it works when you click “test” on screen, the workflow won’t run automatically until you activate (publish) it. When you’re done, always check that it is active.

How to think about costs

With this setup, the workflow runs once per invoice. For 100 invoices a month, that’s about 100 executions. On top of that, there are AI model usage fees (pay-as-you-go, based on the amount of text read). Since each invoice doesn’t contain much text, costs are unlikely to be large while volumes are low, but once you start, it’s a good idea to check the actual amount on the usage screen.

Summary

The flow of “drop in a file, AI reads it, and it’s written to a spreadsheet” works not only for invoices but also for many other documents, such as purchase orders, quotes and daily reports. Start with one type of document, check the extraction accuracy, and then expand. In ReedRiver’s AI Consulting, we work alongside you from designing automations like this to investigating when you get stuck and reviewing what you’ve built.