I am trying to get certain data from an AI generated phone call. I am using a VAPI(watch end of call report) webhook. None of the fields that I want appear in the module.
When the call finished, the webhook log file shows that 98 entries were entered in from that 40 second phone call. Not sure if this is normal…
When I look at the most recent log file it actually does show the data that was gathered from the phone call. But how do I get that data to the module so that I can use it in a scenario?
vapi log file with data highlighted.docx (19.2 KB)
{
“message”: {
“type”: “end-of-call-report”,
“endedReason”: “assistant-said-end-call-phrase”,
“transcript”: “AI: Thank you for calling. Can I get your name and email?\nUser: Yes. It’s William McKinley.\nAI: Thank you. William McKinley, Can you please provide me with your email address?\nUser: It’s president 25 at g mail dot com.\nAI: Thank you, William McKinley. Just to confirm, your email address is president 25 at Gmail dot com, Correct?\nUser: Yes.\nAI: Thank you, William McKinley. For providing your information. Someone will be reaching out to you soon. Goodbye.\n”,
“summary”: “That looks great! You’ve successfully gathered the necessary information. If you need any further assistance or have any questions, feel free to ask!”,
“messages”: [
{
“role”: “system”,
“message”: “#Role: (Who they are)\n\nYou are an experienced helpdesk assistant.\nYour role is to answer the phone and get the persons name and email address.\n\n#Task: (What they do)\n\nYour task is to converse with the customer to acquire information. Your mission is to get the first and last name along with their email address. Insist that they give you all the information. Confirm the information each time after they give it to you. \n\n#Specifics: (How they do it)\n\nUse concise words with no filler words. \nBefore you hang up you will confirm that all the information is correct then let the caller know that someone will be reaching out to them. When you are finished with the call you will say "Goodbye".\n\n#Context:\n\n## The business:\n\nWe are the largest widget manufacturer in the world.\n\n## What we do: \n\nWe sell widgets to fortune 500 companies.\n\n\n\n”,
“time”: 1720800584039,
“secondsFromStart”: 0
},
{
“role”: “bot”,
“message”: “Thank you for calling. Can I get your name and email?”,
“time”: 1720800586244,
“endTime”: 1720800588504,
“secondsFromStart”: 2.08,
“source”: “”
},
{
“role”: “user”,
“message”: “Yes. It’s William McKinley.”,
“time”: 1720800589684,
“endTime”: 1720800591384.0002,
“secondsFromStart”: 5.52,
“duration”: 2.0099998
},
{
“role”: “bot”,
“message”: “Thank you. William McKinley, Can you please provide me with your email address?”,
“time”: 1720800593424,
“endTime”: 1720800597624,
“secondsFromStart”: 9.26,
“source”: “”
},
{
“role”: “user”,
“message”: “It’s president 25 at g mail dot com.”,
“time”: 1720800599454,
“endTime”: 1720800601464,
“secondsFromStart”: 15.29,
“duration”: 2.6499996
},
{
“role”: “bot”,
“message”: “Thank you, William McKinley. Just to confirm, your email address is president 25 at Gmail dot com, Correct?”,
“time”: 1720800603044,
“endTime”: 1720800609944,
“secondsFromStart”: 18.88,
“source”: “”
},
{
“role”: “user”,
“message”: “Yes.”,
“time”: 1720800610794.001,
“endTime”: 1720800611294.001,
“secondsFromStart”: 26.630001,
“duration”: 3.7299995
},
{
“role”: “bot”,
“message”: “Thank you, William McKinley. For providing your information. Someone will be reaching out to you soon. Goodbye.”,
“time”: 1720800612783.999,
“endTime”: 1720800618454,
“secondsFromStart”: 28.619999,
“source”: “”
}
],
“analysis”: {
“summary”: “That looks great! You’ve successfully gathered the necessary information. If you need any further assistance or have any questions, feel free to ask!”,
“structuredData”: {
“CallersEmail”: “president25@gmail.com”,
“CallersLastName”: “McKinley”,
“CallersFirstName”: “William”
},
“successEvaluation”: “Evaluation Result:\n\n1. Callers first name: Acquired\n2. Callers last name: Acquired\n3. Callers email address: Acquired”
},
“recordingUrl”: “https://auth.vapi.ai/storage/v1/object/public/recordings/8c5bb930-d2ee-404f-8fa2-4baf5e6aed41-1720800620566-1604774c-83f2-451e-90f1-b4971e4b9d82-mono.wav”,
“stereoRecordingUrl”: “https://auth.vapi.ai/storage/v1/object/public/recordings/8c5bb930-d2ee-404f-8fa2-4baf5e6aed41-1720800620566-4e7aaebf-6088-46a3-a20f-a2fc943fba25-stereo.wav”,
“call”: {
“id”: “8c5bb930-d2ee-404f-8fa2-4baf5e6aed41”,
“orgId”: “547e8f06-faac-405f-bba2-8254f9515a43”,
“createdAt”: “2024-07-12T16:09:40.830Z”,
“updatedAt”: “2024-07-12T16:09:40.830Z”,
“type”: “webCall”,
“status”: “queued”,
“assistantId”: “440d10ac-76dd-40bc-84b4-2c78d3c53c3c”,
“webCallUrl”: “https://vapi.daily.co/XSNl5KbCx4PF5FGxp6RV”
},
“artifact”: {
“messages”: ,
“messagesOpenAIFormatted”:
},
“timestamp”: “2024-07-12T16:10:24.550Z”
}
}