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.
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
Watch the complete workflow in action:
(will be available soon)
- 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
The following diagram illustrates how invoices are processed through the workflow.
- 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
| Technology | Purpose |
|---|---|
| n8n | Workflow Automation |
| Google Gemini | Invoice Processing |
| OCR.Space | OCR |
| Google Drive | File Storage |
| Google Sheets | Invoice Database |
| Slack | Notifications |
- User uploads an invoice.
- The invoice is uploaded to Google Drive.
- The workflow detects the file type.
- Text is extracted using OCR or document parsing.
- Gemini AI extracts invoice information.
- Duplicate invoices are detected.
- Required fields are validated.
- Valid invoices are stored in Google Sheets.
- The user receives a Slack notification.
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
- Import the workflow into n8n.
- Configure credentials for:
- Google Drive
- Google Sheets
- Google Gemini
- OCR.Space
- Slack
- Replace placeholder resource IDs with your own.
- Activate the workflow.
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.
- PostgreSQL or Supabase integration
- Human approval workflow
- Confidence scoring for OCR
- Batch invoice processing
- Analytics dashboard
- Email notifications
- Audit logging
Amna Qamar
-
GitHub: https://github.com/AmnaQamar033
-
LinkedIn: https://www.linkedin.com/in/amna-qamar/




