This is a nicely built n8n automation workflow — an Invoice Parser Agent. Here's aThis is a nicely built n8n automation workflow — an Invoice Parser Agent. Here's a
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
This is a nicely built n8n automation workflow — an Invoice Parser Agent. Here's a breakdown of what it does:
What it does, end to end:
Watches a Google Drive folder — polls every minute for new PDF files dropped into a specific "Invoice" folder.
Downloads & extracts text — when a new file appears, it downloads it and extracts the raw text from the PDF.
AI-powered data extraction — passes the text to an LLM (via OpenRouter's free tier) configured as an Information Extractor. It pulls out 7 structured fields: Invoice Number, Sender Name, Sender Email, Sender Address, Total Amount, Invoice Date, and Due Date.
Logs to Google Sheets — appends the extracted data as a new row in a Google Sheet called "Invoice."
AI Agent writes a notification email — a second LLM call acts as a "professional email writer," generating a formatted subject line and message body in strict JSON format.
Sends the email via Gmail — fires off the AI-composed email notification to gmpatel404@gmail.com (the billing team).
Error handling — if the AI agent fails, instead of crashing silently, it logs an error message to a separate "Error Sheets" tab in the same spreadsheet for manual review.
Tech stack: n8n + Google Drive + Google Sheets + Gmail + OpenRouter (free LLM tier) + LangChain nodes (Information Extractor, AI Agent, Structured Output Parser)
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started