Human Handoff
# support
k
Hi can someone explain to me if a user says to the ai agent that he or she wants to talk with a live person. How can i set it to forward the call to a human.
v
To forward a call to a human when a user requests it, use the assistant-based warm transfer feature. Here’s a simple example configuration:
Copy code
json
{
  "type": "transferCall",
  "function": { "name": "salesTransferAssistant" },
  "destinations": [
    {
      "type": "number",
      "number": "+14155551234",
      "transferPlan": { "mode": "warm-transfer-experimental" }
    }
  ]
}
This will transfer the call to the specified phone number when triggered by your AI agent. For more details, see the documentation I have found: [Assistant-based warm transfer](https://docs.vapi.ai/calls/assistant-based-warm-transfer). Source: - [Assistant-based warm transfer](https://docs.vapi.ai/calls/assistant-based-warm-transfer)
k
But what if i want to set to a department with multiple numbers then
life a company has 4 departments sales, finance, customer support, and management, with 20 people and 20 phone numbers in each department thenthen
c
Hi KennyBenso4, If you need assistance with configuring or troubleshooting the handoff tool in our multi-agent system, please check the [handoff tool documentation](https://docs.vapi.ai/tools/handoff). It contains comprehensive guidance on various configuration patterns, use cases, and best practices for optimizing handoffs between assistants. For dynamic handoffs, you can set up a
handoff-destination-request
webhook to determine destination assistants in real-time, incorporating custom parameters for advanced routing. Ensure your assistants' context and variable extraction plans align with your system needs for seamless transitions. For any examples related to healthcare systems using handoff tools, refer to the [clinic triage and scheduling example](https://docs.vapi.ai/squads/examples/clinic-triage-scheduling-handoff-tool). If you have any specific issues within your configuration or if you encounter an error, reviewing the [troubleshooting section](https://docs.vapi.ai/tools/handoff#troubleshooting) could also be helpful.
l
To forward a call to a real human when the user asks for it, you just need to add a “Human Handoff” or “Call Transfer” action in your call flow and connect it to the point where the user says they want to talk to a live person. You can detect this either through a specific intent (like “talk to agent” or “speak to human”) or by adding a rule that triggers when certain keywords are spoken. Once triggered, set the handoff action to dial the phone number of your support agent or team. After saving and publishing your agent, any user who asks to talk to a human will automatically get transferred to the real person.
2 Views