Dennis
09/20/2024, 5:57 PMVapi
09/20/2024, 5:58 PMassistant-request message type to retrieve the assistant based on the caller's phone number. Here's what you need to do:
1. When an inbound call is received, Vapi will send an assistant-request message to your server with the call object.
2. Your server should then respond with a JSON object containing the assistant and include the variableValues object with the caller_phone_number variable set to the caller's phone number.
For example, your server's response might look like this:
json
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"caller_phone_number": "caller's phone number here"
}
}
}
To include the caller's phone number in the end-of-call report sent to the webhook, you'll need to ensure that your system captures this information during the call and includes it in the call report payload. If your current setup does not capture the caller's phone number, you may need to modify your call handling logic to include this information.
If you need further assistance with setting this up or have any other questions, please let me know!Vapi
09/20/2024, 5:58 PMChowderr
09/20/2024, 6:12 PMChowderr
09/20/2024, 6:13 PMDennis
09/20/2024, 8:41 PMDennis
09/20/2024, 8:42 PMChowderr
09/20/2024, 8:49 PMDennis
09/20/2024, 9:02 PMDennis
09/20/2024, 9:04 PMDennis
09/20/2024, 9:08 PMChowderr
09/20/2024, 9:37 PMChowderr
09/20/2024, 9:37 PMDennis
09/20/2024, 9:40 PMDennis
09/20/2024, 9:40 PMDennis
09/20/2024, 9:40 PMAurora
09/20/2024, 9:42 PMDennis
09/20/2024, 9:43 PMAurora
09/20/2024, 9:44 PMDennis
09/22/2024, 3:09 PMDennis
09/22/2024, 3:10 PMChowderr
09/22/2024, 3:12 PMDennis
09/22/2024, 3:13 PMChowderr
09/22/2024, 3:14 PM