Guys is this example on your website correct
https://docs.vapi.ai/assistants/examples/support-escalation#4-test-your-support-escalation-system
If I pass parameters to this request transfer-destination-request, the event is never fired
Call ID : 019c6d36-405a-766d-8878-c9704247a70f
async function createSupportEscalationTool() {
try {
const tool = await vapi.tools.create({
type: "transferCall",
// Empty destinations array makes this a dynamic transfer tool
destinations: [],
function: {
name: "escalateToSupport",
description: "Escalate calls to appropriate support specialists based on customer tier and issue complexity",
parameters: {
type: "object",
properties: {
issue_category: {
type: "string",
description: "Category of customer issue",
enum: ["technical", "billing", "account", "product"]
},
complexity_level: {
type: "string",
description: "Issue complexity level",
enum: ["basic", "intermediate", "advanced", "critical"]
},
customer_context: {
type: "string",
description: "Relevant customer information for routing"
},
escalation_reason: {
type: "string",
description: "Why this needs escalation vs self-service"
}
},
required: ["issue_category", "complexity_level"]
}
}
});
console.log(
Support escalation tool created: ${tool.id}
);
return tool;
} catch (error) {
console.error('Error creating support escalation tool:', error);
throw error;
}
}
// Create the support escalation tool
const escalationTool = await createSupportEscalationTool();