# Expense organizer with Google Drive and Gemini: n8n workflow

> Started by someone submitting a form, and works across Gmail, Google Drive and S3. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/expense-organizer-with-google-drive-and-gemini (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)

# Expense organizer with Google Drive and Gemini

Started by someone submitting a form, and works across Gmail, Google Drive and S3. It hands the judgement calls to Gemini. 21 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fexpense-organizer-with-google-drive-and-gemini)

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

**4** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 8 Service 9

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **personal** If *Logic*
- 5 **business** If *Logic*
- 6 **shared** If *Logic*
- 7 **If** If *Logic*
- 8 **AI Agent** Agent *Model*
- 9 **Code1** Code *Logic*
- 10 **Code** Code *Logic*
- 11 **Send a message1** Gmail *Service*
- 12 **Code2** Code *Logic*
- 13 **Extract from File** Extract From File *Service*
- 14 **Merge2** Merge *Logic*
- 15 **Upload file** Google Drive *Service*
- 16 **Upload a file1** S3 *Service*
- 17 **Upload file1** Google Drive *Service*
- 18 **Upload a file** S3 *Service*
- 19 **Upload file2** Google Drive *Service*
- 20 **Upload a file2** S3 *Service*
- 21 **Send a message** Gmail *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 21, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Drive, S3
- **Model:** Gemini

## Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls Gemini. 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%2Fexpense-organizer-with-google-drive-and-gemini)
- **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.

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

## Workflows like it

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

- [**Automate invoice processing with Google Drive and Sheets** 21 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-invoice-processing-with-google-drive-and-sheets)
- [**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)
- [**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)
- [**Collect invoices from Gmail and save them** 20 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/collect-invoices-from-gmail-and-save-them)
