> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.encharge.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Action - A/B Test

The A/B Test action randomly splits people into two or more paths in a Flow.

This action is best used if you want to A/B test a multi-step flow – for instance, sequences of emails. If you'd wish to run a standard single email A/B test (e.g., to figure out which subject line has a higher open rate) it's best to use the A/B test feature in [Broadcasts](//help.encharge.io/category/98-broadcasts) *(coming soon)*.

![](https://storage.crisp.chat/users/helpdesk/website/b981dadf7f8e5000/497afe33-3f05-47d1-a250-65c709_dlootw.png)
---
# How to set up A/B Test action step?

Click on the step to configure it. By default, the A/B Test is split into two equal groups – Variant A and B. This means that 50% of the people (randomly chosen) will flow into Variant A and 50% will flow into Variant B. However, you can change this if you'd like a larger or a smaller portion to continue down a specific path.

![](https://storage.crisp.chat/users/helpdesk/website/e70fac98a538a800/83cc41ce-9f0c-4c25-846e-2ee392_m7ze75.png)

Finally, you need to connect both the A and B links to another step:

![](https://storage.crisp.chat/users/helpdesk/website/20dd640cf1957200/d676bb7e-7741-4f31-9ed8-3519c2_1araoo4.png)

Activate the Flow and let it run for a certain amount of time before you decide which path/sequence you'd like to keep.

To see the performance of the emails in the flow, click on a specific email step and select the Report tab on the right. Note that the Report tab currently shows metrics from the last 30 days only (we're working on implementing a date picker):

![](https://storage.crisp.chat/users/helpdesk/website/2c436370518d0c00/ac5b9d37-9167-401a-a59a-b02537_ckf29e.jpeg)

Once you choose the winner variant, simply delete the A/B Test step and the loser path/sequence:

![](https://storage.crisp.chat/users/helpdesk/website/907fad1fad59f800/a8299034-b0c7-4e57-9efa-a96b50_7ez99i.png)

### Creating an A/B Test with more than two variants

To add more variants to your A/B Test simply click on the "+ Add variant" button. Then, click on "Distribute % evenly" if you wish to create equal groups.

![](https://storage.crisp.chat/users/helpdesk/website/2022076b2e2f2000/ad96fce5-ac7a-45de-a7bd-b335e9_asmcw2.gif)

You can distribute the variants however you like. Note that the total sum of all of the variants must be 100%, otherwise, the A/B test will not work properly.

![](https://storage.crisp.chat/users/helpdesk/website/c907e727aa826800/5475cccf-8f5b-4eb1-905a-7061b2_wp6iwi.png)

If you wish to delete a variant click on the trash icon.

Finally, make sure to connect all of the variants to another step.
---
# Example use cases
### Randomly show different Intercom in-app messages

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/5ffc582d4d30cc3131ea5cc1/images/60225015ac2f834ec5386c3b/file-0GuKyvYogI.png)

### Randomly assign leads to two or more different salespeople

Use the Create HubSpot Deal action step and assign a different owner to each step:

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/5ffc582d4d30cc3131ea5cc1/images/60224f49fb34b55df443eae5/file-VgCMzjlTlJ.png)

![](//d33v4339jhl8k0.cloudfront.net/docs/assets/5ffc582d4d30cc3131ea5cc1/images/60224f526867724dfc6f10a2/file-fxcmYl0IPz.png)