This workflow automates invoice processing directly from your email inbox.
It captures invoice attachments, extracts structured data using OCR and AI, validates totals, and securely processes invoices. If issues are detected, it routes them for human review. Approved invoices are recorded in QuickBooks and logged for auditing.
Email Trigger
Monitors a Gmail label and downloads invoice attachments automatically.
Configuration & Metadata
Sets OCR API, thresholds, and captures invoice details like vendor, timestamp, and file hash.
File Processing
Routes PDFs to a text extractor and images to an OCR API.
AI Data Extraction
AI converts raw text into structured invoice data with confidence scores.
Validation
Recalculates totals and verifies subtotal, tax, and final amounts.
Data Privacy
Masks sensitive fields like PAN, GST, and bank account details.
Review Decision
Flags invoices for review if validation fails or confidence is low.
Human Review (if needed)
Sends Slack alert and waits for approval before proceeding.
Accounting Integration
Creates a bill in QuickBooks for approved invoices.
Audit Logging
Stores processing details in Google Sheets for traceability.
Notifications
Sends a success message after processing is complete.