When calling my squad member with dynamic variables it doesn't transfer the call to my other assistant. I tried every possible variations without luck. It only transfers when I don't provide variables.
I'm hitting the POST create call endpoint. This is my payload:
{
"squadId": "d865d797-51af-4dcb-9d61-cefc0db06d15",
"squad": {
"members": [
{
"assistantId": "f38698be-ba9e-4207-8068-a91009c779d0",
"assistantOverrides": {
"variableValues": {
"name": "{{ $('Item Ref').item.json.first_name }} {{ $('Item Ref').item.json.last_name }}",
"appointmentReason": "{{ $('Item Ref').item.json.appointmentReason }}",
"doctor": "{{ $('Item Ref').item.json.doctorName }}",
"appointmentDate": "{{ $('Format Date').item.json.formatted }}"
}
},
"assistantDestinations": [
{
"message": "Please hold the line. I transfer you to the scheduling assistant",
"description": "Hand off user when they request to cancel or reschedule their appointment",
"type": "assistant",
"assistantName": "Cardiovascular Assistant"
}
]
},
{
"assistantId": "0763a478-c868-4b31-8fb1-c8ced9febb02",
"assistant": {
"name": "Cardiovascular Assistant"
},
"assistantDestinations": []
}
]
},
}