GoHighLevel + Apps Script + Gemini (Demo Build)

AR Payment Chasing Automation

Automated collections system that escalates invoice reminders and stops the moment a client pays or replies.

Designed, built, and documented by Mark Geoffrey A. Batocabe, GoHighLevel (GHL) Automation Specialist.

23 / 23
Test Scenarios
7 / 7 Safe
Failure Drills
~$0.13
Total AI Cost

The Challenge

Small service businesses lose cash flow to invoices that slip 30 to 90 days past due, because chasing payments is awkward, late, and inconsistent.

The Solution & Engineering

Built a rules engine in Google Apps Script that checks every invoice hourly, drives a GoHighLevel reminder ladder from friendly to firm, and hands unresponsive accounts to a person with a full summary.

Key Architecture & Automation Deliverables

  • Built an Apps Script rules engine that ages invoices hourly and drives a 4-stage GHL reminder ladder that stops on payment or reply.
  • Limited Gemini to wording only, with validation and a pre-approved template fallback if a draft fails.
  • Routed replies by intent (payment plan, dispute, already paid), with owner approval for payment plans and missed-payment monitoring.
  • Added watchdogs, email alerts, a weekly digest, and a Sheet-vs-GHL reconciliation check, so every error is logged and alerted.
  • Passed 23/23 test scenarios and 7/7 failure drills for about $0.13 in total AI cost.

Technologies & Tools Applied

GoHighLevelGoogle Apps ScriptGemini APIGoogle SheetsJavaScript

Need a system like this for your business?

Full documentation, screenshots, and the video walkthrough are in the detailed case study.

More Case Studies