Learn how to implement customer service escalation in Ultravox using call stages to handle customer complaints by transferring them to a manager.
Set Up ngrok
Define the Tool
Create Manager Handler
Update System Prompt
Test the System
/final
folder in the repo to get final versions of the various files you will create or edit.https://1234-56-78-910-11.ngrok-free.app
)
toolsBaseUrl
in demo-config.ts
:
escalateToManager
tool that the AI agent will use to transfer difficult customers.
Update the selectedTools
array in demo-config.ts
and add to our call definition:
app/api/managerEscalation/route.ts
to handle the escalation:
demo-config.ts
:
demo-config.ts
X-Ultravox-Response-Type
header is set