Hi Adam - appreciate your help
This is the transferCall tool we are sending to Vapi
{
"type": "transferCall",
"destinations": [
{
"type": "number",
"number": "+15555550142",
"message": "I'm just forwarding your call to Maplewood Pines Golf Club. Please stay on the line.",
"callerId": "{{customer.number}}"
}
],
"function": {
"name": "transferCall",
"description": "Use this function to transfer the call if the customer wants to speak to a person, representative, or department or the Golf Course Pro-shop. 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.",
"parameters": {
"type": "object",
"properties": {
"destination": {
"type": "string",
"enum": [
"+15555550142"
],
"description": "The destination to transfer the call to. For phone numbers use the format number,extension. For SIP use the SIP URI."
}
},
"required": [
"destination"
]
}
},
"messages": [
{
"type": "request-start",
"content": "I'm just forwarding your call to Maplewood Pines Golf Club. Please stay on the line.",
"conditions": [
{
"param": "destination",
"operator": "eq",
"value": "+15555550142"
}
]
}
]
}
*I've changed the number and names
We also have a problem that its not forwarding the extension either - but this is less of a problem