> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/guides-and-best-practices/orchestration/how-to-use-the-random-split-feature.md).

# How to use the Random Split feature?

The Random Split feature allows for multi-branch automations.

With the Random Split feature, divide users into random groups to run tests, optimize your journey or set up a control group logic. Let's go through the steps together :sparkles:

{% stepper %}
{% step %}

## Add a trigger event and a Random Split

Select your trigger event, then add a Random Split at any step of the omnichannel trigger automation.

To do so, simply click on the **+** button and select **Random Split:**

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2Fxvc9UX36GnrukIleNWGY%2FEnregistrement%20de%20l%E2%80%99e%CC%81cran%202025-09-08%20a%CC%80%2017.36.30.gif?alt=media&amp;token=68fbdbeb-ca96-4058-af61-d1ede5ba2c1c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## Customize the branches

Customize the branches as you wish!&#x20;

Click on the **+** button again to add messages, delays, exit events or another split:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FiZMheqFgddqQ2hkTFBHL%2FCleanShot%202025-09-08%20at%2017.42.16%402x.png?alt=media&amp;token=0d3a85f4-7ade-4263-b7a2-982d1159050a" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## Adjust the percentages

Create from 2 to 4 branches and adjust the percentage of users for each of them. Just keep in mind that the sum of branches must always be 100%.

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2Fxgu78kemsIKWiVKWQMfp%2FEnregistrement%20de%20l%E2%80%99e%CC%81cran%202025-09-08%20a%CC%80%2017.45.06.gif?alt=media&amp;token=7c350cb8-8e72-470e-a20b-6af4204922cb" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The algorithm for randomization is **efficient for high volumes** but less so for very low volumes. If 30 people receive the automation and the automation has 3 branches (33%, 33%, 34%), you might not have exactly 10 people by branch.
{% endhint %}

🔍  With this feature, automations can get a lot bigger: to get a better overview, use the **mini-map** at the bottom-left corner of your screen to navigate and zoom in and out in the automation:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FJawrCYMbiZN6gxno4Ziw%2FCleanShot%202025-09-08%20at%2017.47.15%402x.png?alt=media&amp;token=f78340ca-d4fc-4968-be52-4bab735ff984" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

You are now ready to create your own journey using the Random Split feature :rocket:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.batch.com/guides-and-best-practices/orchestration/how-to-use-the-random-split-feature.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
