# How to use the Yes/No Split feature?

Set up complex flows in your **Automations** and split users based on a new targeting rule throughout the journey! Let's go through the steps together :sparkles:

{% stepper %}
{% step %}

## Add a trigger event and a Yes/No Split  <a href="#h_7834f5c620" id="h_7834f5c620"></a>

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

To do so, simply click on the **+** button and select **Yes/No Split:**

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FW3eNMBqXvgHa0vFuRjBk%2FEnregistrement%20de%20l%E2%80%99e%CC%81cran%202025-09-08%20a%CC%80%2017.19.11.gif?alt=media&#x26;token=bee99aac-6467-4dda-b727-8cb870250291" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## Select targeting rules

Click on the split you created, give it a title, and select the targeting rules of your choice.&#x20;

The Yes/No Split will leverage all Profiles data to split the workflow into 2 branches:

* Yes, people match the rules;
* No, they don’t.

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FT6ZxdxZZXXRApieS6jvF%2FEnregistrement%20de%20l%E2%80%99e%CC%81cran%202025-09-08%20a%CC%80%2017.23.17.gif?alt=media&#x26;token=3cc6524d-f5cb-4219-aaed-4aee4ead0155" alt=""><figcaption></figcaption></figure>

In your targeting rules, you can also use [Segments](https://doc.batch.com/guides-and-best-practices/profiles/how-to-create-and-use-a-segment), or [Audiences](https://doc.batch.com/getting-started/features/customer-engagement-platform/profiles/audiences).

{% hint style="success" %}
💡 Be aware that entry event information cannot be used as split targeting rules.
{% endhint %}
{% endstep %}

{% step %}

## Filter on trigger events attributes

In addition to the profile targeting block, you can filter on trigger event attributes directly within the Yes/No split.&#x20;

It allows you to specify conditions on the attributes of the exact event occurrence that initiated the user's journey in the Trigger Automation:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FKOe2Ab52LsGPavQShexE%2FEnregistrement%20de%20l%E2%80%99e%CC%81cran%202025-09-08%20a%CC%80%2017.27.47.gif?alt=media&#x26;token=b290aa21-97eb-4cb1-b5d5-faa7dcb87327" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
Currently, complex attributes like **arrays and objects are not supported** for filtering in the trigger event query block.
{% endhint %}

{% hint style="info" %}
The operator between the two query blocks (”Segmentation” ie profile targeting and trigger event filtering) is always `AND`. This means a user must match both the profile query and the trigger event query to follow the "Yes" branch.\
\
In addition to this, the operator between the different filtering conditions for the trigger event is always the same, either `AND` or `OR`.
{% endhint %}
{% endstep %}

{% step %}

## Add messages and/or more splits

By clicking on the **+** button again, you can add a message or another split:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FMyQYolIDK0bpxDmTNgAd%2FCleanShot%202024-05-21%20at%2017.01.58%402x.png?alt=media&#x26;token=779c1086-596d-44a2-9a20-be46db927796" alt=""><figcaption></figcaption></figure>

🔍  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%2FFUFQVcKp20SMjLzcq552%2FCleanShot%202024-10-10%20at%2016.05.12%402x.png?alt=media&#x26;token=dfc790b5-42df-4c55-89b0-533fe300877f" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

You are now ready to create your own journey using the Yes/No Split feature :rocket:
