Extract invoice data from PDFs to JSON with Gemini AI and XML transformation
Ready for 3.0Ready 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.
What this workflow does
This AI workflow has 6 nodes and runs when someone submits an n8n form (“Test”). Along the way it connects Google Gemini.
How it runs
Trigger: When someone submits an n8n form (“Test”).
- Extract from File: extracts data from a file (pdf)
- Limpio data (Edit Fields (Set)): sets 2 fields: text_limpio, estructuraXML
- Message a model (Google Gemini): uses Google Gemini
- Limpio XML (Edit Fields (Set)): sets 1 field: factura_limpia
- XML: converts between XML and JSON
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Edit Fields (Set)
n8n-nodes-base.set - XML
n8n-nodes-base.xml
From the author
This n8n workflow converts invoices in PDF format into a structured, ready-to-use JSON, using AI and XML transformation — without writing any code. 🚀 How it works 1. Upload form → The user uploads a PDF file. 2. Text extraction → The PDF content is extracted…