Get call info into webSDK
# support
e
Hello, I have added the voice widget to my site https://docs.vapi.ai/examples/voice-widget I have asked it to listen for all client messages being sent, but there is no data in any of those messages like conversation-update, metadata, transcript etc. that can be used to identify the call. Something like call ID etc. How can I get this info sent to the SDK as well?
v
@eric11 Hello! I'm glad to hear you've integrated the voice widget on your site. To receive additional information such as a call ID, you can configure your server to receive webhooks from VAPI. When a call event occurs, VAPI can send a webhook to your server with details about the call, including a unique call ID and other metadata. To ensure that your server receives this information, you'll need to set up a server URL in your VAPI dashboard where VAPI can send the webhook requests. Additionally, you can set a
serverUrlSecret
to secure the communication between VAPI and your server. Once you have your server URL and secret set up, VAPI will send a POST request with a JSON payload to your server for each call event. The JSON payload will include the call ID and any associated metadata. If you have already set this up but are not receiving the expected data, please double-check your server configuration and the webhook settings in your VAPI dashboard. If everything seems to be configured correctly but you're still facing issues, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
e
Correct that I can get the call ID etc into a server via the webhook, but since I have no identifying info in sdk not sure how I can merge the two
s
go to vapi dashboard select the assistant then go to advance tab and select client messages required and then use the asisstant you will get the client messages.
4 Views