> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-content-gov.mintlify.site/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-content-gov/WK9JebZP5jfGVofV/ai-for-service/flows/node-types/images/error-handling-set-queue.png?fit=max&auto=format&n=WK9JebZP5jfGVofV&q=85&s=32355d692b25b70d4577edfac2ba9c47" 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-content-gov/rPVpSXqZ14-YKQ__/ai-for-service/flows/node-types/images/script-set-queue.png?fit=max&auto=format&n=rPVpSXqZ14-YKQ__&q=85&s=54a29e9c9abc881f77d7ec58bab4fbfc" 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-content-gov/WK9JebZP5jfGVofV/ai-for-service/flows/node-types/images/error-handling-set-queue.png?fit=max&auto=format&n=WK9JebZP5jfGVofV&q=85&s=32355d692b25b70d4577edfac2ba9c47" 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-content-gov/rPVpSXqZ14-YKQ__/ai-for-service/flows/node-types/images/text-to-speech-set-queue.png?fit=max&auto=format&n=rPVpSXqZ14-YKQ__&q=85&s=6d6e19b5faf80450017f4b193581549a" 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-content-gov/WK9JebZP5jfGVofV/ai-for-service/flows/node-types/images/audio-file-set-queue.png?fit=max&auto=format&n=WK9JebZP5jfGVofV&q=85&s=ccb2a516912ff11409edd8635297540a" 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-content-gov/rPVpSXqZ14-YKQ__/ai-for-service/flows/node-types/images/link-set-queue.png?fit=max&auto=format&n=rPVpSXqZ14-YKQ__&q=85&s=4674824fd68765062f5b6fded68af4d5" 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.
