A/B tests compare any two versions, A and B
ChangedA test no longer has a champion and a candidate. It has version A and version B, and you choose both.
Widgets. New test on the Widget tab of Experiments lets you pick any two saved versions of one widget, or a version of each of two widgets on the site. A version that was tested before can be tested again. The split is 50/50.
- Both versions must show on at least one page and target the same pages.
- A widget sits in one running test at a time. Tests on different pages can run at the same time, but two tests cannot share a page.
- A start can take other live widgets offline, or replace a live version for the shoppers in the test. The dialog lists both and asks you to confirm first. Stopping the test brings the offline widgets back.
- A winner can be made live whichever side it is. When the test compared two widgets, the other widget goes offline.
The number of sessions each version needs is no longer a fixed 5,000. It is read from a table by the start rate of version A over the last 28 days: from 6,500 sessions per version at a 10% rate to 22,300 at 3%. The New test dialog shows it, with the estimated duration and a warning when the test would take more than 56 days. When version A has too little traffic to know its rate, the number is set after the start, and tests already running keep 5,000.
Widget tests can now also be started, stopped and promoted over the REST API and the MCP server.
The Experiment tab in a widget's editor still tests the version on screen against the live one, now called version A and version B.
Agents. The two versions can be any two saved versions, the live one included or not, of one agent or of two agents of the site. The start dialog picks the agent, then the version, for each arm. The number of conversations needed is sized on version A. The winner can be made live when it is not already, and Keep leaves the live version in place.
- Both agents must be on the same site and of the same type, and at least one of them must be the agent that answers on the site. An agent is in one running test at a time.
- A running test holds the site's agents. Putting an agent live or taking it offline is refused until you stop the test or promote a version. Before, another agent going live, or the agent going offline, ended the test on its own. It no longer does.
- Making a version live from a test between two agents ends the test, and the other agent goes offline: it no longer answers on the site, as with a widget test between two widgets. Stopping a test changes nothing.
Breaking change for the agent API and MCP tools. Anything that calls them with the old fields needs an update.
POST /api/v1/sites/{siteId}/agents/{id}/experimentstakesversionIds, two version ids[A, B], instead ofcandidateVersionId, and an optionalagentBIdwhen version B belongs to another agent of the site.POST …/experiments/{experimentId}/promotetakes a body,{ "arm": "a" }or{ "arm": "b" }. Before, it promoted the candidate with no body.- An experiment answers
arms, an array of the two arms with theirarm,agentIdandversionId, instead ofchampionVersionId,candidateVersionId,championandcandidate.winnerisaorb, and the gap is B minus A. - Going live or taking an agent offline while a test runs on the site answers
agent_held_by_experiment. - The refusal reasons
no_champion,invalid_candidateandcandidate_not_readyare nowsame_version,invalid_versionandversion_not_ready. An agent with no live version can be tested. - The MCP tools follow:
start_agent_experimenttakesversionIds, andpromote_agent_experimenttakesarm.
Resources
- A/B testing a widget
- A/B test two versions of an agent
- Agent experiment errors
- Widget experiments over MCP
- Agent experiments over MCP
