transferCall using Warm-transfer to Phone Number w...
# support
s
I created an assistant and set up the transferCall tool with a number that has an extension. When I received the call from the AI and asked to be transferred, the AI successfully transferred the call to my number with the extension. However, the AI didn’t say the summary before connecting my call to the transferred number. callid
1b5818b6-16ab-4f43-994c-ad93a9b1a225
assistantid
b422c118-a28c-48c7-904c-2e3932498209
My tool in the assistant
Copy code
json
{
  "type": "transferCall",
  "async": false,
  "function": {
    "name": "dynamicTransferCall",
    "parameters": {
      "type": "object",
      "required": ["destination"],
      "properties": {
        "destination": {
          "enum": ["+13322530000,4", "+13322530000,1001"],
          "type": "string",
          "description": "redacted"
        }
      }
    },
    "description": "redacted"
  },
  "destinations": [
    { "type": "number", "number": "+13322530000", "extension": "4" },
    {
      "type": "number",
      "number": "+13322530000",
      "extension": "1001",
      "transferPlan": {
        "mode": "warm-transfer-say-summary",
        "sipVerb": "refer",
        "summaryPlan": {
          "enabled": true,
          "messages": [
            {
              "role": "system",
              "content": "redacted"
            },
            {
              "role": "user",
              "content": "Here is the transcript:\n\n{{transcript}}\n\n"
            }
          ]
        }
      }
    }
  ]
}
The prompt to start the tool
Copy code
[Transfer the call]
- If the user requests Support, use the transferCall function with +5511998330000,123.
- If the user requests Manager, use the transferCall function with +5511998330000,456.
The log in call logs
Copy code
15:11:53:621
[LOG]
Model called tool: dynamicTransferCall({"destination":"+13322530000,1001"})
The AI called the right number with extension, but didnt play the summary. Ive attached the complete tool in json file https://cdn.discordapp.com/attachments/1364986161176510587/1364986161407332352/tool.json?ex=680ba9ed&is=680a586d&hm=81da185fbb3c0e8ba49d0385ad6ea8bf3eb1c0811333bb555c4c099aa7e75540&
VAPI is sending correctly, the error might be between Twilio and my PBX
s
@Seygi do you require help with this? cc: @Kings_big💫
s
It's all good Tks
k
Nice