Automation library · Money admin

Track and log receipt expenses in Google Sheets with Gmail

Started by an arriving email, and works across Gmail, Google Drive and Google Sheets. It hands the judgement calls to Claude. 17 steps, 3 branches: a working afternoon to understand properly.

MediumCalls a model: Claude

17 stepsMedium: a working afternoon
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 2Model 5Logic 6Service 4

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

  1. 1Email Receipt InGmail triggerStarts it
  2. 2Paper Receipt InGoogle Drive triggerStarts it
  3. 3Claude (Text)Lm Chat AnthropicModel
  4. 4Claude (Vision)Lm Chat AnthropicModel
  5. 5Receipt Fields ParserOutput Parser StructuredModel
  6. 6Normalize EmailCodeLogic
  7. 7Download Receipt FileGoogle DriveService
  8. 8Extract Receipt DataInformation ExtractorModel
  9. 9Extract Receipt (Vision)Chain LlmModel
  10. 10Has Attachment?IfLogic
  11. 11Normalize UploadCodeLogic
  12. 12Is Receipt?IfLogic
  13. 13Archive Receipt FileGoogle DriveService
  14. 14Route by TypeSwitchLogic
  15. 15Log ExpenseGoogle SheetsService
  16. 16Use File LinkSetLogic
  17. 17Extract PDF TextExtract From FileService

How it's built

Starts on
An arriving email
Steps
17, with 3 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Drive, Google Sheets
Model
Claude

Questions

What does it need to run?

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

What starts it?

It starts on an arriving email.

Does it use AI?

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

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

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 17 steps before you point it at anything that matters.