# Automate invoice processing with Google Drive and Sheets: n8n workflow

> Started by an event in a connected app, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/automate-invoice-processing-with-google-drive-and-sheets (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Money admin](https://millionrounds.com/workflows?category=Money+admin#library)

# Automate invoice processing with Google Drive and Sheets

Started by an event in a connected app, and works across Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 21 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-invoice-processing-with-google-drive-and-sheets)

**21 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 7 Service 11

The steps in the order they run, from what starts it.

- 1 **Google Drive Trigger** Google Drive trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Jahre auswählen** Set *Logic*
- 4 **Search files and folders** Google Drive *Service*
- 5 **Information Extractor** Information Extractor *Model*
- 6 **Split Out** Split Out *Logic*
- 7 **Loop** Split In Batches *Logic*
- 8 **GetYearFolder** Google Drive *Service*
- 9 **Loop Over Items** Split In Batches *Logic*
- 10 **GetFile** Google Drive *Service*
- 11 **GetMonthFolder** Google Drive *Service*
- 12 **Jahresordner schon vorhanden?** Google Drive *Service*
- 13 **ExtractFromPDF** Extract From File *Service*
- 14 **MoveFile** Google Drive *Service*
- 15 **Ordner noch nicht vorhanden** If *Logic*
- 16 **UpdateFileName** Google Drive *Service*
- 17 **Jahresordner erstellen** Google Drive *Service*
- 18 **AddToOverview** Google Sheets *Service*
- 19 **Monate als Liste** Set *Logic*
- 20 **Split Out1** Split Out *Logic*
- 21 **Monatsordner einfügen** Google Drive *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 21, with 1 branch, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Google Sheets
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Drive and Google Sheets accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-invoice-processing-with-google-drive-and-sheets)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**Consolidate Stripe, PayPal, Shopify and bank revenue** 21 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/consolidate-stripe-paypal-shopify-and-bank-revenue)
- [**Expense organizer with Google Drive and Gemini** 21 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/expense-organizer-with-google-drive-and-gemini)
- [**Auto invoice & receipt OCR to Google Sheets – Drive, Gmail** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/auto-invoice-and-receipt-ocr-to-google-sheets-drive-gmail)
- [**Send Stripe payment invoices with Gmail and Google Drive** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/send-stripe-payment-invoices-with-gmail-and-google-drive)
- [**Send tailored Upwork job proposals with Gemini and Slack** 21 steps · Gmail, Google Drive](https://millionrounds.com/workflow/send-tailored-upwork-job-proposals-with-gemini-and-slack)
- [**Telegram payment, invoicing and refund workflow for Stars** 21 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/telegram-payment-invoicing-and-refund-workflow-for-stars)
