İçeriğe geç
YENİAlaaddin ile tanış: sesi olan yapay zekâ cinin. trig8n 1 Ocak 2027'de yayında. Yeniliklere bak

Kütüphane / Finans, Faturalar ve Muhasebe

Finans, Faturalar ve Muhasebe

OpenAI ile Gmail PDF'lerindeki fatura verilerini Google Sheets'e çıkar

Gmail'i saatte bir kontrol eder, yeni fatura PDF'lerini tarihli bir Google Drive klasörüne kaydeder ve OpenAI ile tedarikçi, fatura numarası, tarih, vergiler ve toplamı Sheets satırları olarak kaydeder.

Ne yapar

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

Adımlar

  1. Chat model - Extraction
  2. Combine file and links
  3. Read text from the PDF
  4. Auto-fixing Output Parser
  5. Output Parser - Invoice fields
  6. Chat model - Parser auto-fix
  7. Build Drive links
  8. Upload PDF to Drive
  9. Download PDF back
  10. Skip unwanted senders
  11. Pull PDF attachments out
  12. Combine PDFs and folder
  13. Any tax found?
  14. Extract invoice fields with AI

Toplam 22 adım.

Benzer otomasyonlar