# 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.

![](/files/-Lfv24KanMaoyA5hQvBf)

### Settings

The action uses the following settings:

| Setting         | Description                                                     | [Parsed](/actions-and-operations/dynamic-parsing.md) |
| --------------- | --------------------------------------------------------------- | ---------------------------------------------------- |
| 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:

![](/files/-Lfv3LPiD32qPp63McnA)

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

![](/files/-Lfv3e0OJMyql9BrEDb0)

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

![](/files/-Lfv41d24Fcewh-5iLpW)

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

![](/files/-Lfv4baxpHy4eg-u4lE9)

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/>" %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xenioo.com/actions-and-operations/flow/xenioo.bots.actions.base.randomsplitaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
