Extract receipts from Gmail with Claude and log expenses to Google Sheets
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs on a schedule (every day at 09:00). Along the way it connects Gmail and Google Sheets. It also calls api.anthropic.com over HTTP.
How it runs
Trigger: On a schedule (every day at 09:00).
- Set config: search & categories (Edit Fields (Set)): sets 4 fields: gmailQuery, defaultCurrency, categories…
- Search receipt emails (Gmail): get many
- Prepare email records (Code): runs custom JavaScript code
- Build AI extract request (Code): runs custom JavaScript code
- Extract receipts with Claude (HTTP Request): calls api.anthropic.com (POST)
- Build expense rows (Code): runs custom JavaScript code
- Append to expense sheet (Google Sheets): append
Services it uses
HTTP calls to: api.anthropic.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick Overview This workflow runs daily to search Gmail for receipt and invoice emails, uses Anthropic Claude to extract structured expense fields, and appends the confirmed expenses to a Google Sheets log. How it works 1. Runs every day on a schedule. 2.…