Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Match invoices to POs and GRNs with Groq, Sheets, Notion and Gmail
Runs on a schedule to perform a three-way match of invoices, purchase orders and goods receipts, auto-approving clean matches and sending exceptions for LLM review.
What it does
# AI-Powered Three-Way Match Automation Workflow (Procurement Industry) This workflow automates the Accounts Payable process by performing a sophisticated Three-Way Match between Invoices, Purchase Orders (POs), and Goods Receipt Notes (GRNs). It leverages Fuzzy Logic and LLM Semantic Analysis to detect financial discrepancies. The system is designed to automatically approve high-confidence transactions and reject low-score errors, while routing complex edge cases for a Deep AI Analysis based on historical vendor behavior. ## How it works: The process starts by fetching data from Google Sheets and normalizing item descriptions using custom JavaScript. It calculates a hybrid match score (combining Jaccard and Levenshtein similarities). Based on this score, the workflow branches: high scores are auto-approved, low scores are rejected with an email alert, and middle-range scores trigger a Groq-powered AI Agent. This agent retrieves past vendor history from Notion to make a final human-like decision on whether to approve or reject the discrepancy. ## Setup Steps: * Data Sources: Connect your Google Sheet containing the Invoice, Purchase Order, and Goods Receipt tabs. * Database Logging: Ensure the Notion Database ID is updated and contains properties for invoice_id, vendor_id, and decision. * AI Configuration: Add your Groq API credentials to the Llama 3.3 model nodes. * Gmail: Connect you Gmail credential to get notification for mismatched or rejected invoices
The steps
- Fetch Purchase Order
- fetch invoice data
- fetch good receipt
- Semantic Item Check
- Filter: Valid Pending Invoices Only
- Merge & Similarity Scoring
- Resolve Best Match per Invoice
- Route: Decision Path via Match Score
- Prepare: Approval Metadata
- Update Status
- Archive Approved Transaction
- Prepare: Rejection Metadata
- Update Status - Rejected
- Send Alert
28 steps in total.
Similar automations
Email AutomationMatch vendor invoices with POs and GRNs in Google Sheets and notify Finance via Gmail15 stepsFinance, Invoices & AccountingMatch vendor invoices to POs and GRNs with OpenAI, Gmail, Drive and Sheets37 stepsData Sync & ETLSave and categorize N26 transactions in Notion using Groq35 stepsEmail AutomationTriage and route Gmail leads with Groq, Notion CRM, and Twilio calls16 steps