Human Handoff
# support
How to havr the AI agent transfer a call ( human hand off ) on certain conditions
Hi @Abed Malak, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Call Ended Reason]() * [Prompting Guide]() * [Implementing Realtime Conversation]() * [Inbound Calling]() -----------------------------
### Answer To achieve human handoff or transfer a call under specific conditions using Vapi, the AI agent can utilize the
function. This function is available when a
is defined for the assistant. The
function allows the assistant to transfer the call to the specified forwarding number. Here is an example configuration:
Copy code
  "model": {
    "provider": "openai",
    "model": "gpt-3.5-turbo",
    "messages": [
        "role": "system",
        "content": "You are an assistant at a law firm. When the user asks to be transferred, use the transferCall function."
  "forwardingPhoneNumber": "+16054440129"
[(1)]() This setup can be tailored within the assistant's configuration to trigger the call transfer under the conditions you specify, such as specific user requests or other predetermined criteria.
Using forwardingPhoneNumber.