Call Transfer Issue
# support
d
This has happened a few times - if the assistant hasn't been called in a while (not sure if time is factor) the initial call has been silence timing out when the assistant is supposed to take the action of transferring the call (they have received everything they need from the user). Here's my call id: 1609c348-3a80-48af-9304-37de0d2c3544
v
message has been deleted
@doc I'm sorry to hear that you're experiencing issues with the assistant timing out. It seems like there might be a problem with the assistant's responsiveness after periods of inactivity. To help you further, I'll need to check the details of your call with the ID you provided. Please hold on for a moment while I look into this for you. [Investigating the issue based on the provided call ID...] If the issue persists or you need immediate assistance, please don't hesitate to ask support for more info on this.
You can continue this conversation by mentioning me in the message.
s
@doc create a custom transfer call function but with another name and you don't need to define function definition. What's happeniing is existing Vapi transferCall function is overritten by your function call.
Create another one with different name and it will work.
d
Okay, thanks for getting back to me @User . I'm not using the API, using the UI editor. Do you have any references for how to create and then call a custom transfer call function from the system prompt field? I wasn't aware that I created a custom function call - can you elaborate on that?
s
@doc first take a look at how to create custom tools functions.
Copy code
curl -X POST https://api.vapi.ai/tool \
     -H "Authorization: Bearer " \
     -H "Content-Type: application/json" \
     -d '{
  "type": "transferCall",
  "destinations": [
    {
      "type": "number",
      "number": "destination-number-here",
      "callerId": "set-the-caller-id-here",
      "description": "descriptiion-to-be-used-by-AI-for-funtions-calling",
      "message": "message-to-be-spoken"
    }
  ],
  "function": {
    "name": "customTransferCall"
  }
}'
Ref: https://docs.vapi.ai/api-reference/tools/create?playground=%2Fapi-reference%2Ftools%2Fcreate 2. Go through this doc for more details https://docs.vapi.ai/call-forwarding 3. Create the custom transfer call tool, attach it to the assistant under functions section.
Do let me know how it goes @doc
d
Thanks, I was able to create a transferCall function via the docs API reference and added it to the assistant as a tool. I haven't been able to test yet but will get around to it soon. @Shubham Bajaj If I'm understanding correctly, in my system prompt I need to explicitly ask the assistant to call the transferCall function? For example: "If the user says x, call the transferCall function"
Oh one more thing, should I remove the forwarding phone number from the predefined functions settings? It seems like it's still using that number instead of the transferCall function number and description I added today. Wondering since the custom function is a transfer call action as well, there might be an issue if that predefined function field is used since its a similar action
s
remove the forwarding phone number.
5 Views