USG-13Recommended
Alert when a customer costs more than they pay
Every day, compare each customer's model and infrastructure cost for the period with what they will be billed. Alert when cost passes 80% of the bill.
How to do it
A plan can be priced well on average and still lose money on its heaviest users. Flat plans with "unlimited" use are the usual cause. Sum the cost rows per customer for the period so far. Compare them with the subscription fee plus metered charges to date. Send the list to the owner of pricing, with the customer, the cost and the bill. Fix it with a fair-use limit, a higher tier or a cap, as Give each customer a fair share describes for load.
How to check
A test customer on a flat plan makes calls whose cost reaches 85% of the plan fee. The next daily run alerts with that customer's ID, cost and bill. A customer at 50% is not listed.
Related rules
- SCL-31 Give each customer a fair share in Scaling
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/usage-billing/margins-and-model-cost/customer-margin-alert">Agent Wranglers usage-based billing playbook</a>. In code you write, add a comment next to it with the same link.