dynamic tool in assistant not triggering webhook if it has argument
Here is two logs where it hit and where it didn't hit
it did trigger the transfer-destination-request
this didn't
Message 4
tool_calls
12:51:22 PM
Copy
{
"role": "tool_calls",
"time": 1760428282753,
"message": "",
"toolCalls": [
"0": {
"id": "call_zt6ypKnIUbIr1HaJtmrNamWm",
"type": "function",
"function": {
"name": "transfer_call_tool",
"arguments": "{"target": "maintenance agent"}"
}
}
],
"secondsFromStart": 4.817
}
Message 5
tool_call_result
12:51:22 PM
Copy
{
"name": "transfer_call_tool",
"role": "tool_call_result",
"time": 1760428282756,
"result": "Transfer initiated.",
"toolCallId": "call_zt6ypKnIUbIr1HaJtmrNamWm",
"secondsFromStart": 4.82
}
on the table ended reason for first is Customer Ended Call and the second Assistant forwarded Call
it did trigger the transfer-destination-request
{
"role": "tool_calls",
"time": 1760427301240,
"message": "",
"toolCalls": [
"0": {
"id": "call_IQE1Oaz3op48JltIJotr8DwO",
"type": "function",
"function": {
"name": "transfer_call_tool",
"arguments": "{}"
}
}
],
"secondsFromStart": 16.883
}
{
"name": "transfer_call_tool",
"role": "tool_call_result",
"time": 1760427306048,
"result": "Invalid transfer target or agent not found",
"toolCallId": "call_IQE1Oaz3op48JltIJotr8DwO",
"secondsFromStart": 21.691
}
this didn't
Message 4
tool_calls
12:51:22 PM
Copy
{
"role": "tool_calls",
"time": 1760428282753,
"message": "",
"toolCalls": [
"0": {
"id": "call_zt6ypKnIUbIr1HaJtmrNamWm",
"type": "function",
"function": {
"name": "transfer_call_tool",
"arguments": "{"target": "maintenance agent"}"
}
}
],
"secondsFromStart": 4.817
}
Message 5
tool_call_result
12:51:22 PM
Copy
{
"name": "transfer_call_tool",
"role": "tool_call_result",
"time": 1760428282756,
"result": "Transfer initiated.",
"toolCallId": "call_zt6ypKnIUbIr1HaJtmrNamWm",
"secondsFromStart": 4.82
}
on the table ended reason for first is Customer Ended Call and the second Assistant forwarded Call