A 20-person AI agency in Philadelphia had $680,000 in outstanding accounts receivable โ nearly three months of revenue. Of that, $210,000 was more than 60 days overdue and $95,000 was more than 90 days. The agency was profitable on paper โ 18% net margin โ but was constantly stressed about cash. They had delayed hiring for two critical positions because they could not confidently predict when outstanding invoices would be paid. The CFO estimated that if they could reduce their DSO (days sales outstanding) from 62 days to 35 days, they would free up approximately $300,000 in working capital โ enough to fund their entire Q3 hiring plan.
Accounts receivable management is one of the most impactful operational disciplines for AI agencies, yet it is often neglected in favor of more glamorous work like delivery and sales. The reality is simple: revenue you have earned but not collected is money you cannot use. Every day an invoice sits unpaid, you are effectively lending money to your client at zero interest while paying your team, your vendors, and your overhead from your own reserves.
Understanding AR in the Agency Context
Why AI Agencies Have AR Challenges
Long payment cycles: Enterprise clients โ the primary buyers of AI agency services โ operate on net-30 to net-60 payment terms. Some push for net-90. Combined with the time to generate and send invoices, actual payment can arrive 45-90 days after work is completed.
Milestone-based billing: Fixed-price projects often bill at milestones. If milestone completion is delayed (even by the client), billing is delayed.
Dispute risk: AI project outcomes can be subjective. A client who questions whether a model meets performance criteria may withhold payment pending resolution.
Complex approval chains: Enterprise AP processes involve multiple approvals, PO matching, and scheduled payment runs. Any error at any step restarts the clock.
Scale of impact: A senior ML engineer costs $15,000-25,000 per month in fully loaded costs. If you are delivering work for two months before receiving the first payment, you have funded $30,000-50,000 in costs from your own working capital โ per engineer, per project.
The DSO Metric
Days Sales Outstanding (DSO) measures the average number of days it takes to collect payment after invoicing.
Calculation: (Accounts Receivable / Total Revenue) multiplied by Number of Days in Period
Benchmarks for AI agencies:
- Excellent: Under 30 days
- Good: 30-40 days
- Average: 40-55 days
- Concerning: 55-70 days
- Critical: Over 70 days
Each day of DSO reduction matters. For an agency with $3 million in annual revenue, reducing DSO by 10 days frees up approximately $82,000 in working capital.
The AR Management System
Component 1: Billing Infrastructure
Invoice timing:
- Retainers: Invoice on the first of each month for the upcoming month (billing in advance)
- Time and materials: Invoice biweekly or monthly for hours worked
- Fixed price with milestones: Invoice immediately upon milestone completion
- Deposits: Invoice before project start; do not begin work until deposit is received
Non-negotiable rule: Invoice the same day the billing trigger occurs. Every day of invoicing delay is a day of additional DSO.
Invoice quality: Invoices that are clear, accurate, and complete get paid faster. Every invoice must include:
- Client legal entity name and billing address
- Purchase order number (if required by the client)
- Invoice number and date
- Payment due date
- Detailed description of work performed or milestone achieved
- Itemized services with hours, rates, and amounts
- Project reference matching the SOW or contract
- Total amount due
- Payment instructions (wire details, ACH information, accepted methods)
- Late payment terms
Common invoice errors that delay payment:
- Wrong billing entity or address
- Missing PO number
- Vague description that does not match the contract language
- Mathematical errors
- Missing or incorrect payment details
- Invoicing the wrong amount versus the contracted price
Component 2: Payment Terms Optimization
Negotiating payment terms:
Payment terms are negotiated during the sales process, not after. Make payment terms a standard part of your contract negotiation.
Preferred terms by engagement type:
- Retainers: Due on receipt or net-15. Retainers are recurring and predictable โ push for short payment terms.
- Small projects (under $50,000): Net-15 to net-30.
- Medium projects ($50,000-200,000): Net-30 with 20-30% deposit upfront.
- Large projects (over $200,000): Net-30 with 25% deposit, milestone billing throughout, and final payment upon completion.
- Enterprise clients who insist on net-60 or net-90: Accept only with upfront deposit, milestone billing, or an early payment discount.
Early payment discounts: Offer 2% discount for payment within 10 days (standard notation: 2/10 net 30). Many enterprise AP departments are incentivized to capture early payment discounts. The 2% cost to you is far less than the cost of carrying the receivable for 30-60 additional days.
Late payment penalties: Include late payment terms in your contract and on your invoices. Standard: 1.5% per month on overdue balances. You may rarely enforce this, but having it in the contract provides leverage in collections conversations.
Component 3: Collections Process
Collections is not adversarial โ it is a professional business process. Design a systematic approach that is persistent without damaging client relationships.
The collections cadence:
Day 0 (Invoice sent):
- Send invoice with clear payment due date
- Confirm receipt with the client's AP contact
Day -7 (7 days before due date):
- Courtesy reminder: "Your invoice of $X is due on [date]. Please let us know if you need anything to process payment."
Day 0 (Due date):
- If not paid, follow up: "Your invoice of $X was due today. Could you confirm the expected payment date?"
Day +7 (7 days past due):
- Escalate to the project contact: "We notice invoice #X is past due. Is there anything holding up payment that we can help resolve?"
Day +15 (15 days past due):
- Phone call from the account manager or finance contact to the client's AP contact and project sponsor
- Goal: Identify the specific issue and get a committed payment date
Day +30 (30 days past due):
- Escalate to the client's manager or VP: "We want to resolve the outstanding balance of $X. Can we schedule a call to discuss?"
- Consider pausing new work on the account if the issue is not resolved
Day +45 (45 days past due):
- Formal written demand from agency leadership
- Internal decision: pause active work, adjust scope, or continue based on client relationship value and likelihood of payment
Day +60 (60 days past due):
- Final demand letter (consider involving legal counsel)
- Decision on formal collection action or write-off
Day +90 (90 days past due):
- Engage collection agency or legal counsel for formal collection
- Write off or reserve the receivable for accounting purposes
Component 4: AR Reporting and Monitoring
AR Aging Report:
Produce weekly and review in your leadership meeting:
- Current (not yet due)
- 1-30 days past due
- 31-60 days past due
- 61-90 days past due
- 90+ days past due
For each past-due invoice, document:
- Invoice amount and date
- Reason for delay (if known)
- Actions taken
- Expected payment date
- Owner (who is responsible for follow-up)
Key AR metrics to track monthly:
- Total AR balance
- DSO (current month and trailing 3-month average)
- AR aging distribution (percentage in each bucket)
- Collection effectiveness index: (Beginning AR + Credit Sales - Ending AR) / (Beginning AR + Credit Sales) x 100. Target: 80%+
- Bad debt write-offs as a percentage of revenue. Target: under 1%
Component 5: Dispute Resolution
Payment disputes are a reality in AI agency work, especially for milestone-based engagements where deliverable acceptance can be subjective.
Common dispute types:
- Client disagrees that a milestone has been met
- Client questions hours billed on T&M work
- Client claims deliverable quality does not match expectations
- Client's internal budget has been frozen or reduced
- Administrative error (wrong PO, wrong entity, wrong amount)
Dispute resolution process:
- Acknowledge promptly: When a client raises a dispute, acknowledge it within 24 hours
- Investigate: Gather all relevant information โ contract terms, SOW, emails, deliverables, time logs
- Propose resolution: Within 5 business days, present a proposed resolution to the client
- Negotiate if needed: Be willing to compromise on legitimate concerns (partial payment, revised deliverable, scope adjustment). Do not automatically concede โ legitimate billing should be defended.
- Document agreement: Whatever resolution is reached, document it in writing
- Separate the dispute from ongoing work: Do not let billing disputes poison the working relationship. Handle billing through business channels while delivery continues normally.
- Learn and prevent: After resolution, identify what caused the dispute and implement changes to prevent recurrence (clearer milestone definitions, better time tracking documentation, more frequent client alignment)
Preventing AR Problems
The best AR management prevents problems before they occur.
During sales:
- Negotiate favorable payment terms before signing
- Require deposits on large engagements
- Understand the client's AP process and requirements (PO numbers, invoice format, billing address, approval workflow)
- Include clear payment terms and late payment provisions in every contract
During delivery:
- Maintain clear milestone definitions with specific completion criteria agreed to by the client before work begins
- Document time and activities thoroughly for T&M engagements
- Get written milestone acceptance from the client before invoicing
- Communicate proactively about progress to avoid surprise disputes at billing time
- Invoice immediately โ do not batch invoices or delay
During collections:
- Build relationships with client AP contacts, not just project contacts
- Follow up consistently per your collections cadence
- Escalate early rather than waiting for invoices to age
- Keep emotion out of collections โ it is a business process
AR Automation
Automate as much of the AR process as possible:
- Automated invoicing: Generate invoices automatically from time tracking data or milestone completion triggers
- Automated reminders: Pre-due, due-date, and past-due reminders sent automatically
- Automated aging reports: Weekly AR aging reports generated and distributed automatically
- Payment matching: Automated matching of payments to invoices
- Escalation triggers: Automated alerts when invoices reach defined aging thresholds
Tools: QuickBooks, Xero, or FreshBooks for invoicing. Bill.com or Melio for payment processing. Tesorio or Upflow for AR automation. Stripe for automated recurring billing.
Working Capital and Credit
Building Cash Reserves
Target a cash reserve of 2-3 months of operating expenses. This buffer absorbs the inevitable cash flow variability of agency work.
Line of Credit
Establish a business line of credit before you need it:
- Apply when your financial position is strong (it is much harder to get credit when you need it urgently)
- Typical terms: revolving credit line of 1-3 months of revenue, interest rate of prime + 2-5%
- Use for short-term cash flow gaps (bridge between invoicing and collection), not for operational losses
- Repay as soon as cash flow normalizes
Invoice Factoring
For agencies with persistent AR challenges, invoice factoring (selling invoices to a factoring company at a discount) provides immediate cash:
- Typical cost: 2-5% of invoice value
- Benefit: Immediate cash flow without waiting for payment
- Downside: Reduces margin and can signal financial distress
- Best used selectively for large invoices with long payment terms, not as a standard practice
Your Next Step
This week:
- Pull your current AR aging report. How much is outstanding? How much is overdue? What is your current DSO?
- For any invoice over 30 days past due, make a follow-up call today.
- Check that every active client has clear payment terms documented in their contract.
This month:
- Implement a systematic collections cadence if you do not have one.
- Automate invoice reminders (pre-due, due date, and past-due notifications).
- Calculate your DSO and set a target for improvement.
This quarter:
- Establish an AR reporting cadence (weekly aging report, monthly metrics review).
- Review and optimize payment terms in your standard contract template.
- If your DSO is above 45 days, implement a focused DSO reduction initiative with specific targets.
- Establish a line of credit if you do not have one.
Cash flow is oxygen for your agency. You can survive a bad quarter of sales, but you cannot survive running out of cash. AR management is the discipline that ensures the revenue you have earned actually becomes the cash you can use. Start with visibility, build the process, and maintain the discipline.