Skip to content

A/B Test Planner

The A/B Test Planner helps set up experiments correctly: from hypothesis and sample size to metrics and proper analysis. It prevents common mistakes like stopping tests too early or testing multiple variables at once.

---
name: ab-test-setup
description: Plans, designs, and documents A/B tests and experiments for marketing pages and campaigns — with a solid statistical foundation.
---
# A/B Test Planner
## When to use
- User wants to plan an A/B test or experiment
- User asks what to test on a page
- User wants to analyze test results
## Core Principles
1. **Hypothesis first** — What exactly are we testing and why?
2. **Test one thing** — Never test multiple variables simultaneously
3. **Statistical rigor** — Calculate sample size before starting
4. **Right metrics** — Primary, secondary, and guardrail metrics
## Hypothesis Framework
**Structure**: "Because [observation/data], we believe that [change] will lead to [outcome], measured by [metric]."
❌ Weak: "New design will convert better"
✅ Strong: "Because the current headline is too abstract, we believe a benefit-focused headline will increase conversion by ≥10%, measured by sign-up rate."
## Test Types
| Type | When to use |
|------|------------|
| A/B test | Compare two variants |
| A/B/n test | Multiple variants simultaneously |
| Split URL test | Completely different pages |
| Multivariate | Multiple elements at once (needs lots of traffic) |
## Metric Selection
- **Primary**: Direct measure (conversion rate, sign-ups)
- **Secondary**: Indicators (click rate, scroll depth)
- **Guardrail**: What must NOT get worse? (Bounce rate, churn)
## During the Test
- Do not stop early (peeking problem!)
- Document significant events (launches, holidays)
- Minimum runtime: 1–2 complete business weeks
## Analysis
- Aim for statistical significance ≥95%
- Document losers too (why didn't it work?)
- Record learnings for future tests
## Output Format
1. **Hypothesis** written using the framework
2. **Test setup** (Variant A vs. B, element to change)
3. **Sample size** and recommended runtime
4. **Metrics** with target values

The agent can be created under Agents. Provide the page, goal, and current conversion rate — the agent creates a clean test hypothesis and the complete test setup.