This is a nicely built by Ghulam-e -Mustafa PatelThis is a nicely built by Ghulam-e -Mustafa Patel

This is a nicely built

Portfolio project
Ghulam-e -Mustafa Patel
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)

0 likes · 0 views · May 10, 2026

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 Driv...

Tags