On this page
Open it from Reports → AI backtest, from Settings → Built-in AI → Backtest, or from the finished card of a Freshdesk import.
When it runs
- After your first import, by itself, when Reply drafts is on and uses the built-in AI (the server's provider): turning drafts on was your consent to send ticket data there, and this month's included AI bounds what it spends. Its report is emailed to whoever ran the import.
- After your first import, waiting for you, when Reply drafts uses your own provider's key: your provider bills you, so nothing starts until an admin confirms the estimate. The report says "Confirm the estimate to run your backtest", with what it sends where and what it costs; Confirm and run starts it.
- When Reply drafts was off at the import, nothing starts: the report offers Run backtest.
- When an admin runs it: Run backtest opens a dialog that says how many conversations it sorts and replays, which providers receive them, how many calls it makes, what it costs and about how long it takes. Pressing Run backtest there is the consent to send that sample, and it is recorded in the AI settings history. The admin who ran it gets an email when it is ready.
One backtest (or one comparison of models) runs at a time in a workspace. It runs in the background, after the AI work your team is waiting for, so a run of 200 conversations takes about half a minute each: you can leave the page. Stop ends it; what it scored stays in the report, which says how far it got and how many it scored ("Stopped at 42 of 200. 38 scored, 2 could not be."), or, stopped while it sorted, how many it sorted. Delete removes it. Run again on these conversations replays the same ones.
What a draft may read
A replayed draft sees only what existed before the agent's first reply:
- the customer's messages before that reply (never private notes, never later messages);
- past conversations whose every message came before that reply;
- with Knowledge: as it was then (the default), knowledge base articles not edited since that reply. An article edited later is left out, and the report says how many were. An imported article counts from when it was last edited in Freshdesk.
Knowledge: as it is now uses today's articles instead, for instance after you wrote the articles the first run said were missing. Scores can then run high: an article may have been written from the very ticket being replayed.
How the score works
A second model (by default the same model that writes your drafts) reads the customer's messages, the draft and the agent's real reply, and gives one of three scores:
- Close: the draft says what the agent said; a customer would have got the same answer.
- Partly: the right direction, with something missing or wrong.
- Off: a different answer, or a wrong one.
For a draft that was not close it names the main reason: the knowledge was not in your knowledge base, the agent needed to see an image, to look something up in another system, or to report the status of a fix, or another reason. It adds one sentence saying why.
The model that writes the draft never sees the agent's reply; only the scoring model does.
Word match is a second number on each conversation: the share of words both replies have in the same order, the same measure that counts a draft as sent unchanged. It is a hint, not the score.
The scoring model can be wrong. A draft that missed because the agent looked something up elsewhere is a limit of what a draft can know, not a gap in your knowledge base.
What came in
Before it replays, a backtest sorts the latest conversations of your inbox (as many as it replays, 200 by default), whether your team replied or not: every status but spam, each with a message from the customer. A conversation your team started has nothing that came in and is left out. The model that writes your drafts reads each one's subject and first customer message, never your replies, notes or later messages, and says:
- Automated mail: a notification, a receipt, an auto-reply or a newsletter that no person needed to answer. The report shows "Automated mail: X of N (Y%)". Conversations your team marked spam in the same span are left out and counted apart. Colliedesk does not filter these by itself today; the line is the model's judgement, to show how much of your inbox they are.
- For the others, what answering needed: Code change (only a fix to your product solves it), Lookup (data from another system, such as an order), Knowledge (an answer you could write down once) or Operation (a person must do something, such as a refund).
The sorting runs once per backtest and costs one call per conversation, counted in the estimate you confirm. A conversation whose sort failed is counted apart; its replay, if it has one, still runs. Like the score, the sorting can be wrong.
Sorting by your ticket types
When your tickets have types (a Freshdesk import brings each ticket's type), the model also picks each conversation's type from your own list, and the report says "Sorting matched your types on X of Y": Y are the sorted conversations your team gave a type, automated mail left out. Without ticket types, the report says "No ticket types to compare with". This compares the model with your team's own labels; it does not grade AI triage. The replays' scores are also shown By ticket type, so a team that uses few tags still sees where drafts do well.
Sorted conversations lists them, filtered by what they were sorted as or by whether their type matched; each opens its conversation.
The report
- How close the drafts came: the share of close, partly and off, with their counts, what the run cost, how long a draft took (the draft call alone, not its score or the wait in the queue), and the models.
- By tag: the same per tag of the conversations (a conversation with two tags counts in both).
- Why drafts missed: the reasons, each a link to its conversations.
- Conversations: every replayed conversation, filtered by score, tag or reason. Opening one shows what the customer wrote, the AI draft beside what the agent sent, the sources the draft used and the reason for its score; J and K move to the next and previous one.
Anyone who reads Reports sees the numbers. The list of conversations needs the Read conversations permission; opening one, which shows the ticket's text, needs Read messages. Starting, stopping and deleting a backtest needs the permission to change the AI settings.
When fewer than 20 resolved conversations have an agent reply to replay, the backtest replays none, says how many it found, and sorts your inbox instead: its report shows what came in and how the model's types matched your team's. A conversation removed by an import undo leaves the report, and the report says how many were removed.
Compare models
In the dialog, Compare with another model adds a model (up to three): each drafts the same conversations, as of the same replies, and the same model scores every draft, so only the drafting model differs. The models run one after another under one confirm: the dialog shows each model's cost, the scoring, the sorting (done once) and the total, and every provider that receives the conversations. The report's Models compared card shows, per model, the share of close drafts, the cost a draft and the time a draft (the draft call alone, never its score; on your own key, what the provider said a draft cost, in its own unit such as OpenRouter's credits, when it says), with the highest and the cheapest named in words (none when every model ties), and the close share per tag; Showing switches the whole report to one model. One email tells you when every model is done. Stop stops the model running and cancels those still waiting; deleting one model's run keeps the others: deleting the model running starts the next one. The comparison's sorting (what came in) is the first model's, so deleting that run deletes it too.
Run again on these conversations
After you edit your knowledge base, Run again on these conversations replays the same conversations as an earlier run, with the same scoring model and, by default, Knowledge as it is now (as it was then would leave out the very articles you just edited). The sorting is not done again: the report shows the earlier run's. The Before and after card compares the two runs on the conversations scored in both. While the run replays it says So far and how many it compared; a run you stopped says it is part of the run; before anything was scored in both it shows "—". When the earlier run used the articles as they were, the report says how many it left out: part of the difference comes from them. You can also pick another model to draft with, so a change can come from the model too. A backtest that replayed nothing (too few replies) cannot be run again: its report offers Run backtest instead.
Auto-answer on replay
With imported history (at least 300 imported conversations a person answered), AI may send replies by itself (AI sends by itself) only after a check of AI on past conversations: a run with the purpose of a check, started from Settings → AI & agents → Reply drafts (Check AI on 400 past conversations) or from this page. It replays 400 past conversations with the knowledge as it was before each reply and the model drafts use now, leaving out the conversations an earlier check that did not pass replayed. A backtest you start yourself (New backtest, Run again, a comparison) is never such a check.
The card Auto-answer on replay, under the totals, says what the check does for auto-answer, with four numbers, each opening those replayed conversations:
- Drafted: the questions that needed a reply.
- Sendable as written: AI would have sent it, and the score is close.
- Handed to a person: AI found something missing, flagged a check, or cited something other than a public article.
- Wrong: AI would have sent it, and the score is partly or off.
It opens auto-answer at 300 or more drafted with none wrong. One wrong keeps it off: check another set of past conversations (articles you fix afterwards are proven by live drafts, 10 sent as written each); fewer than 300 drafted does not open it either. The newest check on the model drafts use decides: a newer one with a wrong answer closes it again, and a change of the drafts' model closes it until a check on the new model passes (Auto stays as the admin set it). When fewer than 300 past conversations are left to check, it stays off whatever the last check found (a wrong answer, or none wrong but fewer than 300 drafted): the card and Would send by itself say how many more conversations must be resolved before you can check again; meanwhile fix the articles any wrong answers cited. With more than a fifth of the questions needing a lookup or an action, the card says so: AI cannot answer those yet (#104).
Cost
A backtest makes two calls per conversation it replays (per model, when it compares models), a draft and a score, and one per conversation it sorts, each metered like any AI call (see AI usage). On the built-in AI it counts against this month's included AI: what is left pays first for the 20 replays a score needs (or all of a smaller sample), the sorting cut to leave room for them; then more replays; then the rest of the sorting. With fewer than 20 replies to replay, it pays for the sorting alone. When it cannot pay for those 20 (or, with no reply to replay, for one sort), nothing runs: the page, Results and Settings → Backtest say how much is left and what it needs, with Add your own provider. A run stops when it would spend more than 1.2 times its estimate. On your own provider's key, your provider bills you.
Keeping and deleting
The drafts' text and the reasons (of scores and of sorts) are deleted 90 days after a run ended; its scores and numbers
stay, including whether each draft asked for missing information and how many warnings it had.
Delete removes a run for good with its drafts and scores; your conversations and articles stay as
they are, and its calls stay in the AI usage. Every run, with its rows, is part of the
export (ai-backtests.ndjson).
For developers and AI agents
colliedesk_ai_backtest_start (first with confirm false for the estimate, then with confirm true
once the person agreed; purpose auto_answer_gate starts a check for auto-answer; drafts compares models, sample_of runs again on an earlier run's
conversations), colliedesk_ai_backtest_get (without an id: the newest report, the runs, and
first_run, why none started by itself; its sorting is what came in), colliedesk_ai_backtest_rows_list
(part sorted for the sorted conversations), colliedesk_ai_backtest_cancel
and colliedesk_ai_backtest_delete; see MCP. The API is /api/v1/ai/backtests in the
contract.
Was this page helpful?
Updated
This page is rendered from the repository. Spot a mistake? Open an issue or a pull request.