Atlas
01/28/2025, 7:24 PMVapi
01/28/2025, 7:26 PMVapi
01/28/2025, 7:26 PMasync: true
), you will need to configure the parameters for that specific tool accordingly. Since you have not provided the exact toolIds or the context in which they are used, I can't give you a precise code snippet.
However, the general approach would be to set the async
parameter to true
in the configuration of the tool that requires asynchronous operation. Here's a conceptual example:
javascript
// Assuming toolId1 requires default synchronous operation and toolId2 requires asynchronous operation.
const toolId1Config = {
// ... other parameters for toolId1
};
const toolId2Config = {
// ... other parameters for toolId2
async: true // Setting async to true for this tool
};
// Now you would use these configurations in the API call or function call for each tool.
If you can provide me with the specific details or if you need to call a function with these configurations, I can assist you further.vstar
01/28/2025, 7:28 PMVapi
01/28/2025, 7:28 PM2da5ce83-b311-4f71-be5f-78d8559065bf
passes the call data into your CRM asynchronously, you would typically set the async
parameter to true
within the configuration of the API call associated with this tool. However, since I don't have the specific details of the API or function you're using, I'll provide a general example:
javascript
// Configuration for the tool to pass data to CRM asynchronously
const toolConfig = {
toolId: "2da5ce83-b311-4f71-be5f-78d8559065bf",
async: true, // This ensures the operation is performed asynchronously
// ... include other necessary parameters for the tool
};
// Now you would use this configuration in the API call or function call for the tool.
If this tool is part of a specific API or function that you are calling through VAPI, please provide the details of the API or function, and I can guide you on how to set the async
parameter correctly within that context. If there's a specific function you need to call with this configuration, please let me know so I can assist you further.vstar
01/28/2025, 7:35 PMVapi
01/28/2025, 7:35 PMasync
parameter for the tool with ID 2da5ce83-b311-4f71-be5f-78d8559066bf
to true
, you would modify the tools
array by adding a configuration object for that tool. Here's how you can integrate it:
json
{
"temperature": 0.1,
"toolIds": [
"28ac2a2d-5454-4390-b0b0-d9a97baf0b73",
"2da5ce83-b311-4f71-be5f-78d8559066bf"
],
"tools": [
{
"type": "transferCall",
"async": false,
"destinations": [
// ... your existing destination configurations
]
},
{
"toolId": "2da5ce83-b311-4f71-be5f-78d8559066bf",
"async": true,
// ... any additional configuration specific to this tool
}
]
}
In this example, I've added a new object to the tools
array for the tool with the ID 2da5ce83-b311-4f71-be5f-78d8559066bf
and set its async
property to true
. This indicates that when this tool is called, it should perform its operation asynchronously.
Please ensure that the additional configuration required for this tool (such as endpoints, data to be passed, etc.) is included where I've commented // ... any additional configuration specific to this tool
.
If you need further assistance with the specific configuration or have other questions, feel free to ask!vstar
01/28/2025, 7:38 PMVapi
01/28/2025, 7:38 PMtype
field for each tool in the tools
array must be one of the specified values. It seems that the configuration object I provided earlier was missing the type
field, which is required.
Let's correct that by adding the type
field with an appropriate value for the tool you're configuring. Since you want to pass call data into your CRM, you might be using a function
type or another relevant type depending on the operation you're performing. Here's an updated example with the type
field included:
json
{
"temperature": 0.1,
"toolIds": [
"28ac2a2d-5454-4390-b0b0-d9a97baf0b73",
"2da5ce83-b311-4f71-be5f-78d8559066bf"
],
"tools": [
{
"type": "transferCall",
"async": false,
"destinations": [
// ... your existing destination configurations
]
},
{
"type": "function", // Assuming the tool is a function type
"toolId": "2da5ce83-b311-4f71-be5f-78d8559066bf",
"async": true,
// ... any additional configuration specific to this tool
}
]
}
Please replace "type": "function"
with the correct type for the operation you're trying to perform with the tool 2da5ce83-b311-4f71-be5f-78d8559066bf
. If it's not a function, use the appropriate type from the list provided in the error message.
If you're unsure about the type of operation that corresponds to passing call data into your CRM, you may need to consult the documentation for the API or service you're using, or reach out to their support for more information.vstar
01/28/2025, 7:40 PMVapi
01/28/2025, 7:40 PMtoolId
property should not be present in the tools
array. Instead, each tool configuration should only contain the properties that are specific to the type of tool you are using.
Since you're trying to configure a function, you should not include toolId
in the configuration. Instead, you should specify the function name and any parameters it requires. Here's how you might adjust the configuration:
json
{
"temperature": 0.1,
"toolIds": [
"28ac2a2d-5454-4390-b0b0-d9a97baf0b73"
// Removed the second toolId since it should not be specified here
],
"tools": [
{
"type": "transferCall",
"async": false,
"destinations": [
// ... your existing destination configurations
]
},
{
"type": "function",
"functionName": "YourFunctionNameHere", // Replace with your actual function name
"async": true,
"parameters": {
// ... any parameters your function requires
}
}
]
}
In this updated configuration:
- I've removed the toolId
from the tools
array.
- I've added a placeholder for functionName
which you should replace with the actual name of the function you want to call.
- The parameters
object should contain any parameters that your function requires to operate.
Please ensure that you replace "YourFunctionNameHere"
with the actual name of the function you're trying to call and fill in the parameters
with the correct values as needed.
If you're still unsure about the correct configuration, please consult the documentation for the API or service you're using, or reach out to their support for more detailed guidance.vstar
01/28/2025, 7:41 PM{
"message": [
"assistant.model.each value in tools.property functionName should not exist"
],
"error": "Bad Request",
"statusCode": 400
}
@Shubham Bajaj can you help with this?Shubham Bajaj
01/29/2025, 10:17 AMvstar
02/01/2025, 7:49 AMShubham Bajaj
02/03/2025, 5:15 AM