Перейти к содержанию
НОВОЕМаркетплейс и ваша команда: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Финансы, счета и бухгалтерия

Финансы, счета и бухгалтерия

Чтение PDF-чеков из Gmail с помощью Claude и сопоставление выписок по картам в Google Sheets

Когда в Gmail приходит письмо с меткой и PDF-файлом, Claude читает чек, код проверяет итоги и налог, результаты сохраняются в Google Sheets, а строки выписки по карте сопоставляются с ними.

Что делает

## 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.

Шаги

  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.

Похожие автоматизации