Bibliothek / Finanzen, Rechnungen & Buchhaltung
Finanzen, Rechnungen & Buchhaltung
Rechnungsdaten aus Gmail-PDFs mit OpenAI in Google Sheets extrahieren
Prüft Gmail stündlich auf neue E-Mails mit PDF-Rechnungen, speichert jede PDF in einem datierten Google Drive-Ordner und nutzt OpenAI, um Lieferant, Rechnungsnummer, Datum, Steuern und Gesamtbetrag als Zeilen in Sheets zu erfassen.
Was sie bewirkt
# Extract invoice data from Gmail attachments into Google Sheets Watches your inbox for emails with PDF invoices attached, files each PDF in a dated Google Drive folder, then uses AI to read the company, invoice number, date, taxes and total into a spreadsheet row. Removes the monthly job of opening every supplier email by hand. ### How it works 1. A Gmail trigger checks the inbox every hour with attachments downloaded. A manual trigger is included so you can also backfill a specific date range. 2. Emails from senders you do not want are skipped, then a Code node pulls out only the PDF attachments. 3. The current month's folder is found in Drive and each PDF is processed one at a time: uploaded, downloaded back, and given a view link and folder link. 4. The PDF text is extracted and an AI agent returns the invoice fields as strict JSON, with an auto-fixing parser retrying if the format is wrong. 5. Rows that contain a tax value are appended to a monthly tab in your sheet. Rows without one are skipped, and either way the loop moves to the next PDF. ### Setup 1. Connect your Gmail, Google Drive and Google Sheets accounts, and add your OpenAI API key to both model nodes. 2. On Skip unwanted senders, replace the example address with any sender you want to ignore, or disable the node. 3. In Drive, create folders named by month such as 2026-04, and select the parent folder on the Find this month folder node. 4. Point the sheet node at your own spreadsheet. A tab is written per month. ### Customization Edit the agent prompt and output parser to capture extra invoice fields.
Die Schritte
- Chat model - Extraction
- Combine file and links
- Read text from the PDF
- Auto-fixing Output Parser
- Output Parser - Invoice fields
- Chat model - Parser auto-fix
- Build Drive links
- Upload PDF to Drive
- Download PDF back
- Skip unwanted senders
- Pull PDF attachments out
- Combine PDFs and folder
- Any tax found?
- Extract invoice fields with AI
Insgesamt 22 Schritte.
Ähnliche Automatisierungen
Dokumente, PDF & OCRExtrahiert Bestellungen aus PDFs mit easybits und Drive in Google Sheets15 SchritteFinanzen, Rechnungen & BuchhaltungKontoauszugs-Transaktionen mit Gemini aus PDFs in Google Sheets extrahieren7 SchritteDokumente, PDF & OCRNeue PDFs aus Google Drive in HTML konvertieren und zurück in Drive speichern5 SchritteDokumente, PDF & OCRAnalyze contract risk from Google Drive PDFs with OpenAI, Claude, Gemini, Sheets and Gmail17 Schritte