get call analysis with 200 response?
# support
t
1. Would be much more convenient to get the response including the call id and the recording and everything and the analysis of the schema ranking etc etc with the original create call request , instead of creating another separate call to get it, 2. is there a get call id request to get the plan analysis object??
v
@TheSnowguru 1. I understand the convenience of having all the information bundled together with the original create call request. However, the process typically involves separate steps to ensure each part of the service is handled correctly and to manage the load on the system efficiently. If you're looking for a more streamlined process, I can pass on your feedback to our development team to consider for future updates. 2. Currently, there isn't a direct request to get the call ID with the plan analysis object. The call ID is usually returned as part of the initial call creation response, and then you would use that ID to request further details or analysis. If you need assistance with retrieving the call ID or the analysis object, please let me know, and I can guide you through the process or provide further support.
You can continue this conversation by mentioning me in the message.
t
Ok how to get the call analysis object, example
v
Got it. Tagging @User for additional help.
t
@Vapi
v
@TheSnowguru To retrieve the call analysis object, you would typically need to make a separate API request after the call has been completed. This request would use the call ID that was returned from the original call creation. Here's a general example of how you might retrieve the call analysis: 1. Ensure you have the call ID from the original call creation response. 2. Use the call ID to make a GET request to the API endpoint that provides call analysis. The endpoint might look something like
/api/calls/{callId}/analysis
. 3. The API will return the analysis object for the call associated with the provided call ID. Please note that the exact endpoint and method to retrieve the call analysis can vary depending on the API you are using. If you need the specific steps or commands for VAPI, please let me know, and I can provide more detailed instructions or check if there's a function available to assist with this process.
t
@Vapi are you sure its get request???
v
@TheSnowguru Please ask support for more info on this.
t
Also the response of create call requests send for every sentence a response to the api which is useless , why can't I get just the when the call has ended??? @User is there a way to do that?
@Vapi how many concurrent calls in non enterpise account?
v
@TheSnowguru For non-enterprise accounts, you are provided with up to 10 concurrent calls. If you require more than this limit, you would need to consider upgrading to an enterprise account, which allows for scaling up to millions of concurrent calls according to your needs. If you have any further questions or require assistance with managing your concurrent calls, please feel free to ask.
s
1. is not possible to get by create call request 2. yeah that not possible to get only analysis object
t
@Vapi do i need to add to my system prompt the request to handle the schema key values, or its not really needed cause i have a prompt for the structuredschema?
v
@TheSnowguru If you have already set up a custom structured data schema using the
structuredDataSchema
property, your system should be able to handle the schema key values based on the defined schema. The prompt for the structured schema defines the expected data types and required fields, so as long as your system is designed to validate and process data according to this schema, you wouldn't need to add additional prompts to handle the schema key values. The structured data schema acts as a template that ensures the data you receive or send adheres to a specific format. If your system is already equipped to deal with the data according to this template, no further action is required on your part for handling schema key values. However, if you find that your system requires additional information or specific handling instructions for the data, you may need to update your system prompts accordingly.
t
@Vapi using the api to send_sms tool , how do i actually make it work while on a call? i don't get it, whatto do?
v
@TheSnowguru To send an SMS while on a call using the API, you would typically need to make an API request to the
send_sms
endpoint. This can be done programmatically from your backend system. Here's a general outline of the steps you would follow: 1. During the call, your application detects a condition or receives a command that triggers the need to send an SMS. 2. Your backend service prepares the API request to send an SMS. This request will include the recipient's phone number, the message to be sent, and any other required parameters such as your API credentials. 3. The backend service sends the API request to the
send_sms
endpoint. 4. The API processes the request and sends the SMS to the specified recipient. 5. The API returns a response to your backend service, indicating the success or failure of the SMS sending attempt. It's important to ensure that your backend service is capable of handling API requests and that you have the necessary permissions and credits (if applicable) to send SMS messages through the API. If you need specific instructions or have any questions about parameters or the API endpoint, please let me know, and I can provide further assistance.
t
I am on a call with agent, now the agent wants to send sms, he triggers the tool send_sms , which has an endpoint that gets' 3 parameters , how do I attach those values to the call? its not clear @Vapi
s
@TheSnowguru please create a new support ticket for this.
2 Views