> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.app/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](/ai-for-service/automation/agent-flows#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 is not 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](/ai-for-service/automation/dialogs/node-types/node-connections).

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

<img src="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" alt="Delete Branch" width="350" height="392" data-path="ai-for-service/flows/node-types/images/delete-branch.png" />

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

    <img src="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" alt="Text to Speech" width="408" height="558" data-path="ai-for-service/flows/node-types/images/error-handling-spilt.png" />

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

    <img src="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" alt="Audio File" width="352" height="306" data-path="ai-for-service/flows/node-types/images/audio-file-spilt.png" />

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

    <img src="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" alt="Link" width="347" height="351" data-path="ai-for-service/flows/node-types/images/link-spilt.png" />

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

<img src="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" alt="Go to Node" width="363" height="517" data-path="ai-for-service/flows/node-types/images/go-to-node-spilt.png" />
