I'm integrating VAPI and trying to call an API to fetch the current time, but it is not being triggered during the call execution. Here’s my current setup:
The assistant is supposed to call an external API via a tool function (get_current_time).
The function is defined with the necessary parameters and response messages.
However, during the call, this API is not being triggered at all—there are no logs or indications that the request is even sent.
Could someone help me debug this?
Here’s my setup:
"tools": [{
"type": "function",
"messages": [
{
"type": "request-start",
"content": "Fetching the current time..."
},
{
"type": "request-complete",
"content": "Current time fetched successfully."
},
{
"type": "request-response-delayed",
"content": "There is a delay in fetching the current time.",
"timingMilliseconds": 2000
}
],
"function": {
"name": "get_current_time",
"description": "Fetch the current server time in ISO format",
"parameters": {
"type": "object",
"properties": {
"toolCallId": {
"type": "string",
"description": "Unique identifier for tracking tool calls"
}
}
}
},
"async": false,
"server": {
"url": URL
}
}]