Extract and organize Colombian invoices with Gmail GPT 4o Goo
🧾 Personal Invoice Processor This N8N workflow automates the extraction and organization of personal invoices in Colombia received via Gmail. It includes th...
🔌 Nodes & Integrations Used (10)
📖 Implementation & Setup Guide
🧾 Personal Invoice Processor
This N8N workflow automates the extraction and organization of **personal invoices in Colombia** received via **Gmail**. It includes the following key steps:
🔁 Flow Summary
- **Email Trigger**
- - Polls Gmail every **30 minutes** for emails with `.zip` attachments (assumed to contain invoices).
- - Expects ZIP file following DIAN standards.
2. **ZIP File Handling** - Extracts all files. - Filters only **PDF** and **XML** files for processing.
3. **Data Extraction & Processing** - Uses **LangChain Agent + OpenAI (GPT-4o-mini)** to extract: - Tipo de documento (Factura / Nota Crédito) - Número de factura - Fecha de emisión (YYYY-MM-DD) - NIT emisor y receptor (sin dígito de verificación) - Razón social del emisor - Subtotal, IVA, Total - CUFE - Resumen de compra (max 20 words, formatted sentence)
4. **Validation** - Ensures **Total = Subtotal + IVA** using a calculator node.
5. **Storage** - Uploads the original PDF to **Google Drive**. - Renames the file to: `YYYY-MM-DD-NUMERO_FACTURA.pdf`. - Inserts or updates invoice details in **Google Sheets** using a unique `Key` (`NIT_Emisor + Numero_Factura`) to prevent duplication.
---
> ⚙️ Designed for personal use with minimal latency tolerance and high automation reliability.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Extract_and_organize_Colombian_invoices_with_Gmail_GPT_4o_Goo.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related AI Agents Workflows
View All in AI Agents →5 ways to process images PDFs with Gemini AI in n8n
How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workfl...
7 AI Sales Assistant
Production-ready n8n automation template for 7 AI Sales Assistant built by AhiXLight. Seamlessly connects Airtop Tool, Slack, Airtop with 24 configured nodes.
AAVE portfolio professional AI agent Telegram Email GPT 4o
A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports v...
Access control for AI agents RBAC using Airtable and Telegram
Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control....