Zach Sweedler
09/11/2024, 6:46 PMVapi
09/11/2024, 6:47 PMcall.start
event.
2. **Server Endpoint**: Ensure your server has an endpoint ready to handle requests from the webhook and return the necessary data.
3. **Fetch Configuration**: When the call starts, the webhook will make a request to your server's endpoint.
4. **Store Variables**: Once the data is fetched, store it in the call context so that it's accessible throughout the call.
5. **Reference Variables**: Use the stored variables as needed during the call.
Would you like assistance in setting up the webhook or any other part of this process?Vapi
09/11/2024, 6:47 PMZach Sweedler
09/11/2024, 6:49 PMVapi
09/11/2024, 6:49 PMcall.start
.
4. **Handle Incoming Data**: When your endpoint receives a request, it should process the data accordingly and return the dynamic variables you need for the call.
5. **Test Your Webhook**: Make sure to test your webhook thoroughly to ensure it's triggered as expected and that your server handles the requests correctly.
If you need more detailed instructions or have specific questions about any of these steps, please let me know!Zach Sweedler
09/11/2024, 6:50 PMVapi
09/11/2024, 6:51 PMcall.start
.
5. **Save and Activate Webhook**: After entering the necessary details, save the webhook configuration. It may need to be activated or enabled if it's not done automatically upon saving.
6. **Test the Webhook**: Ensure that the webhook is working correctly by initiating a call and checking if your server endpoint receives the request.
If you're unable to find the option to configure webhooks on the dashboard or if you need more specific guidance, please refer to the VAPI documentation or ask support for more info on this.Zach Sweedler
09/11/2024, 6:52 PMZach Sweedler
09/11/2024, 7:29 PMVapi
09/11/2024, 7:29 PMjson
{
"functionName": {
"parameters": {
"phoneNumber": "{{caller_number}}"
}
}
}
In this example, {{caller_number}}
would be replaced with the actual phone number of the caller when the function is executed.
Please note that the exact syntax for referencing system variables can vary depending on the VAPI platform you are using. If you need the exact method to reference a system variable in function parameters for your specific VAPI platform, please ask support for more info on this.Zach Sweedler
09/11/2024, 7:37 PMShubham Bajaj
09/11/2024, 10:00 PM