Skip to content

About

AI-powered invoice processing workflow built with n8n, Gemini, OCR, Google Drive, Google Sheets, and Slack for automated invoice extraction and validation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

AI Invoice Processing Agent

An end-to-end AI-powered invoice processing workflow built with n8n that automates invoice extraction, validation, duplicate detection, cloud storage, and notifications. The workflow supports PDF, DOCX, and image invoices using OCR and Google Gemini for intelligent data extraction.


Overview

Manual invoice processing is time-consuming and error-prone. This workflow automates the complete invoice processing pipeline by combining AI with workflow automation.

The system:

  • Accepts invoices in multiple formats
  • Extracts invoice information
  • Validates required fields
  • Detects duplicate invoice numbers
  • Stores invoice records
  • Uploads original invoices to Google Drive
  • Sends status notifications to Slack

Demo

Watch the complete workflow in action:

(will be available soon)


Project Highlights

  • Automated invoice processing workflow built with n8n
  • Supports PDF, DOCX, JPG, and PNG invoices
  • AI-powered invoice data extraction using Google Gemini
  • OCR integration for image-based invoices
  • Duplicate invoice detection and validation
  • Automated storage in Google Sheets and Google Drive
  • Real-time Slack notifications

Workflow

Workflow


Architecture

The following diagram illustrates how invoices are processed through the workflow.

Architecture


Features

  • Supports PDF, DOCX, JPG, and PNG invoices
  • AI-powered invoice understanding using Google Gemini
  • OCR for image-based invoices
  • Automatic duplicate invoice detection
  • Required field validation
  • Google Sheets integration
  • Google Drive integration
  • Slack notifications
  • Automatic rejection of unsupported file formats

Tech Stack

Technology Purpose
n8n Workflow Automation
Google Gemini Invoice Processing
OCR.Space OCR
Google Drive File Storage
Google Sheets Invoice Database
Slack Notifications

Workflow Logic

  1. User uploads an invoice.
  2. The invoice is uploaded to Google Drive.
  3. The workflow detects the file type.
  4. Text is extracted using OCR or document parsing.
  5. Gemini AI extracts invoice information.
  6. Duplicate invoices are detected.
  7. Required fields are validated.
  8. Valid invoices are stored in Google Sheets.
  9. The user receives a Slack notification.

Results

The workflow successfully automates the invoice processing pipeline by:

  • Eliminating manual data entry
  • Reducing duplicate invoice submissions
  • Organizing uploaded invoices in Google Drive
  • Maintaining a structured invoice database in Google Sheets
  • Providing real-time processing updates through Slack

Screenshots

Google Sheets

Google Sheets

Google Drive

Google Drive

Slack Notification

Slack


Setup

  1. Import the workflow into n8n.
  2. Configure credentials for:
    • Google Drive
    • Google Sheets
    • Google Gemini
    • OCR.Space
    • Slack
  3. Replace placeholder resource IDs with your own.
  4. Activate the workflow.

Security

This repository contains a sanitized version of the workflow.

All credentials, API keys, resource identifiers, webhook URLs, and personal information have been removed before publication.


Future Improvements

  • PostgreSQL or Supabase integration
  • Human approval workflow
  • Confidence scoring for OCR
  • Batch invoice processing
  • Analytics dashboard
  • Email notifications
  • Audit logging

Author

Amna Qamar

About

AI-powered invoice processing workflow built with n8n, Gemini, OCR, Google Drive, Google Sheets, and Slack for automated invoice extraction and validation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors