assistant does not update after receiving server u...
# support
a
I setuped a make scenario : a webhook as global server url, if call is received, it check if user data exist based on customer number and return a 200 response with all infos like : { "assistant": { "firstMessage": "Hey Ryan, how are you?", "model": { "provider": "openai", "model": "gpt-3.5-turbo", "messages": [ { "role": "system", "content": "You're Ryan's assistant..." } ] } } } but assistant does not update
v
@Ash the dev adventurer It sounds like you've set up a webhook to handle incoming calls and provide a personalized assistant configuration based on the customer number. If the assistant is not updating as expected, there could be several reasons for this issue: 1. The webhook might not be receiving the correct customer number to look up the user data. 2. The database query within the webhook might not be functioning correctly or returning the expected results. 3. There could be an issue with the way the response is being formatted or sent back to the calling service. 4. The service that is supposed to update the assistant configuration might not be handling the webhook's response correctly. To assist you further, I would need to check the specific details of the call object and the logic implemented in your webhook. If you can provide the call object or more details about the current setup, I can help you troubleshoot the issue more effectively.
You can continue this conversation by mentioning me in the message.
a
@User @User here what my webhook is sending back, user is fetch correctly and [first_name] is being replaced correctly, but still does not work when I call the inbound number, assistant say "Hello First name": [ { "body": "{\n \"assistant\": {\"name\":\"Ava\",\"model\":{\"model\":\"gpt-3.5-turbo\",\"messages\":[{\"role\":\"system\",\"content\":\"talk about life\"}],\"provider\":\"openai\",\"temperature\":0.7},\"voice\":{\"voiceId\":\"sarah\",\"provider\":\"11labs\",\"stability\":0.5,\"similarityBoost\":0.75},\"serverUrl\":null,\"transcriber\":{\"model\":\"general\",\"language\":\"en\",\"provider\":\"deepgram\"},\"firstMessage\":\"Hello Ryan, this is Ava. How may I assist you today?\",\"hipaaEnabled\":null,\"clientMessages\":[\"transcript\",\"hang\",\"function-call\",\"speech-update\",\"metadata\",\"conversation-update\"],\"endCallMessage\":\"Thank you for contacting us. Have a great day!\",\"endCallPhrases\":[\"goodbye\"],\"serverMessages\":[\"end-of-call-report\",\"status-update\",\"hang\",\"function-call\"],\"backgroundSound\":null,\"recordingEnabled\":true,\"voicemailMessage\":\"You've reached our voicemail. Please leave a message after the beep, and we'll get back to you as soon as possible.\",\"endCallFunctionEnabled\":null,\"dialKeypadFunctionEnabled\":null}\n}", "status": 200, "headers": [ { "key": "Content-Type", "value": "application/json" } ] } ]
s
@Ash the dev adventurer can you describe your issue.
a
@User Hey, yes I setuped a make scenario : a webhook as global server url, if call is received, it check if user data exist based on customer number and return a 200 response with all infos. but assistant does not update. here what my webhook is sending back, user is fetch correctly and [first_name] is being replaced correctly, but still does not work when I call the inbound number, assistant say "Hello First name": [ { "body": "{\n \"assistant\": {\"name\":\"Ava\",\"model\":{\"model\":\"gpt-3.5-turbo\",\"messages\":[{\"role\":\"system\",\"content\":\"talk about life\"}],\"provider\":\"openai\",\"temperature\":0.7},\"voice\":{\"voiceId\":\"sarah\",\"provider\":\"11labs\",\"stability\":0.5,\"similarityBoost\":0.75},\"serverUrl\":null,\"transcriber\":{\"model\":\"general\",\"language\":\"en\",\"provider\":\"deepgram\"},\"firstMessage\":\"Hello Ryan, this is Ava. How may I assist you today?\",\"hipaaEnabled\":null,\"clientMessages\":[\"transcript\",\"hang\",\"function-call\",\"speech-update\",\"metadata\",\"conversation-update\"],\"endCallMessage\":\"Thank you for contacting us. Have a great day!\",\"endCallPhrases\":[\"goodbye\"],\"serverMessages\":[\"end-of-call-report\",\"status-update\",\"hang\",\"function-call\"],\"backgroundSound\":null,\"recordingEnabled\":true,\"voicemailMessage\":\"You've reached our voicemail. Please leave a message after the beep, and we'll get back to you as soon as possible.\",\"endCallFunctionEnabled\":null,\"dialKeypadFunctionEnabled\":null}\n}", "status": 200, "headers": [ { "key": "Content-Type", "value": "application/json" } ] } ]
s
@Ash the dev adventurer share the call id, I don't see any problem here.
Your saying assistant is not updating but your not passing any dynamic data.
a
here is the call id : 08451d02-2c16-4ded-b90d-88c37ca291bc
s
Please check the following document for using dynamic variables/values https://docs.vapi.ai/assistants/dynamic-variables and replace the variables as mentioned over here and then later pass it using assistantOverrides.
a
This is only working for outbound call right ? In my case I am using inbound call
s
it works for inbound as well
9 Views