create_ab_test
Create A/B tests for campaigns by defining variants for subject, content, send time, or from name. Send a sample percentage first, then automatically send the winning variant to the rest.
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) |