Block 1 - On form submission
- Type / Role
- n8n-nodes-base.formTrigger - formTrigger
- Config choices
- Version 2.3
This workflow is provided as-is. Please review and test before using in production.
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 upload...
n8n-nodes-base.formtrigger, n8n-nodes-base.extractfromfile, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.set, n8n-nodes-base.xml, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mauricio Perera.
Original n8n.io sourceThis n8n workflow converts invoices in PDF format into a structured, ready-to-use JSON, using AI and XML transformation — without writing any code.
Upload form → The user uploads a PDF file.
Text extraction → The PDF content is extracted as plain text.
XML schema definition → A standard invoice structure is defined with fields such as:
AI (Gemini) → The model rewrites the PDF text into a valid XML following the predefined schema.
XML cleanup → Removes extra tags, line breaks, and unnecessary formatting.
JSON conversion → The XML is transformed into a clean, structured JSON object, ready for integrations, APIs, or storage.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Extract invoice data from PDFs to JSON with Gemini AI and XML transformation |
|---|---|
| Complexity | intermediate |
| Nodes | 10 |
| Categories | Invoice Processing, AI Summarization |
| Author | Mauricio Perera |
| Published | 10 Sept 2025 |
Use the JSON export at /data/workflows/8460/8460.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 upload...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI Summarization use case.