Templates / Extract structured invoice data from JotForm PDFs with GPT-4.1-mini & Sheets

Extract structured invoice data from JotForm PDFs with GPT-4.1-mini & Sheets

Needs changes

by Ranjan Dailata ✓ · 258 views · created 2025-10-21 · Invoice Processing, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model and Google Sheets.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Formatted Structured Data Extract (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
  2. Download Invoice (HTTP Request): calls an HTTP API
  3. Write File from Disk for Inbound Invoice Processing (Read/Write Files from Disk): writes a file to disk
  4. Extract from File: extracts data from a file (pdf)
  5. Structured Data Extract (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  6. Append or update row in sheet (Google Sheets): append or update
  7. Create a Binary Response (Function): runs custom JavaScript (legacy Function node)
  8. Write the Structured Invoice to Disk (Read/Write Files from Disk): writes a file to disk

Services it uses

OpenAI Chat ModelGoogle Sheets

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Create a Binary Response: replace with Code node, mode 'Run Once for All Items'.
Removed in 3.0Replace with
Function (legacy)
Create a Binary Response
Code node, mode 'Run Once for All Items'

Nodes used (10)

From the author

Who this is for This workflow is designed for Finance teams, accounting professionals, and automation engineers. Use Case: Automates processing of invoice submissions received via JotForm. Core Function: Extracts structured data such as: Invoice number Client…

Excerpt from Ranjan Dailata's description on n8n.io.

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.