AI invoice automation: PDF to Google Sheets with n8n

Built an n8n workflow that reads uploaded PDF invoices with GPT-4.1 and appends extracted fields to Google Sheets.

Used for
Work
Skill needed
No code
Shown in video
Partial demo
Summary based on
Transcript
Obsidian SoftWatch on YouTube

n8n Invoice Automation for Beginners | AI + Google Sheets

Published Nov 3, 202615:27685 views17 likes

Key moments

  • 0:36End-to-end demo of invoice upload to Sheets
  • 11:07AI extractor correctly reads invoice total
  • 13:50Data verified in Google Sheets

What they made

Uploaded PDF invoice was parsed and its fields appended as a new row in Google Sheets.

13:50

How they did it

  1. Human1:25

    Created a Google Sheets with invoice columns and started a new n8n workflow named AI invoice automation.

    Stated in video · Google Sheets
  2. Human2:31

    Added a Form trigger with a required file field labeled invoice.

    Stated in video · n8n
  3. Human3:55

    Generated a sample invoice with ChatGPT and uploaded it through the form.

    Stated in video · ChatGPT
  4. Human5:12

    Added an Extract from File node to convert the PDF binary into text.

    Stated in video · n8n
  5. Human6:47

    Configured an Information Extractor node with schema attributes for invoice number, sender, email, address, total, currency, invoice date and due date.

    Stated in video · n8n
  6. AI10:51

    Attached GPT-4.1 as the model and ran the extractor, which correctly read the total as 6376.5 USD.

    Stated in video · OpenAI GPT-4.1
  7. Human11:42

    Added a Google Sheets Append Row node and mapped extracted fields to columns.

    Stated in video · Google Sheets
  8. Human14:07

    Published the workflow and used the production form URL to run the end-to-end demo.

    Stated in video · n8n

What you can reuse

  • Separate currency code from the numeric total so the amount stays usable for calculations.
  • Keep the total as a number without symbols or thousands separators for clean spreadsheet entry.
  • This approach works on text-based PDFs; scanned or image invoices need an extra OCR step.

Trade-offs

  • Only handles text-based PDF invoices; scanned or image invoices require an additional OCR step.
  • Uses n8n Cloud for beginners; local or VPS hosting is only mentioned as a future topic.

AI-generated case summaries can contain mistakes. Report an error

Related cases