See llms.txt for all machine-readable content.

Back to Templates

Extract invoice fields from Google Drive PDFs to Google Sheets with Skavio

Quick overview

This workflow watches a Google Drive folder for new invoice PDFs, sends them to Skavio to extract key invoice fields, and appends the extracted data (plus warnings and a review flag) as a new row in Google Sheets.

How it works

  1. Triggers when a new file is created in a selected Google Drive folder.
  2. Downloads the new file from Google Drive and uploads it to Skavio.
  3. Requests a Skavio credit estimate for extracting supplier, invoice number, dates, currency, net, tax, and total, then submits the extraction job capped at the estimated credits with an idempotency key based on the Drive file ID.
  4. Polls Skavio every 15 seconds until the job finishes with a completed or failed status.
  5. If the job completes, downloads the JSON result from Skavio, converts each extracted document into a single row including extraction warnings and a default review status.
  6. Appends the resulting rows to a chosen Google Sheets spreadsheet and worksheet.

Setup

  1. Create a Skavio API key and add it to an n8n HTTP Header Auth credential (Authorization: Bearer <your_key>).
  2. Add Google Drive OAuth2 credentials and select the Drive folder to watch for new invoice files.
  3. Add Google Sheets OAuth2 credentials and choose the target spreadsheet and sheet where rows should be appended.
  4. Ensure your Google Sheet has (or can accept) columns for file, source, supplier, invoice_number, invoice_date, due_date, currency, net_total, tax_total, total, warnings, and review.

Requirements

  • A Skavio account and API key (new accounts get 500 free credits, no card)
    A Google Drive folder for incoming invoices
    A Google Sheets spreadsheet with a header row for the extracted fields

Customization

  • Change the extracted fields in the Estimate price and Submit job nodes and in the One row per invoice code
    Replace Google Sheets with Airtable, Notion or a database
    Swap the Drive trigger for a Gmail attachment trigger to process invoices from email

Additional info

Tested on 2026-11-25 with a synthetic invoice: all 8 fields extracted with source evidence. Cost is about $0.029 per page and each job is capped at its price estimate. Disclosure: the author works for Skavio, the API this template uses.