Gmail Invoice Parser — AI Automation with n8n + LLMs

An AI-powered automation that reads Gmail invoice attachments, extracts key fields using LLMs, and stores the results in Airtable — built entirely using n8n.

This project streamlines the process of handling incoming invoices via Gmail. The low-code workflow I built in n8n automates the following:

✅ Detects new emails with PDF invoice attachments

✅ Extracts raw text from the attached PDFs

✅ Sends that content to an LLM via LangChain + OpenRouter

✅ Parses key fields like vendor, date, line items, and total amount

✅ Validates and auto-corrects output using schema-aware retry logic

✅ Saves the structured data into Airtable for dashboards, exports, or further processing

It’s fully modular, requires minimal code, and is designed for freelancers, finance teams, and ops teams who want to eliminate manual invoice handling and boost productivity.

Project Links:  GitHub Repo, Medium Article, Demo Video

19 Jun 2025

Keywords
n8n
LangChain
Low-Code AI
Agentic AI
Automation
LLM
OpenRouter
GMail
API

Creating portfolio made simple for De

Trusted by 66300+ Generalists. Try it now, free to use

Start making more money