Skip to main content
Configure a native agent to hand off the conversation to a live agent when one of its escalation conditions is met. The agent calls a designated escalation workflow, which determines the transfer channel and the messages shown to the customer. This feature is currently supported for Phone channels (Genesys Audio Connector and SIP) and the textual channel Genesys Bot Connector.

How it works

Live-agent escalation is a three-part pattern:
  1. The channel — The agent must be configured with one of the supported channels:
    • Genesys Bot Connector
    • Genesys Audio Connector
    • Phone with SIP
  2. The agent is configured with an escalation block that declares the conditions under which a transfer is required, for example the customer explicitly asking for a human, or the agent detecting frustration.
  3. The escalation workflow is a flow marked as a customer care escalation workflow. It verifies the channel, shows the appropriate message to the customer, and triggers the handoff via a Transfer End node.
When a condition is met, the agent invokes the escalation workflow and passes the condition_id and the current channel_type as input. The workflow then drives the transfer. Configure the Transfer End node before importing the escalation flow. For information about building the escalation workflow, see Transfer End node.

Import order

Import the escalation workflow before the agent, because the agent references the workflow by name.

The escalation block

Add an escalation block to the agent YAML to enable escalation:
YAML

Field reference

object
Configures live-agent escalation for the agent.

Customizing the escalation prompt

When escalation is turned on, watsonx Orchestrate adds an escalation prompt to the agent. By default, it composes the prompt from the escalation_condition descriptions in your conditions. To see the prompt that an agent uses, run:
BASH
Without --default, the command shows the effective prompt and states whether it comes from an override or is composed from the conditions. The command prints the prompt as plain text so that you can copy it unchanged. To customize the prompt:
  1. Run orchestrate agents escalation-prompt --name <agent-name> --default and copy the prompt.
  2. Edit the text and paste it into the escalation_prompt_override field of the agent YAML.
  3. Import the agent again.
YAML
If the prompt isn’t available for the agent, the command logs a warning that includes the reason.

Side effects of enabling escalation

Enabling escalation automatically applies the following changes to the agent:
  • context_access_enabled is set to true.
  • channel is added to context_variables.
This means the agent’s instructions can reference {channel.channel_type} to adapt behaviour based on the current channel.

Supported agent styles

Escalation is supported only for the following agent styles: default, react, react_intrinsic, and react_core. Importing an agent with escalation enabled on any other style returns an error.

Visibility of escalation workflows

Escalation workflows are hidden from the standard tools list. To include them in the listing, pass the --include-escalation flag:

YAML as source of truth

The agent YAML is the authoritative source for escalation configuration. Re-importing a YAML file that does not contain an escalation block removes escalation from the agent, including any escalation configuration that was applied through the UI.

Complete agent example

YAML