Classify documents and extract invoice data with LDXhub AnalyzeDoc and Google Sheets
UnknownWhat this workflow does
This workflow has 12 nodes and runs when someone submits an n8n form (“Sort Documents by Type”). Along the way it connects Google Sheets and Ldxhub (community).
How it runs
Trigger: When someone submits an n8n form (“Sort Documents by Type”).
- AnalyzeDoc: Classify Document (Ldx Hub): work with analyze doc
- Parse Classification (Extract from File): extracts data from a file (from json)
- Route by Type (Switch): routes items into 3 branches
- Reattach Original File (Code): runs custom JavaScript code
- AnalyzeDoc: Extract Invoice Fields (Ldx Hub): work with analyze doc
- Parse Invoice JSON (Extract from File): extracts data from a file (from json)
- Flatten for Sheets (Code): runs custom JavaScript code
- Append Invoice to Sheets (Google Sheets): append
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-ldxhub is verified or supports 3.0 (used in AnalyzeDoc: Classify Document, AnalyzeDoc: Extract Invoice Fields).
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Ldx Hub
n8n-nodes-ldxhub.ldxHub - Extract from File
n8n-nodes-base.extractFromFile - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview This workflow collects uploaded PDFs or images, classifies each document type using LDXhub AnalyzeDoc, and routes it accordingly; invoices get high-detail field extraction and are appended as a new row in Google Sheets. How it works 1. Receives…