Skip to main content
Back to Inbuilt tools The transfer_to_agent tool transfers the conversation to a human agent through an agent desktop provider, such as Kore SmartAssist.

When to use

Use transfer_to_agent when the user asks to speak with a human, or when the issue cannot be resolved by the AI agent and you want the conversation handed to a contact-center agent with the conversation context. To move a voice call to a SIP or PSTN number without involving an agent desktop, use call_transfer. To create a tracked human task with SLA and queueing, use ESCALATE.

Declare the tool

Declare only the fields you use.

Parameters

Voice channels

On voice, the transfer works only on gateways that can move the caller’s call leg: Kore Voice Gateway, Genesys SAVG, and AudioCodes. On other voice surfaces, such as Twilio, LiveKit, VXML, and Genesys Audio Connector, the tool fails instead of reporting a handoff that did not happen.

Example