Sending assistant-request to ServerURL without org...
# support
z
Is there a way to send an "assistant-request" to a ServerURL when making a call via the web or without having to store the server URL in the organization's settings when calling with a phone number? The background is that we want to build multiple dynamic voice agents for an organization, each of which should trigger different webhooks. If the "assistant-request" is triggered via the organization's ServerURL when no assistant is assigned to a number, there is no way to send requests to different servers. Do you have any other ideas for using dynamic variables in inbound calls without relying on an "assistant-request"?
v
@Zwigge Yes, you can send an "assistant-request" to a specific ServerURL without having to store the server URL in the organization's settings. When making a call via the web or with a phone number, you can override the default ServerURL by providing a
serverUrl
parameter in the call object. This allows you to specify a different webhook endpoint for each call, enabling you to build multiple dynamic voice agents that trigger different webhooks. Here's how you can do it: 1. Include the
serverUrl
parameter in the call object when initiating the call. This URL will be used for the "assistant-request" instead of the one stored in the organization's settings. 2. If you have a secret associated with the
serverUrl
, you can also include
assistantOverrides.serverUrlSecret
in the call object to ensure secure communication with the webhook endpoint. By using these parameters, you can dynamically set the webhook endpoint for each call, allowing for a flexible and scalable solution for handling inbound calls with different requirements. If you need to execute this now, please provide me with the necessary
serverUrl
and any other relevant parameters, and I can help set up the call for you. If you have any further questions or need assistance with another approach, feel free to ask!
You can continue this conversation by mentioning me in the message.
z
@User Can you explain that in more detail?
s
fixed.
3 Views