How it works
Live-agent escalation is a three-part pattern:- The channel — The agent must be configured with one of the supported channels:
- Genesys Bot Connector
- Genesys Audio Connector
- Phone with SIP
- The agent is configured with an
escalationblock that declares the conditions under which a transfer is required, for example the customer explicitly asking for a human, or the agent detecting frustration. - 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.
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 theescalation_condition descriptions in your conditions. To see the prompt that an agent uses, run:
BASH
--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:
- Run
orchestrate agents escalation-prompt --name <agent-name> --defaultand copy the prompt. - Edit the text and paste it into the
escalation_prompt_overridefield of the agent YAML. - Import the agent again.
YAML
Side effects of enabling escalation
Enabling escalation automatically applies the following changes to the agent:context_access_enabledis set totrue.channelis added tocontext_variables.
{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 anescalation block removes escalation from the agent, including any escalation configuration that was applied through the UI.
Complete agent example
YAML
Related resources
- Transfer End node — how to build the escalation workflow
- Authoring native agents
- Providing access to context variables

