send data to end of call report
# support
b
I need to send some data along side with the end of call report.
v
@binaryruel Certainly! To send additional data with the end-of-call report, you'll need to include that data in the POST request body along with the standard report information. Could you please specify the additional data you would like to send? This way, I can assist you in structuring the request correctly.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
b
In my propmt, I have [For Rebooking Appointments] 1. Ask for their full name. 2. Verify their phone number. 3. Ask what date and time they wanted to rebook. 4. Tell the caller that you saved the information and send it out to the front desk. 5. Tell them that someone will call them to confirm the rebooking. 6. End the call politely. @Vapi
v
@binaryruel Great, it sounds like you're looking to implement a voice-driven process for rebooking appointments. If you're ready to proceed with this, I can guide you through each step. Once we have the necessary information, we can book the appointment accordingly. Let's start with the first step: Could you please provide the full name for the rebooking?
b
In my propmt, I have
Copy code
[For Rebooking Appointments]
Ask for their full name.
Verify their phone number.
Ask what date and time they wanted to rebook.
Tell the caller that you saved the information and send it out to the front desk.
Tell them that someone will call them to confirm the rebooking.
End the call politely.
I need to send the full name, phone number and date and time to the end-of-call-report. @Vapi
v
@binaryruel Understood. To include the full name, phone number, and the new date and time for the rebooking in the end-of-call-report, you will need to collect this information during the call. Once you have these details, you can append them to the end-of-call-report message before sending it to the server URL. Here's an example of what the message might look like with the additional data:
Copy code
json
{
    "message": {
        "type": "end-of-call-report",
        "endedReason": "hangup",
        "call": { /* Call Object */ },
        "rebookingDetails": {
            "fullName": "John Doe",
            "phoneNumber": "123-456-7890",
            "rebookDate": "2023-05-15",
            "rebookTime": "14:00"
        }
    }
}
Please ensure that you collect and validate the full name, phone number, and the desired date and time during the call. Once the call ends, you can compile this information into the end-of-call-report and send it to the server URL as specified. Would you like to proceed with this process?
b
How can I do this on the VAPI assistant UI dasboard? @Vapi
v
@binaryruel To send additional data with the end-of-call report using the VAPI assistant UI dashboard, you'll need to follow these steps: 1. **Collect the Data**: During the call, use your voice application to ask for and collect the caller's full name, phone number, and the date and time they want to rebook their appointment. 2. **Store the Data**: Temporarily store this collected information in your application's session or state management system. 3. **Configure the Endpoint**: Ensure that you have an endpoint on your server set up to receive the end-of-call report. This endpoint URL should be added to the Server URL field in the Account page on the VAPI Dashboard. 4. **Prepare the Data**: At the end of the call, prepare a JSON object with the collected data, as shown in the previous example. 5. **Send the Data**: Use the VAPI Dashboard to configure the end-of-call webhook to send the JSON object to your server's endpoint. This is typically done by setting up the webhook payload with the necessary fields that include the collected data. If you need specific guidance on where to input this data on the VAPI assistant UI dashboard, please refer to the documentation provided with the dashboard or reach out to the support team for a step-by-step walkthrough. If there are any specific features or settings you're unsure about, I'm here to help clarify them for you.
s
@binaryruel check call analysis section, strucutred data.
5 Views