Skip to content
AISpendbook

Finance

Gross margin & contracts

Other cost of revenue, recognised revenue, margin by plan, customer contracts with allowances and alerts, and deal pricing in other units.

Customer margin starts with AI contribution: revenue minus allocated AI cost and non-token cost lines. This page covers what turns it into gross margin, the revenue basis, customer contracts and how deals are priced in units other than requests.

Other cost of revenue and gross margin

  • On the margin page, Other cost of revenue, an admin adds a monthly line: category (hosting, support, payment fees, human review, other), amount and a split by revenue share, AI cost share, request share, or direct to one customer.
  • Gross margin is AI contribution minus other cost of revenue, shown in its own columns. A line with no customer to split to in a month is reported as not allocated.
  • Non-token cost lines are already inside AI contribution; do not enter the same cost twice. The report notes when both hold the same kind of cost.
  • Gross margin by month, on the margin page and the home page: company revenue, AI cost, AI contribution, other cost of revenue and gross margin for the last 12 months, with Export, and as a feed or scheduled export. A month with no revenue record shows no margin, and the current month is month to date. These are today's figures; a closed month's board pack shows what was locked at close.
  • Gross margin by customer cohort groups customers by their first revenue month and shows each cohort's gross margin % per month, with Export, and as a feed or scheduled export. A customer with no revenue in a month is counted apart and left out of that month; a customer with revenue but no cost that month is not on the margin report, so cohort revenue can be below company revenue. Only the first 50,000 revenue records are read to place customers.

Revenue basis and plans

  • Revenue basis picks invoiced or recognised. Recognised revenue comes from the recognised_revenue and recognised_month columns of a revenue upload, or from the Stripe Revenue Recognition connector.
  • By plan or SKU: Stripe invoice lines keep their product, shown by the product name read from Stripe (the ID on hover; a price ID without a product stays an ID), and billing system connectors and uploads with a plan column name the plan. A plan display name set on Customers, Names wins. Costs follow revenue share.

Customer contracts and allowance alerts

  1. On a customer's detail sheet, Contract: plan, price per month, allowance and unit (requests, minutes, conversations, resolutions, tokens or dollars of AI cost), overage rate, term, renewal date and alert emails.
  2. Use is measured per calendar month to date with a month-end projection at the same daily rate.
  3. A contract can carry up to 5 more allowances in other units (minutes and conversations, say), each with its own overage rate. Once a day, contracts in term alert at 80% and 100% of each allowance (the highest crossed, once per month), and when use is below a set share on or after a set day (one share and day per contract). Alerts and their emails name the customer by display name, else the customer mapping name, else the CRM account name.
  4. A customer with no contract saved here uses its Metronome contract or Orb subscription in term: plan, term, renewal, and the allowance, unit, overage rate and price where the billing system states them. The contract card names the source; a contract saved here overrides it.
  5. When the saved contract, Metronome or Orb, and Salesforce or HubSpot disagree on the renewal date or term end, the contract card shows each source and which one is used. A CRM date never changes the contract; fix it at its source.
  6. Books, Allowances lists every contract in term that has an allowance, this month to date: used %, projected month end and projected overage, the account owner (the saved owner, else the CRM owner), CRM segment and renewal date. Filter by owner or segment, sort any column, and download CSV or Excel.
  7. Bulk contract import (Allowances page, admins): paste or upload a CSV with one row per customer: a customer id or mapped Stripe customer id, the plan and the term start are required; price, allowance, unit, overage rate, term end, renewal date and outcome definition are optional. Columns are matched by name and can be re-matched; Check the file lists problems by line. Import writes only when every row is valid and replaces each customer's saved contract; Undo restores each customer as before, except contracts edited after the import.
  8. Minutes count once per call: cost lines sharing a call id count their telephony line, else their longest line. Lines with no call id count the telephony lines, else the one kind with the most minutes. An admin can pick another kind on the contract card.

Deals in other units

Deal pricing can price in requests, minutes, conversations or resolutions, with graduated tiers above the included units, ramps by contract month, saved templates and approval thresholds (minimum AI contribution %, maximum discount %). Thresholds and room before loss are checked on every contract month and on the whole contract, so a ramp that makes later months lose money needs approval.

Limits

  • A month of revenue or other cost of revenue is taken in proportion to its days inside the range. A month with no recognised figure has no recognised revenue.
  • Stripe product names need Products: Read on the restricted key; without it plans show by product ID and the sync warns.
  • Money commits and credits in a billing system do not become an allowance. Conversations and resolutions need an outcome definition, so they are not filled from a billing system.
  • Contracts need revenue access and the Growth plan or above. Alert emails go to the contract's emails, or the admins when none are set.
  • Bulk import takes 2,000 rows per file by default. A Stripe id needs an existing customer mapping; Stripe subscriptions are not read into contracts automatically.