> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Split Node

Use this node to route inbound queries to different flow branches based on defined conditions. Conditions use context variables that define scope within a dialog task.

The syntax for a context variable is:

```
context.contextvariable.<< context variable name >>
```

For example, the `intent` context variable is:

```
context.intent.<< intent name >>
```

Context variables are managed by AI for Service. [Learn more](https://koreai.mintlify.site/ai-for-service/automation/agent-flows.md#context-object).

!!! Note

The Split node supports a maximum of 10 branches.

## Configure the Node

### General Settings

In **General Settings**, configure the following:

1. **Custom Name**: Enter a name to identify the node.

2. Under **Execute branches where condition matches**, define conditions using IF / ELSE-IF / ELSE logic with context variables and AND / OR operators:

   * **IF**: Routes the flow when the specified condition is met.
   * **ELSE-IF**: Defines an additional condition when the IF condition isn't met.
   * **ELSE**: Routes the flow when none of the preceding conditions are met.

3. Under the first **Action** dropdown, select the branch name to route to when the IF condition is met.

4. Click **Add ELSE-IF** to add more conditions.

5. Under the second **Action** dropdown, select the branch name for the ELSE condition.

   !!! Note

   Condition setup follows the same process as Automation AI. [Learn more](https://koreai.mintlify.site/ai-for-service/automation/dialogs/node-types/node-connections.md).

To delete a condition, click the **Delete** icon next to it.

![Delete Branch](https://mintcdn.com/koreai/WQeI2XsPNoZFdu0g/ai-for-service/flows/node-types/images/delete-branch.png?fit=max\&auto=format\&n=WQeI2XsPNoZFdu0g\&q=85\&s=0c728cc8473b45df73c21fcab2547ead)

### Error Handling

Use this section to handle system errors during customer interactions.

* **Your Message to User**: Select a message type under **Choose your message type**:

  * **Text to Speech**: Type or select a message to convert to speech. Click **+ Create New** to add a new prompt, or **+ Add Another** to define multiple messages (one is randomly selected at runtime).

    ![Text to Speech](https://mintcdn.com/koreai/obfXwZeC6EncVIoC/ai-for-service/flows/node-types/images/error-handling-spilt.png?fit=max\&auto=format\&n=obfXwZeC6EncVIoC\&q=85\&s=d9fe86876a907d2189185011078679e8)

  * **Audio File**: Type a message or click **+ Upload New** to upload an .mp3 or .wav file.

    ![Audio File](https://mintcdn.com/koreai/WQeI2XsPNoZFdu0g/ai-for-service/flows/node-types/images/audio-file-spilt.png?fit=max\&auto=format\&n=WQeI2XsPNoZFdu0g\&q=85\&s=590fcb5e0543ae0c6bd2fc6f2bb513d1)

  * **Link**: Click **+ Create New** to add message text and an audio file URL (.mp3 or .wav). Click **+ Add Another** for additional URLs.

    ![Link](https://mintcdn.com/koreai/obfXwZeC6EncVIoC/ai-for-service/flows/node-types/images/link-spilt.png?fit=max\&auto=format\&n=obfXwZeC6EncVIoC\&q=85\&s=a4ed13dbd436181f66358cc9219357b9)

* **Go to node**: Select the node to direct the error handling flow. You can create a new node or select an existing one.

![Go to Node](https://mintcdn.com/koreai/obfXwZeC6EncVIoC/ai-for-service/flows/node-types/images/go-to-node-spilt.png?fit=max\&auto=format\&n=obfXwZeC6EncVIoC\&q=85\&s=fa7bb61be4194c4a9bfc78a2669723ca)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.