There's no parameters settings in the new Tools fo...
# support
m
Can you please provide info on how to setup parameters. Currently the assistant is sending user input as argument variables in the message function JSON.
v
Hi there! I found some information about setting up parameters in Vapi's new Tools for function calls πŸ‘‹ To configure parameters for function calls, you'll need to structure your tool configuration like this:
Copy code
json
{
  "type": "function",
  "messages": [ 
    { "type": "request-start", "content": "Initiating the process..." },
    { "type": "request-complete", "content": "Process completed." },
    { "type": "request-failed", "content": "Process failed." }
  ],
  "function": {
    "name": "exampleFunction",
    "parameters": { 
      "type": "object",
      "properties": {
        "param1": { "type": "string" },
        "param2": { "type": "integer" }
      }
    },
    "description": "Sample function"
  },
  "async": false,
  "server": { "url": "https://api.server.com" }
}
The key part for your parameters is in the
function.parameters
object where you define the structure of your parameters [source](https://docs.vapi.ai/tools/custom-tools). For your specific issue with user input being sent as argument variables, make sure you're properly defining your parameter object and that variables are correctly referenced and interpolated. If configured improperly, this can result in unresolved placeholders being sent rather than the resolved variable [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1315677399026765855). When your server receives the function call, it should respond with a properly formatted JSON that includes the
toolCallId
and `result`:
Copy code
json
{
  "results": [
    {
      "toolCallId": "unique_call_id",
      "result": "Processed result"
    }
  ]
}
Is there a specific part of the parameter configuration you're having trouble with? Sources: - [Vapi Custom Tools Documentation](https://docs.vapi.ai/tools/custom-tools) - [Discord Channel Discussion](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1315677399026765855)
- [Vapi Tools Calling Documentation](https://docs.vapi.ai/tools-calling)
m
How to setup the parameters in the tools UI page or how to setup in JSON code?
Can you please help with this as we are currently stuck as we cannot set the parameters in the VAPI Tools for a function as that feature as well as the async have been removed from the UI
ok figured it out by setting the variable in the VAPI prompt e.g. {'variable':'value'}
b
heyo
can u exaplin what u did?
p
I am creating a tool using https request and everything resets everytine I go into the dashboard @Vapi Support Bot
b
what do you mean resets?
u created a tool with the api?
p
The tools go back to default and removes the properties
Yes
b
haha, i was just trying to create a tool with the api
are u sure it removes the properties, if u list the tool using the api and not the dashboard, do u see the properties?
p
It works only once and when I refresh. It all goes back to default.
b
i setup a tool using the API
it seems like it's still there when i call list tools
but the model isn't passing on the paramters that i set
:/
ok it works
t
Hi
p
Same issue. I think you should call the API from Vapi API
b
you have to create the tool from the API
instead of using the UI
and then it will work
s
Is there a step by step guide to do this, last time I did work using api my agent data got overwritten and I dont even know how, thats why i prefere ui.
b
no, u kinda need to be a dev or something to get this done
or just wait for tomorrow
s
@badbunny2222 @ShabnamE @Pen πŸ’» @thevin @Mr.snack We will add the parameters UI to the dashboard within a day.
s
Hi @Shubhuam
My Vapi agent is able to see results from make.com webhook when i use the new Test feature, but when i call the agent, the agent can't see the response data. i.e to check if customer exists in system already, if they do return their first name so agent greets them with Hi {{first_name}}. I ask the agent what my name is and it seems to just called by a random name each time even though I can see the correct name has been passed from the web hook in the response. Is this also aknown issue or is there something else I should look at?
k
Hey ShabnamE, please create a new support ticket for your issue. This support ticket belongs to the owner of the ticket, and I don't want to mess up with the current ticket context.