Metadata doesn't show in logs
# support
g
I'm storing two string values in metadata, it's working as the webhook is successfully retrieving tham. In the logs section of Vapi, I only see two empty strings in every call. https://cdn.discordapp.com/attachments/1256973440330633246/1256973440712446093/Capture_decran_2024-06-30_a_16.02.06.png?ex=6682b73d&is=668165bd&hm=ef7907b42e2b605c4315e059b76d71cc9df3f216685517897f7a72e5dc2a2477&
v
@Godefroy @Lonestone It's great to hear that your webhook is successfully retrieving the metadata. If you're seeing two empty strings in the logs for every call, it might be due to the metadata not being set correctly before the call is logged, or there could be an issue with the way the metadata is being captured or displayed in the logs. To troubleshoot this issue, you can: 1. Verify that the metadata is being set with the correct values before the call is logged. 2. Check if there is any code that might be overwriting the metadata with empty strings before the logging occurs. 3. Review the logging configuration to ensure that metadata is being included correctly. 4. If you have access to the code that sets the metadata, add additional logging there to confirm the values are as expected before they are sent to Vapi. If you've already checked these points and the issue persists, please provide more details or the relevant code snippets, so I can assist you further. If you need more specific help with the Vapi logs, you might want to reach out to their support for more detailed assistance.
You can continue this conversation by mentioning me in the message.
s
call_id pls
g
Every call, for example: b08f4440-c6e8-44bc-86fb-eafabc15bd2a 3e55aabf-0d0d-4474-ad5c-7224c7d5bad4 09c77e61-9a26-47ec-88c0-331c5acae8b7
s
you need to pass the medata property via API then it will be visible.
g
Why? That's confusing and I didn't find any documentation explaining that. In my webapp it's the client that set the metadata and my webhook is receiving it well.
s
Let me explain to you about metadata, it is basically a parameter used to store certain data which is related to your usage. For example: you want to have a client_id associated with the user who is making a call it is useful for your use case to figure out the data related to him.
Also, to add it you will need to pass it via metadata property https://docs.vapi.ai/api-reference/calls/create-call
g
I'm not using the /call endpoint but the
start
method of web sdk
s
Okay. Then you can add it on the start method, you have to pass the metadata inside the assistant configuration.
g
That what I did. It's working: my webhook is receiving it back. But the dashboard shows empty values.
s
Can you send the demo link in DM?