Issue: Function Call Returning Empty Data After La...
# support
k
I’m experiencing an issue where the function call is returning empty. I use Make.com to retrieve the data from the function call, but it outputs empty. It was working fine two months ago, but after your latest update, the function call now returns empty data. "toolCallList": [ { "id": "call_uQMldpj0XWkgUsZ6w2NMeoLd", "type": "function", "function": { "name": "Offer_Code", "arguments": {}
v
Hi there! I can see you're having trouble with your "Offer_Code" function call returning empty data after our latest update. Let me help you troubleshoot this šŸ” Based on our recent updates, there are a few potential causes for this issue: 1. **Tool Call Migration**: We recently required migrating from
ToolCallFunction
to
ToolCall
with a new schema that includes properties like
name
,
tool
, and
toolBody
. If you haven't updated your code to use this new schema, that could be causing the empty returns [Vapi Changelog, January 22, 2025](https://docs.vapi.ai/changelog/2025/1/22). 2. **Schema Validation Issues**: Your function might need an update to include
additionalProperties: false
in its schema to comply with OpenAI's requirements. Without this, the function might not execute properly. 3. **Data Handling Errors**: We've seen cases where data appears correct in logs but arrives empty in webhooks, which could be what you're experiencing with Make.com integration. To troubleshoot: - Check that your webhook settings in Vapi are correctly triggering the Make.com scenario - Verify your function schema has been updated to the new format - Try testing with static data to debug any dynamic data handling errors Here's an example of the updated schema format you might need:
Copy code
json
{
  "function": {
    "parameters": {
      "type": "object",
      "properties": {
        // your properties here
      },
      "required": ["your_required_fields"],
      "additionalProperties": false
    }
  }
}
Let me know if updating your schema resolves the issue or if you need further assistance! Sources: - [Vapi Changelog, January 22, 2025](https://docs.vapi.ai/changelog/2025/1/22) - [Discord Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341487904677167114) - [Discord Channel](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335308574556946480)
s
how to create schema of tool after the new update
k
How to update the Schema?
Is this correct? @User
Copy code
{
  "type": "function",
  "function": {
    "name": "offerCode",
    "description": "Get the Callers Offer code during the call."
  },
  "server": {
    "url": ""
  },
  "additionalProperties": false
}
It says this { "message": [ "property additionalProperties should not exist" ], "error": "Bad Request", "statusCode": 400 }
@Vapi Support Bot
p
Hey! To help track down this issue, could you share: - The call ID - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
k
Here it is "toolCallList": [ { "id": "call_od6Lmex9XHaK0Qcv7lZpIMNz", "type": "function", "function": { "name": "offerCode", "arguments": {} } } ],
p
This is the tool call ID, not the call ID. You can get the call ID from here.
2 Views