JUHE API Marketplace

Colombian Invoices Processing

Active

Colombian Invoices Processing automates the extraction and organization of personal electronic invoices received via Gmail. It checks for new invoices every 30 minutes, extracts data from ZIP files containing PDF and XML formats, and validates financial details. The workflow uploads the original PDF to Google Drive, renames it with the issue date and invoice number, and updates Google Sheets with key invoice information, ensuring efficient record-keeping and compliance with Colombian regulations.

Workflow Overview

Colombian Invoices Processing automates the extraction and organization of personal electronic invoices received via Gmail. It checks for new invoices every 30 minutes, extracts data from ZIP files containing PDF and XML formats, and validates financial details. The workflow uploads the original PDF to Google Drive, renames it with the issue date and invoice number, and updates Google Sheets with key invoice information, ensuring efficient record-keeping and compliance with Colombian regulations.

This workflow is ideal for:

  • Small Business Owners who deal with electronic invoices and need to automate the processing of invoices received via email.
  • Freelancers who want to streamline their invoicing process and keep track of their expenses efficiently.
  • Accountants looking to save time on data entry and ensure accurate record-keeping of invoices.
  • Individuals who want to manage personal invoices without manual effort.

This workflow addresses the challenges of:

  • Manual Invoice Processing: Automates the extraction and organization of invoices, reducing the time spent on manual entry.
  • Data Accuracy: Ensures that the extracted data is validated and accurate, minimizing errors in financial records.
  • Storage and Organization: Automatically uploads invoices to Google Drive and keeps a structured record in Google Sheets, making retrieval easy and organized.
  • Compliance: Follows DIAN requirements for electronic invoices in Colombia, ensuring that users remain compliant with local regulations.
  1. Email Trigger: Checks Gmail every 30 minutes for emails with .zip attachments containing invoices.
  2. ZIP File Handling: Extracts files from the ZIP and filters for PDF and XML formats for further processing.
  3. Data Extraction: Uses LangChain Agent + OpenAI (GPT-4o-mini) to extract key invoice information:
    • Document Type (Invoice / Credit Note)
    • Invoice Number
    • Issue Date (format: YYYY-MM-DD)
    • Issuer's NIT and Receiver's NIT (without verification digit)
    • Issuer's Business Name
    • Subtotal, VAT, Total Amount
    • CUFE
    • Purchase Summary (max 20 words, grammatically formatted)
  4. Validation: Confirms that Total = Subtotal + VAT using a calculator node to ensure accuracy.
  5. Storage: Uploads the original PDF to Google Drive with the new name format: YYYY-MM-DD-NUMERO_FACTURA.pdf and updates Google Sheets with invoice details, using a unique key to prevent duplication.

Statistics

23
Nodes
0
Downloads
21
Views
16261
File Size

Quick Info

Categories
Communication & Messaging
Complex Workflow
+2
Complexity
complex

Tags

manual
advanced
noop
logic
complex
sticky note
files
storage
+12 more

Boost your workflows with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more. Free trial.