AWS Builder Center
How We Built InvoiceOps: Autonomous Accounts Payable Operations with Switch & Multi-Agent AI

How We Built InvoiceOps: Autonomous Accounts Payable Operations with Switch & Multi-Agent AI

Accounts Payable (AP) workflows are full of silent bottlenecks: missing purchase orders, line-item price mismatches, missing goods received notes (GRNs), and manual, back-and-forth email loops across finance and procurement teams. To solve this, we built InvoiceOps—an autonomous accounts-payable operations platform that automates deterministic 3-way invoice matching, triages exceptions using multi-agent AI, and keeps human approval controls firmly in place

How We Built InvoiceOps: Autonomous Accounts Payable Operations with Switch & Multi-Agent AI

Accounts Payable (AP) workflows are full of silent bottlenecks: missing purchase orders, line-item price mismatches, missing goods received notes (GRNs), and manual, back-and-forth email loops across finance and procurement teams.
To solve this, we built InvoiceOps—an autonomous accounts-payable operations platform that automates deterministic 3-way invoice matching, triages exceptions using multi-agent AI, and keeps human approval controls firmly in place.
Here is how we built it, why we chose Switch as our team collaboration hub, and how you can run it.

🎯 The Problem InvoiceOps Solves

In traditional finance operations, exception handling is messy. When an invoice comes in with a discrepancy (e.g., billed price doesn't match the purchase order), it stalls. AP clerks have to dig through ERP systems, ping procurement over chat, and manually assemble audit logs.
InvoiceOps changes this by combining deterministic engine accuracy with AI collaboration:
  1. Automated Data Extraction: Extracting line items, vendor details, and totals from incoming documents.
  1. Deterministic 3-Way Matching: Comparing Invoices, Purchase Orders (POs), and Goods Received Notes (GRNs) mathematically—no AI hallucination for math.
  1. AI Exception Triage: Routing discrepancies to dedicated multi-agent collaborators in shared rooms.
  1. Human-in-the-Loop Controls: Preserving role-based approvals for final payment voucher generation.

🛠️ How We Built with Switch & MCP

We integrated InvoiceOps natively with  Switch using its Model Context Protocol (MCP) server architecture and multi-agent layer:
  • Agents Connected: We connected AI agents—including Claude Code and OpenAI Codex agents—via MCP. This allows agents to directly invoke custom InvoiceOps tools while adhering to strict system boundaries and role-based permissions.
  • Shared Collaboration Rooms: We established dedicated collaboration spaces like  #invoiceops-ap . Here, an intake agent automatically processes new invoices while a reconciliation agent executes matching logic alongside human AP and procurement teammates.
  • Multi-Platform Support: Communication runs seamlessly through our web collaboration interface and Telegram gateway, leveraging Switch's connector architecture built to support Slack, Teams, Discord, and Mattermost.

⚙️ Key Technical Highlights

  • Tamper-Evident Audit Records: Every agent action, exception flag, and human approval is recorded to maintain absolute financial compliance.
  • Deterministic Matching Layer: AI helps triage and communicate, but invoice validation rules remain 100% deterministic.
  • Role-Based Approvals: Payment-ready vouchers require explicit human approval before execution.

🚀 Check Out the Project

  • 📂 GitHub Repository: Mayank-iitj/InvoiceOps
Built for the Flip the Switch Hackathon by WeMakeDevs.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article