drfrex
08/22/2025, 1:08 AMAI Evy
08/22/2025, 1:08 AMAI Evy
08/22/2025, 1:08 AMllm_websocket_url . Your LLM server needs to handle this WebSocket connection and follow the communication protocol to exchange messages with Retell's system [(1) ]() [(2) ]() .
To set up a Custom LLM URL, you need to:
1. Create a WebSocket server endpoint (like /llm-websocket/) on your backend [(2) ]()
2. Deploy your server to get a production URL, or use ngrok for local testing
3. The final URL format would be something like wss://your_domain_name/llm-websocket/ or wss://xxxxx.ngrok-free.app/llm-websocket/
When creating agents via API, the llm_websocket_url parameter is required [(3) ]() . For Retell's built-in LLMs, you would first need to get the LLM websocket URL from the list-retell-llms API call, then use that URL when creating the agent .
The Custom LLM integration allows you to use your own language model while Retell handles the voice processing and telephony aspects [(1) ]() .AI Evy
08/22/2025, 1:08 AMAI Evy
08/22/2025, 1:08 AMAI Evy
08/22/2025, 1:09 AM