Pass client id to VAPI and vapi to server url?
# support
m
My client has id..is it possible to pass that id so when vapi does post message to server url, I can see which transcript belongs to what client id? Essentially use case is to connect dots between transcript and client
v
Hi @mamaboyinstreets, I'm an AI assistant for Vapi. While a team member reviews this question, I'll look through relevant sources and see if I can provide suggestions. Please tag @Vapi Support with any follow-up questions.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Get Assistant]() * [Delete Assistant]() * [Create Assistant]() * [Update Assistant]() -----------------------------
### Answer To connect a client ID with transcripts in the context of Vapi and your server URL, you can consider embedding the client ID within the metadata of your assistant configuration or call setup. While the specific details about passing a "client ID" directly are not explicitly outlined in the provided documentation, you can utilize the
metadata
field that exists both in the assistant configuration [(1)]() and in the call setup [(2)]() . This
metadata
is designed for associating arbitrary data (such as a client ID) with your assistants or calls, and it will be included in messages sent to your server URL. Here's a general idea on how you might structure this: 1. When setting up or updating an assistant, include the client ID in the
metadata
field. 2. Ensure your server is prepared to parse and utilize this
metadata
from the incoming POST requests made by Vapi. This method allows you to maintain a connection between the client ID and the transcripts or actions performed during a call or assistant interaction. Remember, any specific implementation should adhere to the privacy and data handling policies relevant to your application and jurisdiction.
m
how? I have assistant id and vapi as : await vapi.start('fa670-5ae8-4708-b0c1-4e2164'); @Vapi Support
v
Got it. Tagging @User for additional help.
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
s
If I understood your question correctly you want to get the transcript after call is ended correct? @mamaboyinstreets
m
figured out already. Its using metadata. Thanks though!