# Random Split Action

This action will be randomly triggered by a specific threshold. Use this action to create split tests or random chat flow splits in the conversation.

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lfv1gEllZWb23An7RcT%2F-Lfv24KanMaoyA5hQvBf%2Fimage.png?alt=media\&token=7563dad7-174a-4af6-9691-2dad1b794445)

### Settings

The action uses the following settings:

| Setting         | Description                                                     | [Parsed](https://docs.xenioo.com/actions-and-operations/dynamic-parsing) |
| --------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------ |
| Split Threshold | The chance of execution, expressed in a percentage from 1 to 99 | :no\_entry:                                                              |

### Remarks

Each Random Split action will run on a single chance roll for every interaction executed. This means that you're not limited to a simple A/B split but you can mix and match multiple Random Split action to do A-to-N splits or even weighted splits.

This is a simple A/B split setup:

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lfv1gEllZWb23An7RcT%2F-Lfv3LPiD32qPp63McnA%2Fimage.png?alt=media\&token=f4e25902-724f-4f6a-95e7-2dd8bbb1f293)

Moving the splits percentages, you can obtain a weighted split:

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lfv1gEllZWb23An7RcT%2F-Lfv3e0OJMyql9BrEDb0%2Fimage.png?alt=media\&token=d7470a62-b1f8-4cb2-84e9-cdde8b3a0200)

Adding multiple splits you can achieve multiple path splits, even with weighted routes:

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lfv1gEllZWb23An7RcT%2F-Lfv41d24Fcewh-5iLpW%2Fimage.png?alt=media\&token=41123445-927e-4a53-9868-74dab123b9ff)

Xenioo will not enforce a 100% total on all splits. You can still have a given, single percent split and let the flow continue:

![](https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdPD9c4fJbXSAZcPHt9%2F-Lfv1gEllZWb23An7RcT%2F-Lfv4baxpHy4eg-u4lE9%2Fimage.png?alt=media\&token=6795c731-f009-4aa2-baa4-145a99daed33)

If the total of all the splits on an interaction amount to more than 100%, the splits that surpass it won't be executed.

### Trigger

Threshold Met. This action will trigger any child operation as the selected threshold value is met during the random roll.

### Variables

This action does not produce any variable.

### Availability

Channel specific availability follows the table below:

| Channel          | Availability     |
| ---------------- | ---------------- |
| Facebook         | Fully Available. |
| WhatsApp         | Fully Available. |
| Telegram         | Fully Available. |
| Web              | Fully Available. |
| Alexa            | Fully Available. |
| Google Assistant | Fully Available. |
| Slack            | Fully Available. |
| API              | Fully Available. |

This action can be used only inside interactions and not as child of other actions.&#x20;

### Further Reading

{% embed url="<https://www.xenioo.com/en/creating-split-test-driven-conversation/>" %}
