|
|
Expense Audit Agent
Author: Venkata Sudhakar
ShopMax India's sales and operations teams submit hundreds of expense claims each month - travel, meals, accommodation, and equipment. Most are legitimate, but some exceed policy limits, lack receipts, or get submitted outside the allowed time window. A manual review process is slow and inconsistent. An automated expense audit agent that checks every claim against the expense policy and flags violations for human review makes the process faster, fairer, and harder to game. This tutorial builds an Expense Audit Agent using ADK and Gemini. The agent checks each expense claim against policy limits, receipt requirements, and submission windows, classifies each as approved, flagged, or rejected, and produces a clean audit report for the finance team. The below example shows the expense audit workflow for ShopMax India employee claims.
It gives the following output,
Expense Audit Report - ShopMax India
Claim | Employee | Category | Amount | Status | Issues
-------|---------------|---------------|----------|----------|--------
EXP-001| Deepak Sinha | Travel | Rs 2,800 | APPROVED | None
EXP-002| Nisha Kapoor | Meal | Rs 1,450 | FLAGGED | Exceeds daily limit by Rs 450
EXP-003| Ajay Menon | Equipment | Rs 13,500| REJECTED | Exceeds limit by Rs 3,500 + no receipt + late submission (45 days)
EXP-004| Priya Singh | Accommodation | Rs 4,800 | APPROVED | None
APPROVED - Ready to pay: Rs 7,600 (EXP-001 + EXP-004)
FLAGGED - Manager review required:
EXP-002 (Nisha Kapoor): Meal Rs 1,450 exceeds Rs 1,000 daily limit by Rs 450.
If this was a client entertainment claim, manager may approve the overage.
REJECTED - Employee must resubmit:
EXP-003 (Ajay Menon): Three violations - amount over limit, no receipt,
and submitted 45 days after expense (deadline is 30 days). This claim
cannot be processed. Employee should seek pre-approval for equipment
above Rs 10,000 before purchase.
Connect this agent to your expense management system via a Cloud Function that triggers when new claims are submitted. Integrate with your HR system to validate that the employee is active and the cost centre is valid. Store audit logs in BigQuery for quarterly compliance reporting and pattern analysis to identify employees with repeat policy violations.
|
|