GoHighLevel · Google Apps Script · Gemini AI
<aside>
ℹ️
Portfolio project built on simulated data for a fictional agency, Bayanihan Digital Studio. No real client and no promised results.
</aside>
The problem
Small service businesses lose cash flow to invoices that slip 30, 60, even 90 days past due. Chasing payments is awkward, so it happens late and inconsistently. Some clients get chased after they've already paid, and nobody can quickly answer: how much are we owed, and who needs a call?
The solution
An automated collections system that watches every invoice, sends reminders that escalate from friendly to firm, and stops the moment a client pays. When a client replies, reminders pause right away and the right person gets a task. Accounts that stay unresponsive are handed to a person with a full summary of the history.
How it works
- Ledger → AR Bridge. Invoices are validated, aged, and checked hourly by a rules engine that decides each next step.
- AR Bridge → GoHighLevel. One opportunity per invoice. Workflows send the email/SMS, pause on replies, route intents and create tasks.
- Gemini (wording only). Writes the Stage 2–4 reminders and classifies unclear replies. Every message is validated before it can be sent, and a pre-approved template is used if a draft fails.
- People. Approve payment plans, resolve disputes and take handed-off accounts.
BDS AR Collections Architecture.html
Key features
- 4-stage reminder ladder, plus handoff to a person on day 31
- Stop-on-payment with a one-time thank-you message
- Pause-first reply handling with intent routing (plan, dispute, already paid, "why")
- Payment-plan flow with owner approval and missed-payment monitoring
- Tier rules: small invoices stay gentle, large and key accounts go to a person sooner
- Watchdogs, email alerts, a weekly digest and a Sheet-vs-GHL reconciliation check
- Dashboard: outstanding, overdue, aging buckets, DSO and collected this week