Create A/B test
create_ab_testMakes a draft A/B test on a bundle or a cart. Version A is the bundle or cart as it is; version B starts as a copy of A. Pass changes to make B differ in the same call, named as update_bundle or update_cart take them. Returns a picture of A and B. A draft shows shoppers nothing. Change B later with update_bundle or update_cart and version B, add versions or set traffic with update_ab_test, and start it with start_ab_test. A bundle or cart has one open test at a time. Custom CSS and a bundle's products belong to every version, so they change on A.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_ab_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The test's name. Default: the item's name and a number. | |
| cart_id | No | Test this cart, from list_carts. | |
| changes | No | Changes for version B, as update_bundle or update_cart take them. | |
| bundle_id | No | Test this bundle, from list_bundles. Send bundle_id or cart_id. |