create_ab_test
Set up an A/B test on a campaign to compare 2–5 variants (subject, content, send time, or sender name). Send a sample percentage first, then automatically send the winning variant to the remaining audience based on the chosen metric.
Instructions
Create an A/B test on a campaign with two or more variants. A sample percentage is sent first; the winner goes to the remainder once selected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | What to test | |
| variants | Yes | Test variants (2–5) | |
| campaign_id | Yes | Campaign to test | |
| winner_metric | No | Metric used to pick the winner (default open_rate) | |
| sample_percentage | No | Percent of the audience used for the test (default 20) |