Need to include metadata in webhook data
# office-hours
n
Hi, Vapi teams
s
cc: @Kings_big💫 @Praveen
k
How can we assist you?
n
I found that there are many cases that is required to use metadata like assistant
variableValues
.
This is really required thing you have to implement.
for example, while using vapi assistant for daily report, ...
we need to refer which workers and projects are related for this call after the call ended.
the worker and project info are saved in db
so it's better to share such ids from starting the call and webhook data
via variableValues content or something other
like context concept in openai agent sdk
currently, how can I try to implement this?
k
To track workers and projects daily report calls, pass their IDs via variableValues or metadata at call start, reference them with {{...}} in prompts to bind them, then capture the values from webhook events like end-of-call-report to store in your database.

https://www.youtube.com/watch?v=zZEbWqfK9sUâ–¾

n
No, no
I know about it
I mean after the call or when the webhook is called
k
Send end-of-call-report webhook containing variableValues like workerId and projectId, which you can extract in your webhook handler and store in your database along with the summary and transcript..
n
as you know, there is no field related to
variableValues
.
for webhook data
k
Retrieve them by making a GET request to /call/{call.id} shortly after the webhook is triggered..
n
Hi, teams
we need to handle it in its own webhook data.
I think this is really necessary case you should try to implement.
@Vapi