End of Call Report
# support
d
Hi there, I'm currently successfully storing end of call reports in my db (firebase). But I'm trying to pass a userId so I can link end of call report entries in my db with the user they're for and I'm getting stuck. My idea was to use the metadata field to pass the userId to the agent when it's created (I'm constructing agents on the fly when the user loads the page) and I expected that metadata to be included in the end of call report. So far I'm successfully passing the metadata field into the newly created agent, but I can't get the metadata to come through the end-of-call-report. Is there another way you would go about this? I can't be the only one trying to do this, right? Thank you!
v
message has been deleted
@danemyers Hello! It's great to hear that you're successfully storing end-of-call reports in your database. Regarding your challenge with passing the
userId
and linking it to the end-of-call reports, using metadata is indeed a common approach. If the metadata isn't coming through in the end-of-call report as expected, there might be a few things to check: 1. Ensure that the metadata is being correctly attached to the agent when it's created. It should be in the correct format and field as expected by the API. 2. Verify that the API or system you're using to handle calls is designed to propagate this metadata through to the end-of-call report. There might be specific fields or settings that need to be enabled for this to happen. 3. Check the documentation of the API or service you're using to see if there are any known issues or additional steps required to include metadata in reports. If you've already done all of this and it's still not working, it might be a limitation or a bug in the system. In that case, reaching out to the support team of the service you're using would be the best next step. Alternatively, if the system allows for custom logic or webhooks, you could implement a function that triggers at the end of each call, retrieves the call details along with the metadata, and then manually links it to the user in your database. If you're using VAPI, please ensure that you're following the correct procedure for passing metadata and retrieving it in the end-of-call report. If you need further assistance with the specifics of VAPI, please ask support for more info on this. I hope this helps, and if you have any more questions or need further assistance, feel free to ask!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
d
Wait I was just trying to fall asleep and realized that the end of call is on the call and I'm adding the metadata to the agent. I should probably see if I can add the metadata to the call instead. Don't worry about responding for now! I'll message back if I'm still stuck
s
The End-Of-Call Report may seem old-fashioned, but here's a quick way to get the most up-to-date information. After receiving a request, just wait for 60 seconds and then access the /call/{call_id} endpoint. This will provide you with all the latest data available.
d
Awesome! I did it this way, got it working 🙂
c
15 seconds 🙂 @Sahil. Tell people to put a sleep timer.
11 Views