Stephen
01/06/2025, 4:17 PMVapi
01/06/2025, 4:19 PMphoneNumberId
as a variable to your assistant, which can then be used in the webhook to filter the Supabase call. Here's how you can do it:
1. Ensure that your assistant is configured to accept a variable for the phoneNumberId
.
2. When you send the request to the /call/phone
endpoint, include the phoneNumberId
in the variableValues
within the assistantOverrides
.
Here's an example of how your JSON payload should look:
json
{
"assistantId": "your-assistant-id",
"assistantOverrides": {
"variableValues": {
"phoneNumberId": "the-specific-phone-number-id"
}
}
}
Replace "the-specific-phone-number-id"
with the actual ID of the phone number that was called. This ID will then be accessible in your assistant, and you can use it in your webhook to filter the Supabase database query for the correct property management company.
If you need to send this request now, please provide me with the specific phoneNumberId
you want to use, and I'll help you dispatch the request. If you're unsure about the phoneNumberId
or any other parameters, please ask support for more info on this.Vapi
01/06/2025, 4:19 PMStephen
01/06/2025, 4:20 PMShubham Bajaj
01/08/2025, 9:45 AMcall.phoneNumberId
. Do let me know if you require further help!!
https://cdn.discordapp.com/attachments/1325860793438306375/1326487020260032564/Screenshot_2025-01-08_at_15.15.00.png?ex=677f9ace&is=677e494e&hm=b3bdcccb03749058f577b9e75477e47e76ffb895754918247fd39a25a26191a2&Stephen
01/09/2025, 8:16 PM