Recommended
Counting closed Cases in Service Cloud before agreeing to per-resolution pricing (opens in a new tab)
You will know three SOQL queries that measure monthly closed Cases by channel, estimate reopen rate from CaseHistory, and the contract definitions to settle before pricing an AI agent per resolution.
- Count closed Cases per month by Origin
- Measure reopen rate from CaseHistory
- Agree a written definition of resolved
The author, a long-time enterprise software seller, argues that per-resolution pricing for AI agents is a significant shift in how software is sold. Vendors such as Sierra, Fin, HubSpot and Zendesk now charge per resolved conversation or incident. He suggests the first question to ask is how many resolutions you have today, which in Service Cloud usually means closed Cases.
The first query counts closed Cases per month over the last six full months, grouped by Origin. Grouping by channel matters because per-resolution offers often cover only chat, email or messaging, leaving phone cases out. Multiplying each channel’s monthly total by the price gives a first estimate of the bill.
The second query looks at CaseHistory, which stores status changes when field history tracking is enabled for Status on Case. Because OldValue and NewValue cannot be filtered in a WHERE clause, the result is exported and filtered in a spreadsheet to find cases moved from a closed status back to an open one. Dividing these reopened cases by the closed total gives a reopen rate. Tracking only records changes from the point it is switched on.
The third step is to agree in writing with the vendor on what counts as resolved. The author lists three points: which statuses count, whether a reopen window stops a returning case being billed twice, and whether a case closed by a human after AI handoff should be billed the same as one the AI resolved alone.
Read the original at dev.to (opens in a new tab)