vapi.start(assistantId, assistantOverrides); cachi...
# support
d
I am reposting because it was marked it as solved and it is not. I used the example that your docs gave and it is not working. The only reason I need these variables is to grab them when you guys do the callback. I get the call id and then do a GET to retrieve the call and then log the call into my system. I need to insert a userId and organization dynamically when I make the call. I gave you a couple of examples where the variables were not changing. c621cbea-9933-41dc-948c-b679639ab13f 34cd31c1-d42c-47f5-a3cf-55641d6f4757 I would also like to update the prompt and the voice dynamically as well, but let's solve this issue first. Thank you for your help!
v
@deathless I'm sorry to hear that you're experiencing issues with the dynamic variables not updating as expected. Let's work through this together to resolve the issue. To ensure that I can assist you effectively, could you please provide me with the specific details of how you're currently setting the dynamic variables when making the call? This will help me understand where the problem might be occurring. Additionally, if you could share the exact format or code snippet you're using to pass the variables, that would be very helpful. Once I have this information, I'll do my best to guide you through the correct process to ensure that your userId and organization are inserted dynamically as intended. Regarding updating the prompt and the voice dynamically, we can certainly look into that once we've resolved the current issue with the variables. Please provide the necessary details, and we'll move forward from there.
You can continue this conversation by mentioning me in the message.
s
You won't get it in end of call report instead you have to make a GET /call/:id endpoint to get these variables.
d
I understand that
What I need is the ability to put dynamic variables into the call
{ "assistantId": "your-assistant-id", "assistantOverride": { "variableValues": { "name": "Michael" }, "metadata": { "userId": "userId", "organization": "CogniTrainer", "test": "1234", "requestId": "unique-request-id" // Add a unique request ID here } } }
I am having caching issues
For example, these are being cached even if I send in different values: "name": "Michael" and "userId": "userId",
s
can you share two call ids where values are being cache when you made the GET /call/:id request.
6 Views