New Update broke the function UI?
# support
c
Hey - maybe I am missing something, but it looks like the new UI update in the
tools
section does not allow me to speficy a tool call
parameters
anymore? Seems like I need to do it through code now? https://cdn.discordapp.com/attachments/1347304132679041144/1347304133614374922/Screenshot_2025-03-06_at_3.19.33_PM.png?ex=67cb5641&is=67ca04c1&hm=3e8a0f210931532305581b17d1ec6dcb3ff5c969b2e3bcc0f30ecc8622bf8547&
v
Hey Cornelius! 😊 You're correct that the new UI update in the tools section has made some changes regarding how tool call parameters are specified. In the latest update, the
ToolCallFunction
has been replaced with the
ToolCall
schema, which means you'll now need to specify tool call parameters through code. The new
ToolCall
schema allows for more detailed specifications, including properties like
name
,
tool
, and
toolBody
. Here's a quick example of how you can specify parameters in the new format:
Copy code
json
{
  "toolCalls": [
    {
      "id": "call_DE6TZISulSwOuVKDFQHZSoiW",
      "type": "function",
      "function": {
        "name": "find_customer",
        "arguments": {
          "first_name": "John",
          "last_name": "Doe",
          "phone_number": "1234567890"
        }
      }
    }
  ]
}
This way, you can pass the required parameters like
first_name
,
last_name
, and
phone_number
directly in the
arguments
field. If you have any more questions or need further assistance, feel free to ask! 👍 Sources: - [Changes in the New UI Update for the Tools Section](https://docs.vapi.ai/changelog/2025/1/22) - [Specifying Tool Call Parameters in the New UI Update](https://docs.vapi.ai/changelog)
Message marked as helpful by @corneliusschramm! 🎉
c
good start, but when will you fix the vapi UI for specifying the parameters?
c
the text above implies that we need to move everything to transient agents? Don't see any other way to change the code to add the arguments
w
Where can the parameters be added because the code is not editable
c
i think they're still deploying updates to the UI, because i just refreshed and some options are back again... not the parameters yet though
c
ok cool. I am sure it is just a matter of time before it is fixed
you'd need to make an api call to
https://api.vapi.ai/assistant/:id
Copy code
curl -X PATCH https://api.vapi.ai/assistant/id \
     -H "Authorization: Bearer <token>" \
     -H "Content-Type: application/json" \
     -d '{ ...}'
m
I'm trying to import my tools using the API calls, using literally their example modification from their website: https://docs.vapi.ai/tools/custom-tools When using Postman, it's saying there's a bunch of properties that shouldn't exist
f
I am having the same issue as @mrearthbound @Shubham Bajaj can you check this out pls? It's urgent
d
@mrearthbound @Shubham Bajaj same as well
@User
l
Same here!
d
Same
a
Also when I update my function tool with PATCH API call, it gets correctly updated and I can see that also in the UI But if that function tool ever gets saved from the UX for any reason, it will RESET back to the initial basic configuration...
s
@corneliusschramm @corneliusschramm @wisdom chris @cheezymcsquibble @Damian @Andrei @lifeguru @DevAnonymous @mrearthbound @Fire Looking into it.
@corneliusschramm @mrearthbound just remove the type function from UPDATE api call and then it will work.
a
In the meantime that this issue gets fixed I have a question regarding the API documentation Is there a way to make POST Request ti create a call to a voice assistant (https://api.vapi.ai/call) and pass in the body the list of tools with their entire configuration? I'm looking through the api-reference for creating a call (https://docs.vapi.ai/api-reference/calls/create/) and I can't find a way to override existing function tools of the targeted assistant with another configuration or pass it new function tools with a new configuration I'm trying to do this in response to not being able to use the function tools set and saved on the platform
a
@Shubham Bajaj How long is it gonna take for the Vapi UI to get fixed and to get the tool's properties back ?
@mrearthbound Can you guide me a bit like how are you importing tools using the API calls?
s
it will be resolved in sometime.
Here you go...
Copy code
json
curl -X POST https://api.vapi.ai/call \
     -H "Authorization: Bearer insert-your-token-here" \
     -H "Content-Type: application/json" \
     -d '{
  "assistantId": "insert-your-assistant-id-here",
  "assistantOverrides": {
    "model": {
      "provider": "openai",
      "model": "gpt-4o",
      "messages": [
        {
          "role": "system",
          "content": "insert-your-system-prompt-here"
        }
      ],
      "tools": [
        {
          "type": "function"
        }
      ]
    }
  },
  "phoneNumberId": "insert-your-phone-number-id-here",
  "customer": {
    "number": "insert-your-customer-number-here",
    "numberE164CheckEnabled": false
  }
}'
a
Thank you I did this and it works
3 Views