Newlimitstyler
11/10/2025, 5:40 PMVapi Support Bot
11/10/2025, 5:41 PMtransferCall function description is clear and that your assistant's system prompt explicitly instructs when to use it. For example:
json
"function": {
"name": "transferCall",
"description": "Use this function to transfer the call. Only use it when following instructions that explicitly ask you to use the transferCall function. DO NOT call this function unless you are instructed to do so."
}
Update your assistant's prompt to say, for example:
“If the user asks for sales, call the transferCall function with +1234567890.”
This helps ensure the function is triggered reliably when needed.
For more, see the [Call Forwarding documentation](https://docs.vapi.ai/call-forwarding).
Source:
- [Call Forwarding documentation](https://docs.vapi.ai/call-forwarding)Lakshay Julka
11/10/2025, 5:49 PMChiranjeet Mishra
11/12/2025, 7:47 PMtransfer_call and set necessary parameters like department and reason.
2. **Setup Your Server**:
- Your server needs to handle webhook events and process the controlUrl for call transfers. Ensure your server is publicly accessible.
3. **Define Business Logic**:
- Your server should use the controlUrl for executing the transfer by making a POST request.
- Decide on destinations based on parameters like department.
4. **Assistant Configuration**:
- Add the custom tool to your assistant and define conditions for its usage.
5. **Testing**:
- Assign a phone number to test the call transfers.
- Ensure logging to troubleshoot issues like errors in HTTP requests or destination format validity.
You can find more details in the [dynamic call transfers guide](https://docs.vapi.ai/calls/call-dynamic-transfers).
Ensure your webhook server is correctly set and verify API calls with the correct headers and destination formats. If problems persist, checking for errors in your server logs and verifying webhook configurations can be helpful.