Colombian Invoices Processing
Triggered manually or by an app event. Connects Aggregate, Code, Compression, Extract From File, Filter, Google Drive, Google Sheets, Loop. ๐งพ Colombian electronic invoices processing This N8N workflow automates the extraction and organization of personal electronic invoices in Colombia received via Gmail. It includes the following key steps: ๐ Flow Summary 1. Email Trigger - Polls Gmail every 30 m
Front matter
name: Colombian Invoices Processing
description: Triggered manually or by an app event. Connects Aggregate, Code, Compression, Extract From File, Filter, Google Drive, Google Sheets, Loop. # ๐งพ Colombian electronic invoices processing This N8N workflow automates the extraction and organization of **personal electronic invoices** in Colombia received via **Gmail**. It includes the following key steps: ## ๐ Flow Summary 1. **Email Trigger** - Polls Gmail every **30 minutes** for emails with `.zip` attachments (assumed to contain invoices). - Following DIAN requirements in Colombia 2. **ZIP File Handling** - Extracts all files. - Filters only **PDF** and **XML** files
category: Automation
kind: Workflow
software: Aggregate|Code|Compression|Extract From File|Filter|Google Drive|Google Sheets|Loop|Stop And Error|Switch|XmlColombian Invoices Processing
Triggered manually or by an app event. Connects Aggregate, Code, Compression, Extract From File, Filter, Google Drive, Google Sheets, Loop. # ๐งพ Colombian electronic invoices processing
This N8N workflow automates the extraction and organization of personal electronic invoices in Colombia received via Gmail. It includes the following key steps:
๐ Flow Summary
- Email Trigger
- Polls Gmail every 30 minutes for emails with
.zipattachments (assumed to contain invoices). - Following DIAN requirements in Colombia
- ZIP File Handling
- Extracts all files.
- Filters only PDF and XML files
Steps
- Loop Over Items (splitInBatches)
- OpenAI Chat Model (noOp)
- Calculator (noOp)
- Structured Output Parser (noOp)
- On Email receipt (gmailTrigger)
- Get Filename and mimeType (code)
- Filter ZIP files only (filter)
- Unzip Invoice (compression)
- Just for style (noOp)
- Get filename and mimeType on extracted docs (code)
- Split XML and PDF (switch)
- Extract PDF Data (extractFromFile)
- Extract XML Data (extractFromFile)
- Convert to JSON (xml)
- Append both Docs (merge)
- Aggregate all Data into 1 list (aggregate)
- Extract Data from PDF and XML (noOp)
- Create initial PDF (googleDrive)
- Merge both flows (merge)
- Update PDF with actual name (googleDrive)
- Get Current Date (code)
- Create or update row (googleSheets)
- Sticky Note (stickyNote)
- Error Handler (stopAndError)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/1765_Code_Filter_Process_Triggered.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.