|
|
Accounts Receivable Chase Agent
Author: Venkata Sudhakar
ShopMax India supplies electronics to corporate clients and government departments on credit terms. Some clients pay on day 30 as agreed; others slip to 60 or 90 days. Chasing overdue payments manually is time-consuming and awkward. An accounts receivable agent that tracks every outstanding invoice, grades each by overdue severity, and sends appropriately escalating messages keeps cash flowing without straining client relationships. This tutorial builds an Accounts Receivable Chase Agent using ADK and Gemini. The agent scans open invoices, classifies each by days overdue, and generates a tiered message - gentle reminder at 7 days, firm notice at 30 days, formal demand at 60 days - with the exact amount and payment details included. The below example shows the AR chase workflow for ShopMax India B2B clients.
It gives the following output,
AR Chase Report - ShopMax India
Total outstanding: Rs 12,65,500 | 3 invoices
--- CRITICAL (81 days overdue) ---
To: Deputy Commissioner Accounts, Chennai Municipal Corporation
Re: FORMAL PAYMENT DEMAND - INV-B2B-1003
Dear Sir/Madam, Invoice INV-B2B-1003 for Rs 8,92,000 remains unpaid 81 days
after the due date of 15 January 2025. Despite previous communication, this
amount has not been settled. We formally request payment within 7 days.
Failure to respond may compel us to initiate legal recovery proceedings.
Transfer to ShopMax India - HDFC Bank IFSC HDFC0001234 Acc 50200012345678.
--- OVERDUE (37 days) ---
To: Ramesh Gupta, CFO, TechCorp Solutions
Re: Invoice INV-B2B-1001 - Payment Due
Dear Ramesh, Invoice INV-B2B-1001 for Rs 2,45,000 was due on 1 March 2025
under NET 30 terms and is now 37 days overdue. Please arrange payment at
your earliest convenience. UPI: shopmax@hdfcbank
--- REMINDER (23 days) ---
To: Sunita Rao, Accounts, Infosys BPO
Re: Friendly Reminder - INV-B2B-1002
Hi Sunita, a gentle reminder that INV-B2B-1002 for Rs 1,28,500 is now
23 days overdue. Please let us know if you need any documents.
UPI: shopmax@hdfcbank
Run this agent weekly via Cloud Scheduler. Log each chase attempt in Firestore with a timestamp so the agent tracks escalation history. Integrate with your email or WhatsApp Business API to dispatch messages automatically. Pause escalation for any invoice where a payment plan has been agreed and logged in Firestore.
|
|