campaign_ab_report
Compare A/B email and SMS campaign variation performance with per-variation metrics. Get split results by arm to identify the winning version.
Instructions
Get per-variation (A/B arm) email/SMS campaign metrics for a Klaviyo account. Splits results by variation so you can compare arms. Rate limited: 2/min.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"conversion_metric_id": "<conversion_metric_id>"
},
"name": "campaign_ab_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Custom range end, YYYY-MM-DD. Defaults to today. | |
| year | No | Year for quarter, e.g. 2024. | |
| start | No | Custom range start, YYYY-MM-DD. Overrides timeframe. Data floor: 2023-06-01 (earlier is clamped). | |
| account | Yes | Account name | |
| quarter | No | Quarter 1-4 (with year) - convenience for a full quarter. | |
| timeframe | No | ||
| campaign_id | No | Filter to a single campaign ID. | |
| conversion_metric_id | Yes | Placed Order metric ID. Get from list_metrics. |