[GFA]fifoooo
12/13/2024, 10:11 AMVapi
12/13/2024, 10:14 AMtools
field where you specify the IDs or names of the tools you want to associate with the assistant.
Since you've mentioned that the JSON representation of the assistant you fetched does not include information about the bound tools, it's possible that the association between assistants and tools is managed through a different endpoint or parameter.
If the documentation does not provide clear guidance on how to bind tools to an assistant via the API, I would recommend reaching out to the VAPI support team for more detailed instructions. They should be able to provide you with the exact steps or the correct payload structure to achieve this.
If you have any other questions or need further assistance, please let me know!Vapi
12/13/2024, 10:14 AM[GFA]fifoooo
12/13/2024, 1:28 PMVapi
12/13/2024, 1:28 PMGET assistant/{id}
endpoint does not show the tool bindings, it's possible that the tool association is handled in a separate part of the assistant configuration that isn't included in the standard retrieval endpoint.
To bind tools to an assistant, you should look for a section in the API documentation that covers tool associations. This might be a specific field in the JSON payload when you make a POST or PUT request to the assistant
endpoint, or it could be a separate endpoint altogether for managing tool bindings.
If the documentation does not provide the necessary details, or if you're unable to find the relevant section, please reach out to VAPI support for more specific guidance on how to include tool references in your assistant configuration via the API.
Again, I'm here to help, so if you have any further questions or need additional assistance, feel free to ask.[GFA]fifoooo
12/13/2024, 1:29 PMShubham Bajaj
01/05/2025, 9:09 PMjson
curl -X POST https://api.vapi.ai/assistant \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"model": {
"provider": "openai",
"tools": [
{
"type": "function",
"async": false,
"messages": [],
"function": {
"name": "function-name-here",
"description": "",
"parameters": {
"type": "object",
"properties": {}
}
},
"server": {
"url": ""
}
}
],
"toolIds": [
"tool-id-here",
"tool-id-here"
]
}
}'
You can learn more about it from here https://docs.vapi.ai/api-reference/calls/create?playground=%2Fapi-reference%2Fassistants%2Fcreate