Classify & auto-sort invoices in Google Drive with GPT-4o
Description: Automatically classify invoices by industry (Retail, Manufacturing, or EdTech) using GPT-4o-powered AI parsing in this intelligent n8n automation template. Designed for teams managing high-volume billing ...
Template notes
Description:
Automatically classify invoices by industry (Retail, Manufacturing, or EdTech) using GPT-4o-powered AI parsing in this intelligent n8n automation template. Designed for teams managing high-volume billing data, this workflow fetches invoices from Google Drive, extracts PDF text, classifies each document using AI, and automatically moves files to the correct folder based on the predicted industry.
This smart auto-sorting system turns your invoice processing into a zero-touch AI workflow—ideal for finance teams, document processing agencies, and operations managers dealing with multi-client or multi-industry invoicing pipelines.
What This Template Does (Step-by-Step)
📂 Google Drive Search - Scans a designated folder (e.g., “Incoming Invoices”) - Collects all PDF files available for classification
⬇️ Download & Extract PDF Text - Downloads each file using Google Drive API - Extracts invoice text from PDFs using the “Extract from File” node
🔁 Batch Handling - Loops through each invoice in a batch using the SplitInBatches node - Ensures each document is processed one at a time
🧠 GPT-4o Mini via LangChain Agent - Sends extracted invoice content to GPT-4o AI - Classifies the document into one of: Retail, Manufacturing, EdTech - Returns clean, structured classification output