---
updatedAt: 2026-10-20T15:47:57.000Z
agentTools:
  projectIndex: https://docs.esputnik.com/llms.txt
---

# Using A/B Tests In Workflows

<HTMLBlock>{`
<p align="right" style="color: gray;">
  <a href="https://docs-ua.esputnik.com/docs/ab-testuvannia-v-stsenariiah" style="color: gray; text-decoration: none;"><em>
    Read this article in Ukrainian ⮕
  </em></a>
</p>
`}</HTMLBlock>

A/B testing helps validate hypotheses and understand the preferences and behavior of the target audience

Built-in functionality allows testing:

* [email subject lines](https://docs.esputnik.com/docs/how-test-email-subject-lines);
* [widget displays](https://docs.esputnik.com/docs/using-ab-tests-for-widgets);
* [product recommendations](https://docs.esputnik.com/docs/setting-up-product-recommendations).

Using workflows, you can test the effectiveness of various elements of triggered messages, such as text, calls to action, images, or sending via different channels.

Use the **Split** block from the **Conditions** blocks for split testing.

<Image src="https://files.readme.io/409c24332c3aea035bdb34ca0deb9e8d49e94fb3fb3f6df881650e3fdfa467d3-image.png" align="center" width="80% "  alt="Workflow builder with a Split block panel showing two parts each set to 50%" />

Let's consider an experiment using the example of an abandoned cart:

* The first message contains a discount on items abandoned in the cart:

<Image src="https://files.readme.io/e4bee2b-using-ab-tests-in-workflows-02.webp" align="center" width="80%" alt="Abandoned cart email with a 10% discount message and the crossed-out original price next to the discounted price for a Samsung Galaxy S21 smartphone" />

* The second message contains a timer with a countdown until the end of the discount.

<Image src="https://files.readme.io/24327cf-using-ab-tests-in-workflows-03.webp" align="center" width="80% " alt="Abandoned cart email with a 10% discount message, a countdown timer showing the discount's remaining time, and the abandoned Samsung Galaxy S21 product" />

The goal of this test is to check whether a timer counting down the time until the end of the promotion influences the purchase decision.

## Creating a Workflow for Testing

1. Go to **Triggers → Workflows**, and click the **New workflow** button.

<Image src="https://files.readme.io/0b86604e30633296eadf4a145d249ec34dfab9b36427e199fdf43163059408d0-image.png" align="center" width="80% "  alt="Automation menu with the Workflows tab and New workflow button highlighted" />

2. Enter its name and [tags](https://docs.esputnik.com/docs/adding-tags#addingremoving-tags) (optionally).

<Image src="https://files.readme.io/0a7a32895999d5b3ab3f9bbd312fb2386929d90e424b8d91a26d8300eb70c11f-image.png" align="center" width="80% "  alt="Workflow builder named Abandoned Cart tagged A/B test with the Start block configuration panel open" />

3. By default, the **Start** block already starts the workflow. Then add blocks:

* [Split](https://docs.esputnik.com/docs/conditions-blocks#split), where contacts are automatically distributed between workflow branches 50/50. To change the ratio, drag the slider in the block settings to the left or right.

<Image src="https://files.readme.io/ebf813a5dc5e357ae44a7eb4e326d3c03abdbde867f1a3fb4a429c50c246a0d6-image.png" align="center" width="80% "  alt="Workflow builder with a Split block panel showing 1 part and 2 part fields both set to 50%" />

* Email for A and B branches; select the message in the block parameters.

<Image src="https://files.readme.io/ccb077ca4a6ea46b1d540889226a53274f689a0877ddc729630df700b6ec576d-image.png" alt="Workflow builder with a Split block branching 50/50 into an Abandoned cart discounts email and an Abandoned cart discounts + Timer email" align="center" width="80%" />

* End.

The workflow will look like this:

<Image src="https://files.readme.io/1f56cce8824a1abc581e02965e4a9f3b7a1405c4b7b0990db1649e4bf4da0f3c-image.png" align="center" width="80% "  alt="Workflow diagram with a Split block branching into A and B email variants at 50% each, both leading to End" />

4. Click **Save and exit**. 

After launching the workflow, the system will randomly distribute contacts between two branches in a 50-50 ratio. Each contact will receive only one message, according to the branch they fall into.

## Setting Up Workflow Launch and Checking Results

1. Go to **Triggers → Workflows** and click **Start/Stop configuration** in the field of the created workflow.

<Image src="https://files.readme.io/d23ad1624aa78cc090c703afaeee01f2841a93ec994c1d84b3c2077b4f90bf49-image.png" align="center" width="80% "  alt="Workflows list with the Start/Stop configuration link highlighted for the Abandoned Cart workflow" />

2. Enable the **Start Configuration** slide button, select **Regular**, and a dynamic segment for the campaign.

<Image src="https://files.readme.io/a81aaccf9722f7ab61f91ef829c63bb63dc2c6c01080a8c712e801b071da8869-image.png" align="center" width="80% "  alt="Start/Stop configuration dialog with Regular option, the Abandoned Cart segment, and Once a day start schedule selected" />

3. Configure launch conditions and click **Apply**.
4. Activate the workflow.

<Image src="https://files.readme.io/ad07e8c3196400fa9e53e20f9d61ff094d2ce343d56659ad58a0a4c1b8af77c9-image.png" align="center" width="80% "  alt="Workflows list with the Activate icon highlighted for the Abandoned Cart workflow" />

Later, you will be able to check and compare the test results.

To do this:

1. Click three dots in the field of the created workflow and select **View campaign report**.

<Image src="https://files.readme.io/c1b800b32fa752e34dd79e8da88669f23323ab9a6c9b836f4b0c667486437e88-image.png" align="center" width="80% "  alt="Workflows list dropdown menu with View campaign report highlighted for the Abandoned Cart workflow" />

2. Choose a period and compare the indicators for each message.

<Image src="https://files.readme.io/a376f49c7d9017454b2ec839affbe92a8dfb6e16ba2081648fbfe64b5b260fcc-image.png" align="center" width="80% "  alt="Campaign report comparing Opened, Clicked, and Click-to-open rate for the Abandoned cart discounts and Abandoned cart discounts + Timer email variants" />