> For the full index of Sherpa pages for agents, see https://www.withsherpa.ai/llms.txt

URL: https://www.withsherpa.ai/docs/ab-test
Title: Run an A/B test from a prompt | Sherpa Docs
Description: Test two or more versions of a page against each other and see which one wins.

[Docs](https://www.withsherpa.ai/docs) Experiments

# Run an A/B test from a prompt

Test two or more versions of a page against each other and see which one wins.

A/B testing is part of Growth and Scale. Admins start, pause and end experiments.

Most teams do not test because testing is slow. Someone has to build the variant, wire up a tool, fight the flicker and wait for a developer. On Sherpa a test is one request. Your agent builds the versions, sets the goal and shows you all of them on a preview.

Versions are built ahead of time and served from the edge, so visitors never see a page jump, and a version can change anything on the page, not only a line of text.

## See it in action

Ask your agent this.

> Test a shorter headline on my pricing page against the current one. Write two options in our voice, use the Demo requests funnel as the goal and show me every version on one preview.

It answers with something like this.

The test is set up with three versions and Demo requests as the goal.

- **Control.** Simple pricing for teams of every size

- **Version B.** One price. Every feature

- **Version C.** Start free. Pay when it works

When you publish, you choose how to split traffic and whether to launch right away.

## What happens

1. Your agent builds the new versions next to the current one and checks the experiment is set up correctly.

2. It builds a preview where you can look at each version.

3. You ask it to publish. The review shows the experiment and lets you choose the traffic split, and whether to launch on publish or later.

4. You press Publish. Visitors start seeing the versions once the experiment is launched.

5. You watch results on the **Experiments** page or ask your agent.

## What to check

- Each version looks right on desktop and on a phone.

- The goal is the conversion you care about.

- The experiment shows as Running on the Experiments page.

## What you can test

- A headline, a subheading or a button label

- A whole section, such as the hero or the pricing table

- The order of sections on a page

- A long page against a short one

- A completely different design for the same page

Because the website is code, a version can change anything on the page, not only text.

## Good to know

### No flicker

Every version is built ahead of time and served from the edge. Visitors never see the page change after it loads.

### More than two versions

An experiment can have up to fifteen versions besides the current page. The current page is always Control.

### Pick the goal first

A test needs one clear goal. Use a saved [funnel](https://www.withsherpa.ai/docs/funnels) so results are measured the same way every time.

### Visitors keep their version

A returning visitor sees the version they saw before, so the experience is consistent and the results are clean.

### After you launch

See [Read experiment results](https://www.withsherpa.ai/docs/experiment-results) and [Start, pause and end an experiment](https://www.withsherpa.ai/docs/manage-experiments).

**Pro tip**

Do not start with an idea. Ask your agent to read the click, scroll and drop-off patterns on the page and propose three tests from what visitors already do. The best experiment ideas are sitting in your analytics.

## Common questions

### Will an A/B test make my page flicker?

No. Every version is built ahead of time and served from the edge, so visitors never see the page jump.

### Does a person have to approve a test before it goes live?

Yes. Your agent builds the versions and a preview, and nothing reaches visitors until a person presses Publish on the review. You choose the traffic split there.

### Who can start an A/B test?

Anyone on the team can ask their agent to build one. An admin starts, pauses and ends it. A/B testing is part of Growth and Scale.

## Example prompts

Each one works as written in Claude or ChatGPT once Sherpa is connected. Swap in your own pages and dates.

### The request from the example

> Test a shorter headline on my pricing page against the current one. Write two options in our voice, use the Demo requests funnel as the goal and show me every version on one preview.

It names the page, the one thing being tested and the goal. A test with one change and one goal gives an answer you can trust.

### The data-led test

> Look at my analytics, find the page where the most visitors leave without clicking anything and propose one test for it.

Starting from the data means you test where it matters, not where it is easy.

### The short form bet

> Test our demo form with three fields against the current six. Use completed bookings as the goal.

Shorter forms usually convert better and qualify worse. Naming the goal decides which one you are measuring.

### The headline tournament

> Write five pricing page headlines in our voice and test them all against the current one.

More versions find a winner faster on a busy page. On a quiet page, test fewer.

### The hero duel

> Test the new homepage hero against the old one. Keep everything below it identical.

Changing one thing is what lets you say why the winner won.

## For agents

Sherpa MCP tools for this job, in the order they are usually called. `edit_files`, `validate_experiments`, `preview_change`, `submit_change`, `list_experiments`. Work inside a change, and only call submit_change when the person asks to publish. A person presses Publish. Every tool is described in the [MCP reference](https://www.withsherpa.ai/docs/mcp-reference).

## Next

[**Read experiment results** Find out which version is ahead and whether it is safe to call a winner.](https://www.withsherpa.ai/docs/experiment-results) [**Start, pause and end an experiment** Control a running experiment and change how traffic is split between versions.](https://www.withsherpa.ai/docs/manage-experiments)
