# Save, extract, and log email invoices with Gmail, Drive, Sheets, Claude, and PDF.co

> Quick overview This workflow checks Gmail for invoice emails, saves PDF invoices to Google Drive in automatically created YYYY/YYYY-MM folders, extracts key invoice fields with Anthropic Claude, and logs each invoice in a monthly Google Sheets spreadsheet stored in the same month folder. How it works 1. Triggers every 15 minutes from Gmail for messages matching the invoice/receipt search and not yet labeled invoices-processed, downloading any attachments. 2. Determines the target year and month from the email date (optionally filing to the previous month) and tries to detect an invoice/receipt link in the email body. 3. Finds or creates the corresponding year (YYYY) and month (YYYY-MM) folders in Google Drive under your chosen root invoices folder. 4. Collects invoice PDFs from email attachments, or downloads the detected invoice link and either uploads the returned PDF or renders an invoice web page to PDF using PDF.co. 5. Sends each invoice PDF to Anthropic Claude to extract supplier

- **Domain**: `n8n-workflow-21206.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21206
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21206.n8n.io
- Documentation: https://n8n.io/workflows/21206
