> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # set_web_hook_url > Override the default webhook URL used for SWAIG function calls in the SWML document. [ref-agentbase]: /docs/server-sdks/reference/python/agents/agent-base Override the default webhook URL used for SWAIG function calls in the generated SWML document. By default, the SDK computes this URL from the agent's host, port, and route. Use this method when your agent is behind a reverse proxy, load balancer, or tunnel (e.g., ngrok) and the auto-detected URL does not match the external address. > **Tip** > > You can also set the `SWML_PROXY_URL_BASE` environment variable to override the base > URL globally without calling this method. ## **Parameters** **`url`** `str` — required The full URL that SignalWire should use to reach this agent's SWAIG endpoints. --- ## **Returns** [`AgentBase`][ref-agentbase] -- Returns self for method chaining. ## **Example** ```python {6} from signalwire import AgentBase agent = AgentBase(name="support", route="/support") agent.set_prompt_text("You are a helpful assistant.") # Agent is behind ngrok agent.set_web_hook_url("https://abc123.ngrok.io/support") agent.serve() ``` > Override the default webhook URL used for SWAIG function calls in the SWML document.