transfer-destination-request
# support
t
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();
j
Hi, I’ve seen this behavior before with Vapi AI transfer tools: when you pass parameters but leave destinations empty, the transfer-destination-request event often won’t fire unless the assistant successfully resolves a destination at runtime, so the tool gets called but the transfer never completes, which matches what you’re seeing. In most cases, you need either a fallback destination or backend logic that maps those parameters to a real phone number. Are you currently returning destinations dynamically from your webhook, or relying only on the model to handle routing? @tnigam
t
returning destinations dynamically from my webhook
the call is not going to backend at all if i define parameters