Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. Gmail Trigger
  2. Reconcile now
  3. Config
  4. Is it a new email?
  5. Split attachments
  6. Extract text from PDF
  7. AI: Read receipt
  8. Check receipt
  9. Add to Receipts tab
  10. Read Receipts tab
  11. Read Card tab
  12. Match statement
  13. Clear Matches tab
  14. Matches rows

21 steps in total.

Similar automations