Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Read Gmail receipt PDFs with Claude and match card statements in Google Sheets
When a labelled Gmail email with a PDF arrives, Claude reads the receipt, code checks totals and tax, results are saved to Google Sheets and card statement lines are matched to them.
What it does
## Receipts in, card statement matched PDF receipts and invoices that arrive in Gmail are read by Claude. Code checks every number (the total is printed in the document, lines and tax add up, the tax rate fits), saves the result to Google Sheets, and then matches your card statement against the receipts — with no AI in the matching. ### How it works 1. Gmail Trigger picks up mails with the label receipts and a PDF. The PDF text is extracted, and Claude reads the PDF into JSON. 2. Code checks it: the amounts must be written in the PDF text, quantity × price must equal each line, lines + tax must equal the total. A failed check is saved as Needs review with the reason. A scan with no text is flagged, not trusted. 3. Paste your card statement into the Card tab, run Reconcile now. Code matches by amount and date window and writes the Matches tab: Matched, Ambiguous, No receipt, Possible double charge, Near match, Receipt only, Duplicate receipt. 4. A Slack message lists what needs a human. ### Setup 1. Blank Google Sheet: paste its ID in Spreadsheet ID, run Run once (adds the Receipts, Card and Matches tabs), then select the sheet in the Google Sheets nodes. 2. Credentials: Gmail, Google Sheets, Anthropic, Slack (pick a channel the app is in). Create the Gmail label receipts. 3. In Config, set the card column names and the date window. ### Customization Change the currency, the date window and the amount tolerance in Config.
The steps
- Gmail Trigger
- Reconcile now
- Config
- Is it a new email?
- Split attachments
- Extract text from PDF
- AI: Read receipt
- Check receipt
- Add to Receipts tab
- Read Receipts tab
- Read Card tab
- Match statement
- Clear Matches tab
- Matches rows
21 steps in total.
Similar automations
Finance, Invoices & AccountingCheck foreign card charges against daily FX rates with Google Sheets and Slack16 stepsFinance, Invoices & AccountingMatch vendor invoices to POs and GRNs with OpenAI, Gmail, Drive and Sheets37 stepsChatbots & Messaging BotsDeadlock Match Stats Bot for Telegram7 stepsFinance, Invoices & AccountingExtract receipt data from Telegram photos into Google Sheets with OpenAI4 steps