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

# Set Queue Node

Queues hold digital and voice interactions waiting to be assigned to agents. Use this node to define or modify queue settings and default messages within a flow.

## Configure the Node

### General Settings

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

<img src="https://mintcdn.com/koreai/obfXwZeC6EncVIoC/ai-for-service/flows/node-types/images/error-handling-set-queue.png?fit=max&auto=format&n=obfXwZeC6EncVIoC&q=85&s=bccf0ad5571773bd34271c7abe456668" alt="Set Queue" width="411" height="440" data-path="ai-for-service/flows/node-types/images/error-handling-set-queue.png" />

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

2. **Integration Type**: Select **Static List** or **Script**:

   * **Static List**:
     * **Queue**: Select the queue to apply to this node.
     * **Priority**: Set the conversation priority (1-10, where 1 is highest and 10 is lowest). Default is **5 - Standard**.

       !!! Note

       When priority is set, conversations shift position in the queue dynamically. This affects queue position and wait time estimates shown to customers. Consider this when configuring waiting experience messages.

   * **Script**: Define the queue or priority programmatically.

     <img src="https://mintcdn.com/koreai/obfXwZeC6EncVIoC/ai-for-service/flows/node-types/images/script-set-queue.png?fit=max&auto=format&n=obfXwZeC6EncVIoC&q=85&s=d4cdc49ca563a1d178e468cb5441705c" alt="Script" width="360" height="775" data-path="ai-for-service/flows/node-types/images/script-set-queue.png" />

     Set the queue:

     ```
     agentUtils.setQueue("queueID")
     ```

     Set the conversation priority (valid values: 0-10, inclusive):

     ```
     agentUtils.setPriority(priority<Number>)
     ```

     **Examples**:

     ```
     agentUtils.setPriority(0);   // Highest priority
     agentUtils.setPriority(10);  // Lowest priority
     agentUtils.setPriority(7);   // Priority 7
     ```

     If an invalid priority is provided, it's ignored and the default priority (5) is applied.

3. **Inside working hours**: Select the **Go to node** to trigger after the queue is set during working hours. For example, route to **Check Agent Availability** to check for available agents.

4. **Outside working hours**: Select the **Go to node** to trigger after the queue is set outside working hours. For example, route to **Check Business Hours** to notify customers they called outside business hours. [Learn more](/ai-for-service/contact-center/configurations/configurations#hours-of-operation).

### Error Handling

Use this section to handle system errors during customer interactions.

<img src="https://mintcdn.com/koreai/obfXwZeC6EncVIoC/ai-for-service/flows/node-types/images/error-handling-set-queue.png?fit=max&auto=format&n=obfXwZeC6EncVIoC&q=85&s=bccf0ad5571773bd34271c7abe456668" alt="Error Handling" width="411" height="440" data-path="ai-for-service/flows/node-types/images/error-handling-set-queue.png" />

* **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/Ns2xqLlABkt12FiY/ai-for-service/flows/node-types/images/text-to-speech-set-queue.png?fit=max&auto=format&n=Ns2xqLlABkt12FiY&q=85&s=7c587f6c441cce951009bfe9be4144e3" alt="Text to Speech" width="345" height="307" data-path="ai-for-service/flows/node-types/images/text-to-speech-set-queue.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-set-queue.png?fit=max&auto=format&n=WQeI2XsPNoZFdu0g&q=85&s=4e3c4b4a88b509cf2bafcb8df9ba2a4f" alt="Audio File" width="346" height="306" data-path="ai-for-service/flows/node-types/images/audio-file-set-queue.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-set-queue.png?fit=max&auto=format&n=obfXwZeC6EncVIoC&q=85&s=2425668e153a3a50a29d562cbc4074b5" alt="Link" width="347" height="350" data-path="ai-for-service/flows/node-types/images/link-set-queue.png" />

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