Templates / Extract invoice data from PDFs with Claude and a Google Sheets review queue

Extract invoice data from PDFs with Claude and a Google Sheets review queue

Ready for 3.0

by Kelson Works ✓ · 11 views · created 2026-08-07 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (6)

Google Sheets

What it does

Quick Overview This workflow collects invoice PDFs via an n8n form, converts them to text, extracts invoice fields using the Anthropic Claude API, and then logs high-confidence results to Google Sheets while routing low-confidence or incomplete extractions to a separate review queue tab. How it works 1. Receives an invoice PDF upload through an n8n Form trigger. 2. Extracts raw text from the uploaded PDF. 3. Sends the invoice text to the Anthropic Claude Messages API and requests strict JSON for key invoice fields and an overall confidence score. 4. Parses and validates Claude’s JSON output, then flags the item for review if confidence is below the threshold or key fields are unknown. 5. Appends trusted extractions to the “Extracted” tab in Google Sheets. 6. Appends uncertain or invalid extractions to the “Review Queue” tab in Google Sheets. Setup 1. Create an Anthropic API key and add it to the HTTP Header Auth credentials used by the Claude request (x-api-key), keeping the required Anthropic headers. 2. Connect a Google Sheets account and replace REPLACEWITHYOURSPREADSHEETID with your spreadsheet ID in both Google Sheets append steps. 3. Create two tabs in the target spreadsheet named “Extracted” and “Review Queue” (or update the sheet names in the workflow to match). 4. Test the form with a clear invoice and a low-quality invoice and adjust the confidence threshold logic in the validation step if needed.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.