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

# Conditional Flows and Waiting Flows

Contact Center AI lets you customize what customers experience when they wait for an agent, contact you outside business hours, or cannot reach an available agent. Use Conditional Flows to control routing behavior for specific scenarios, Waiting Flows to shape the in-queue experience, and the Debug window to troubleshoot flow execution.

| Feature                                           | Description                                                                                           |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [Conditional Flows](#conditional-flows)           | Configure voice and chat behavior for out-of-hours, no-agents-available, and click-to-call scenarios. |
| [Waiting Flows](#waiting-flows)                   | Set up messages, hold audio, callbacks, and voicemail for customers waiting in queue.                 |
| [Debug and Troubleshoot](#debug-and-troubleshoot) | Review flow execution logs, NLP analysis, and session variables.                                      |

***

## Conditional Flows

Conditional Flows let you define what happens during three common routing scenarios:

| Scenario                | Trigger                                                          |
| ----------------------- | ---------------------------------------------------------------- |
| **Out of Hours**        | Customer contacts support outside configured Hours of Operation. |
| **No Agents Available** | No online agents have the skills required for the conversation.  |
| **In Queue Transfer**   | Conversation enters a queue before being assigned to an agent.   |

Contact Center AI provides default voice and chat flows for Out of Hours and No Agents Available. You can replace or customize these defaults.

To access Conditional Flows, go to **Contact Center AI** > **Flows & Routing** > **Conditional Flows**.

***

### Voice Flows

#### Out of Operational Hours

Plays a voice message to callers who contact support outside business hours.

* Select **Default Out of Operational Hours Voice Flow** to open the flow in the Flow Builder.
  <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/default-out-of-hours-voice-flow.gif?s=9f1a49feae56e7841590d9629e3c5808" alt="Default Out of Operational Hours Voice Flow" width="1908" height="648" data-path="ai-for-service/contact-center/flows-and-routing/images/default-out-of-hours-voice-flow.gif" />
* In the **End Flow** node's **General Settings**, edit the default message, change the language, or add messages using **+ Add Another**.
  <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/default-voice-message.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=c416a3c4d4c58716914215c72680059e" alt="Default Out of Operational Hours Message" width="1200" height="569" data-path="ai-for-service/contact-center/flows-and-routing/images/default-voice-message.png" />

**How the message is selected:**

* The system uses the message from the configured conditional flow.
* If no flow is configured, a non-editable backend default plays.
* Administrators can override the default by creating a conditional flow and attaching it to the experience flow.

***

#### No Agents Available

Plays a message when online agents lack the skills required for the conversation.

* Select **No Agents Available Voice Flow** to open the flow in the Flow Builder.
  <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/default-no-agents-available-voice-flow.gif?s=e232a9a11e0bacb0cdebd426ba5c0f17" alt="Default No Agents Available Voice Flow" width="1280" height="720" data-path="ai-for-service/contact-center/flows-and-routing/images/default-no-agents-available-voice-flow.gif" />
* In the **End Flow** node's **General Settings**, edit the message, change the language, or add messages using **+ Add Another**.
  <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/no-agents-available-voice-flow-message.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=2c8308e7183361042eb4739f1f4aa875" alt="No Agents Available Voice Flow Message" width="1200" height="345" data-path="ai-for-service/contact-center/flows-and-routing/images/no-agents-available-voice-flow-message.png" />

**To create a custom Out of Hours or No Agents Available message:**

1. Create a conditional flow.
2. Add an **End Flow** node.
3. Configure a custom message to play in that scenario.

***

#### Click-to-Call

Click-to-Call lets website visitors start a voice call directly from the chat widget, providing a seamless escalation path from bot to live agent.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/click-to-call-button.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=c2577df3e5031bd4c68f9dfcb499e387" alt="Click to Call" width="379" height="721" data-path="ai-for-service/contact-center/flows-and-routing/images/click-to-call-button.png" />

Customers can initiate a call:

* Before interacting with the bot.
* During an active bot conversation.
* During a live chat (the chat agent receives a closure notification and moves to After Call Work).

<Note>The Click-to-Call flow appears in Conditional Flows only after it is enabled in [Theme & Design](/ai-for-service/channels/add-web-mobile-client#ai-agent-theme-design).</Note>

**How flows work:**

* Click-to-Call launches a flow in the Flow Builder.
* A default flow is published automatically. It includes an Agent Transfer node and the message: *"Please wait while we connect you to an agent."*
* Removing the Agent Transfer node triggers a warning before publishing.

**What administrators can add to a Click-to-Call flow:**

* Script nodes
* Message prompts
* Business hours checks
* Queue assignments
* Agent availability checks
* Agent transfers
* End Flow node

**Multiple flows:**

* Administrators can create multiple Click-to-Call flows for different use cases.
* Each flow has a unique **Flow ID**.
* Developers pass the Flow ID in the Web SDK configuration or SDK headers to control which flow triggers.
* SDK headers can pass user metadata (such as page URL) to support conditional logic.

**Developer setup:**

1. Get the **Flow ID** from the Flow Builder.
2. Add the Flow ID and any required headers (user ID, session ID, page name, page URL) to the Web SDK configuration.
3. Deploy SDK updates.

**Web SDK deployment options:**

| Method      | How to Update                                          |
| ----------- | ------------------------------------------------------ |
| NPM Package | Run a standard npm update.                             |
| Script Tag  | Update the version number in the script tag reference. |
| Source Code | Manually apply changes to your modified version.       |

<Note>Modifications to SDK source code are made at your own risk. Custom modifications may not receive full support in future SDK updates.</Note>

**End-to-end flow:**

1. The customer clicks the **Call** button in the chat widget.
2. A confirmation pop-up appears. The customer selects **Confirm**.
   * If the customer switches to Click-to-Call during a live chat, the chat agent moves to After Call Work (ACW).
3. The system initiates a voice call to the contact center.
   <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/call-connected.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=605156e1f77d5f470ab2ccc194657dd5" alt="Call Connected" width="325" height="633" data-path="ai-for-service/contact-center/flows-and-routing/images/call-connected.png" />
   * Context (chat transcript, user ID, session ID, page URL) is passed to the agent.
   * The call routes through the configured Click-to-Call flow.

***

### Chat Flows

#### Out of Operational Hours

Sets the auto response message sent during non-business hours for automated and live chats.

**Messaging (automated chat):**

In the **General Settings** tab, **MessagingAT** is selected under **Your Message to User**. Edit the message, change the language, or add messages using **+ Add Another**. Select the In Queue Flow to add the customer to an agent's waiting queue.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/auto-response-message-out-of-hours.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=330fab9012b4213083c6494c421c53d3" alt="Out of Operational Hours Chat Message" width="1200" height="425" data-path="ai-for-service/contact-center/flows-and-routing/images/auto-response-message-out-of-hours.png" />

**Live Chat:**

In the **General Settings** tab, **endingLiveChatAndOther** is selected under **Your Message to User**. Edit the message, change the language, or add messages using **+ Add Another**. The chat ends after the message is displayed.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/end-live-chat-out-of-hours.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=79055e9d0299cea56adeeec3855d19b9" alt="Out of Operational Hours End Live Chat Message" width="1200" height="428" data-path="ai-for-service/contact-center/flows-and-routing/images/end-live-chat-out-of-hours.png" />

***

#### No Agents Available

Sets the message sent when no agents with the required skills are available.

Select **No Agents Available Chat Flow** to open the configuration.

**Messaging (automated chat):**

In the **General Settings** tab, **messagingEnd** is selected under **Your Message to User**. Edit the message, change the language, or add messages using **+ Add Another**. The chat ends after the message is displayed.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/messaging-end.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=9a07efa2e0eea9f355e3e44c2c0d10a7" alt="No Agents Available Messaging" width="1200" height="383" data-path="ai-for-service/contact-center/flows-and-routing/images/messaging-end.png" />

**Live Chat:**

In the **General Settings** tab, **LiveChatEnd** is selected under **Your Message to User**. Edit the message, change the language, or add messages using **+ Add Another**. The chat ends after the message is displayed.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/live-chat-end-flow.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=5e7c55e5d00b15fcfe9d78f47a9a8bf4" alt="Live Chat End Messaging" width="1200" height="381" data-path="ai-for-service/contact-center/flows-and-routing/images/live-chat-end-flow.png" />

**On Error:**

In the **General Settings** tab, **error** is selected under **Your Message to User**. Edit the message, change the language, or add messages using **+ Add Another**. The chat ends after the message is displayed.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/error.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=286ffcc8010c006865c3df465d5fc83a" alt="On Error Message" width="1200" height="390" data-path="ai-for-service/contact-center/flows-and-routing/images/error.png" />

***

#### In Queue Transfer Flow

Routes a conversation to the queue where agents have the required skills, triggered when the conversation enters a queue before agent assignment.

**Steps to create an In Queue Transfer Flow:**

1. Select **New**.
   <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/new-button.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=fefa05eddf526162cdd77d2829442b65" alt="New Button" width="1000" height="152" data-path="ai-for-service/contact-center/flows-and-routing/images/new-button.png" />
2. In the **New Outbound Flow** window, enter a **Conditional Flow Name** and **Description**.
3. Select **In Queue Transfer Flow** from the **Flow Type** dropdown.
4. Select the **Channel** (Voice or Chat) and select **Create & Continue to Flow Design**.
   <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/new-outbound-flow.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=4d9d8a14ca7cd428abf272cc144190f3" alt="New Outbound Flow Window" width="500" height="493" data-path="ai-for-service/contact-center/flows-and-routing/images/new-outbound-flow.png" />
5. In the **Waiting Experience** tab, select a flow from the **In Queue Flow** dropdown.
   <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/waiting-experience-in-queue-flow.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=79eac248eda6c1546778b91870032731" alt="In Queue Flow" width="1200" height="251" data-path="ai-for-service/contact-center/flows-and-routing/images/waiting-experience-in-queue-flow.png" />

<Note>You can also create custom Conditional Flows for No Agents Available and Out of Hours by following steps 1-4 above.</Note>

***

### Manage Conditional Flows

**Update a flow:**

Select the **(⋮)** icon next to the flow and select **Update**.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/update-conditional-flow.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=699ec7220dc95ba7d1d8059970389f7d" alt="Update Conditional Flow" width="1200" height="194" data-path="ai-for-service/contact-center/flows-and-routing/images/update-conditional-flow.png" />

**Delete a flow:**

1. Select the **(⋮)** icon next to the flow and select **Delete**.
   <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/delete-conditional-flow.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=88c05078c59b7413528e1979d4b8ac2f" alt="Delete Conditional Flow" width="1200" height="194" data-path="ai-for-service/contact-center/flows-and-routing/images/delete-conditional-flow.png" />
2. In the confirmation pop-up, select **Delete**.
   <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/delete-confirmation.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=8fd936d9acf622df843ed92ae7048ba4" alt="Delete Confirmation" width="500" height="235" data-path="ai-for-service/contact-center/flows-and-routing/images/delete-confirmation.png" />

<Note>Deleted conditional flows cannot be restored. Default flows cannot be deleted.</Note>

***

## Waiting Flows

Waiting Flows let you customize the experience for customers waiting in queue — for both voice and chat channels.

**What you can configure:**

* Routing rules based on agent skills
* Initial messages when a request enters a queue
* Hold audio for calls
* Periodic messages for calls and chats
* Callback when wait time exceeds a limit
* Voicemail when wait duration, queue position, or estimated wait time exceeds a threshold

To access Waiting Flows, go to **Contact Center AI** > **Flows & Routing** > **Waiting Flows**.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/waiting-flows-page.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=853f08e090bbb7638a2608510f659098" alt="Waiting Flows Page" width="1000" height="239" data-path="ai-for-service/contact-center/flows-and-routing/images/waiting-flows-page.png" />

**Waiting Flows list fields:**

| Field           | Description                                                    |
| --------------- | -------------------------------------------------------------- |
| **Name**        | Name of the Waiting Experience entry.                          |
| **Skill Rule**  | Skill rules that determine which conversations use this entry. |
| **Description** | Brief description of the entry.                                |
| **Edit (icon)** | Opens the configuration window for that entry.                 |

***

### Add a Waiting Experience

1. Go to **Flows & Routing** > **Waiting Flows**.
2. Select **+ New Waiting Experience**.
   <img src="https://mintcdn.com/koreai/yQyCg-MQd9BC_3mI/ai-for-service/contact-center/flows-and-routing/images/add-new-experience-flow.png?fit=max&auto=format&n=yQyCg-MQd9BC_3mI&q=85&s=be9d56b23a5c76f5c5356bd2a100d220" alt="Add New Waiting Experience" width="1000" height="171" data-path="ai-for-service/contact-center/flows-and-routing/images/add-new-experience-flow.png" />
3. Configure the three tabs: **Configuration**, **Call Experience**, and **Chat Experience**.

***

#### Configuration Tab

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/add-new-waiting-experience.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=39e0aff2377ce067aa8d0379e6a2e999" alt="Waiting Experience Configuration" width="500" height="726" data-path="ai-for-service/contact-center/flows-and-routing/images/add-new-waiting-experience.png" />

**Name and Description:**

Enter a **Name** and a brief **Description** for the entry.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/name-and-description.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=cb7f0d1085016e9f4308918ee30faf5c" alt="Name and Description" width="500" height="174" data-path="ai-for-service/contact-center/flows-and-routing/images/name-and-description.png" />

**Routing Rules:**

Define which conversations use this Waiting Experience based on Skill Group and Skill.

| Action                | How                                                        |
| --------------------- | ---------------------------------------------------------- |
| Add a skill condition | Select the **Skill Group**, then the **Skill**.            |
| Add an OR condition   | Select the row-level **+ Add** option.                     |
| Add an AND condition  | Hover over a rule row and select **+ Add**.                |
| Toggle AND/OR logic   | Hover over a rule row and toggle between the options.      |
| Remove a condition    | Select the **Delete (ⓧ)** icon next to the row or section. |

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/routing-rules-demo.gif?s=74dc413c1491d7f3d2a8c7b267d4a478" alt="Routing Rules Demo" width="800" height="216" data-path="ai-for-service/contact-center/flows-and-routing/images/routing-rules-demo.gif" />

**How the system selects a Waiting Experience:**

1. Filters all entries that match the conversation's skills.
2. Sorts by number of routing rules (descending)-more specific entries take priority.
3. If two entries have the same number of rules, selects the one created earliest.

**Example:** A conversation with Skill A and Skill B matches both an entry requiring only Skill A and one requiring both. The system selects the second entry because it's more specific.

***

#### Call Experience Tab

Configures the in-queue experience for voice calls.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/call-experience.gif?s=3134565df618ae46e3757078074c4e36" alt="Call Experience" width="628" height="822" data-path="ai-for-service/contact-center/flows-and-routing/images/call-experience.gif" />

**Initial Message**

Plays when a call enters the queue. Enabled by default. Edit the message text and select a language.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/initial-message-call.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=8bf6d4db304ab65eee6c31492b5f7d21" alt="Initial Message" width="700" height="250" data-path="ai-for-service/contact-center/flows-and-routing/images/initial-message-call.png" />

**Agent Transfers**

Plays when the customer transfers to an agent or queue. Enabled by default. Edit the message text and select a language.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/agent-transfers-call.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=7506926f5e92e1fc6b72cc594c08562d" alt="Agent Transfers" width="700" height="251" data-path="ai-for-service/contact-center/flows-and-routing/images/agent-transfers-call.png" />

**Hold Audio**

Plays while the customer is on hold. Select the audio file from the **Hold Audio** dropdown.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/hold-audio.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=08ec7a4585dd09dae45f56a614991bb8" alt="Hold Audio" width="700" height="83" data-path="ai-for-service/contact-center/flows-and-routing/images/hold-audio.png" />

**Periodic Messages**

Plays at intervals while the customer waits. To configure:

1. Set the interval in seconds.
2. Set the play order: **Random** or **Sequential**.
3. Set the playback type: **Once** or **Looped**.
4. Edit the message text and language. Select **✔** to save or **x Close** to discard.
5. To add another message, select **+ Add Another**.
6. To remove a message, select the **Delete** icon next to it.

Periodic messages can include queue information using these variables:

| Variable             | Description                                               |
| -------------------- | --------------------------------------------------------- |
| `{{queue.waitTime}}` | Average wait time in minutes, refreshed every 15 minutes. |
| `{{queue.position}}` | Customer's current position in the queue.                 |

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/periodic-messages-call.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=d6502318c4f7496fbded92456e8ee041" alt="Periodic Messages" width="700" height="293" data-path="ai-for-service/contact-center/flows-and-routing/images/periodic-messages-call.png" />

**Callback Option**

Offer or require a callback when the wait time exceeds a set limit.

1. Enable the option.
2. Set the digit key customers press to request a callback. Choose **Offered** or **Forced**.
3. Edit the callback message. Select **✔** to save or **x** to discard.
   <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/callback-option.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=7fae9a9c0a3f75664a7d9f8c8ba6ff5e" alt="Callback Option" width="700" height="292" data-path="ai-for-service/contact-center/flows-and-routing/images/callback-option.png" />

**Voicemail**

Offer or require a voicemail in any of these conditions:

* Call wait duration exceeds `x` minutes.
* Queue position exceeds `x`.
* Estimated wait time exceeds `x` minutes.

To configure:

1. Enable the option.
2. Set the digit key customers press to leave a voicemail. Choose **Offered** or **Forced**.
3. Edit the voicemail message. Select **✔** to save or **x** to discard.
   <img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/voicemail.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=95db12d28643fc73df45976894ba17b3" alt="Voicemail" width="700" height="407" data-path="ai-for-service/contact-center/flows-and-routing/images/voicemail.png" />

***

#### Chat Experience Tab

Configures the in-queue experience for chat interactions.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/chat-experience.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=be7430ce5b6f3665ad40145d29a2944d" alt="Chat Experience Tab" width="700" height="767" data-path="ai-for-service/contact-center/flows-and-routing/images/chat-experience.png" />

**Initial Message**

Appears when a chat enters the queue. Enabled by default. Edit the message text and language. Select **✔ Done** to save or **x Close** to discard.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/initial-message-chat.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=9b3093ffe33ee2aa5927c879c4409b82" alt="Initial Message" width="700" height="242" data-path="ai-for-service/contact-center/flows-and-routing/images/initial-message-chat.png" />

**Agent Transfers**

Appears when the customer transfers to an agent or queue. Enabled by default. Edit the message text and language. Select **✔ Done** to save or **x Close** to discard.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/agent-transfers-chat.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=0a5291b5043df9cce25f75c2f9cfcd42" alt="Agent Transfers" width="700" height="253" data-path="ai-for-service/contact-center/flows-and-routing/images/agent-transfers-chat.png" />

**Periodic Messages**

Appears at intervals while the customer waits in the chat queue. To configure:

1. Set the interval in seconds.
2. Choose **Random** or **Sequential** display order.
3. Choose **Once** or **Looped**.
4. Edit the message text and language. Select **✔ Done** to save or **x Close** to discard.
5. To add another message, select **+ Add Another**.
6. To remove a message, select the **Delete** icon next to it.

***

#### Email Experience Tab

Configures the in-queue experience for email interactions.

<img src="https://mintcdn.com/koreai/jJlYNb4A3n858D1R/ai-for-service/contact-center/flows-and-routing/images/email-experience-tab.png?fit=max&auto=format&n=jJlYNb4A3n858D1R&q=85&s=4abb5d06e0cd1191d4eee7634fa4b96a" alt="Email Experience" width="781" height="794" data-path="ai-for-service/contact-center/flows-and-routing/images/email-experience-tab.png" />

**Initial Message**

Appears when an email enters the queue. Enabled by default. Edit the message text and language. Select ✔ Done to save or x Close to discard.

<img src="https://mintcdn.com/koreai/jJlYNb4A3n858D1R/ai-for-service/contact-center/flows-and-routing/images/initial-email-message.png?fit=max&auto=format&n=jJlYNb4A3n858D1R&q=85&s=a8680f1c58b2815a72c58f6dc51a31b7" alt="Initial Message" width="772" height="331" data-path="ai-for-service/contact-center/flows-and-routing/images/initial-email-message.png" />

**Agent Transfers**

Appears when the customer transfers to an agent or queue. Enabled by default. Edit the message text and language. Select ✔ Done to save or x Close to discard.

<img src="https://mintcdn.com/koreai/jJlYNb4A3n858D1R/ai-for-service/contact-center/flows-and-routing/images/email-agent-transfer.png?fit=max&auto=format&n=jJlYNb4A3n858D1R&q=85&s=7c78b51fe3b46fb8eacda35528b84634" alt="Agent Transfers" width="779" height="352" data-path="ai-for-service/contact-center/flows-and-routing/images/email-agent-transfer.png" />

**Periodic Messages**

Appears at intervals while the customer waits in the chat queue. To configure:

1. Set the interval in seconds.
2. Choose Random or Sequential display order.
3. Choose Once or Looped.
4. Edit the message text and language. Select ✔ Done to save or x Close to discard. To add another message, select + Add Another. To remove a message, select the Delete icon next to it.

   <img src="https://mintcdn.com/koreai/jJlYNb4A3n858D1R/ai-for-service/contact-center/flows-and-routing/images/email-periodic-messages.png?fit=max&auto=format&n=jJlYNb4A3n858D1R&q=85&s=f6659bdb8638e9c23362b981838e7cf9" alt="Periodic Messages" width="783" height="412" data-path="ai-for-service/contact-center/flows-and-routing/images/email-periodic-messages.png" />

***

#### Save

Select **Save** at the bottom of the window. You can save from any tab.

***

### Edit a Waiting Flow

1. In the **Waiting Flows** list, select the **Edit** icon for the entry.
2. Modify the configuration as needed and select **Save**. A success confirmation message appears.

***

### Delete a Waiting Experience

1. In the **Waiting Flows** list, select the **Edit** icon for the entry.
2. Select the **Delete** icon.
3. Select **Yes** to confirm.

<Note>Deleted Waiting Flows cannot be restored. Proceed with caution.</Note>

***

## Debug and Troubleshoot

The Debug window lets you inspect NLP details, execution logs, and session variables for a chat interaction. Select the **Debug** icon in the upper-right corner of the chat window to open it.

<img src="https://mintcdn.com/koreai/B__c1sU0_ct7qmza/ai-for-service/contact-center/flows-and-routing/images/debug-icon.png?fit=max&auto=format&n=B__c1sU0_ct7qmza&q=85&s=106808518d04fb574a4acc4c034935e9" alt="Debug Logs Icon" width="389" height="67" data-path="ai-for-service/contact-center/flows-and-routing/images/debug-icon.png" />

The Debug window has three tabs:

| Tab                             | Description                                                                                    |
| ------------------------------- | ---------------------------------------------------------------------------------------------- |
| **Debug Log**                   | Step-by-step flow execution with timestamps, including Script, Service, and Webhook node logs. |
| **NL Analysis**                 | Task loading details and recognition scores for each user utterance.                           |
| **Session Context & Variables** | Lists context objects and session variables used during dialog execution.                      |

### Debug Log

The Debug Log displays the interaction flow in a chat-style format, pairing user inputs with system responses. This makes it easy to trace conversation steps, inspect context at each stage, and identify where issues occur. [Learn more](/ai-for-service/automation/testing/playground#debug-log).

**Events by node type:**

| Node                           | Initiation Message                                   | Key Events                                                                                | Outcomes                                       |
| ------------------------------ | ---------------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------- |
| **IVR Menu, IVR Digit Input**  | IVR Menu/Digit Input node initiated                  | User input → Transitioning X to Y → Execution completed → Timeout/Retry/Wrong input/Error | —                                              |
| **Split**                      | Split node initiated                                 | Transitioning X to Y → Execution completed → Error detected                               | —                                              |
| **Check Agent Availability**   | Check agent availability node initiated              | Transitioning X to Y → Execution completed → Error detected                               | Agents available / Agents unavailable          |
| **Check Business Hours**       | Checking business hours and triggering selected node | User input → Transitioning X to Y → Execution completed                                   | Inside business hours / Outside business hours |
| **Message Prompt**             | Message prompt initiated to the user                 | Transitioning X to Y → Execution completed                                                | —                                              |
| **Automation**                 | Automation node initiated and message triggered      | Waiting for user input                                                                    | —                                              |
| **Agent Transfer**             | Agent transfer node triggered                        | Transitioning X to Y → Execution completed → Specific dialog executed                     | Transfer successful / Transfer failure         |
| **Connect to API**             | API connection established and node triggered        | Transitioning X to Y → Execution completed → Error detected                               | —                                              |
| **Go to Flow, Script Task**    | Go to flow / Script task initiated                   | Transitioning X to Y → Execution completed                                                | —                                              |
| **Set Queue, Deflection Flow** | Set queue / Deflection flow initiated                | Transitioning X to Y → Execution completed → Error detected                               | —                                              |
| **End Flow**                   | End flow initiated                                   | Transitioning X to Y → Execution completed                                                | —                                              |
