https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> I'm trying to implement Ret...
# ❓・ai-evy-support
g
@AI Evy I'm trying to implement Retell on a Hostinger shared hosting plan. Hostinger doesn't support incoming WebSocket connections, which seems to be required for Retell to connect to my server. How do other customers handle this? Are there any workarounds or alternative approaches for shared hosting that doesn't support WebSockets?
a
Thanks for tagging me @gavinhaughey.. I'll look through relevant sources and get back to you shortly.
### Answer You're correct that WebSocket support is required for custom LLM integration with Retell AI [(1) ]() . The LLM WebSocket endpoint allows Retell to connect directly to your server to get live transcript and responses from your custom LLM . Unfortunately, shared hosting plans that don't support incoming WebSocket connections won't work for custom LLM integration [(2) ]() . The documentation specifically mentions that "Vercel edge functions and serverless functions cannot act as a websocket server" , indicating that platforms without proper WebSocket support are incompatible. For custom LLM integration, you need a server that can handle WebSocket connections at the endpoint
{your-server-websocket-endpoint}/{call_id}
[(1) ]() . The interaction flow requires Retell to initiate the WebSocket connection to your server when starting a call [(3) ]() . Here are alternative approaches you could consider: 1. Use Retell's built-in LLM framework instead of custom LLM integration, which doesn't require WebSocket servers 2. Deploy to a platform that supports WebSockets such as: - Traditional VPS/dedicated servers - Cloud platforms like AWS, Google Cloud, or Azure [(4) ]() - Services that support persistent connections 3. Use ngrok for development/testing - The documentation suggests using ngrok to generate a production URL forwarding requests to your local endpoints for testing [(5) ]() The documentation provides step-by-step guides for setting up
WebSocket servers with Node.js (Express.js) and Python (FastAPI) , but these require hosting environments that support WebSocket connections.
​ To learn more, see the sources I considered: [[1] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) [[2] Troubleshooting Guide](https://docs.retellai.com/integrate-llm/troubleshooting) [[3] Custom LLM Overview](https://docs.retellai.com/integrate-llm/overview) [[4] Websocket reconnect for Cloud Run / Azure Container Apps?](https://discord.com/channels/1186424376300679209/1217936443167608832) [[5] Setup WebSocket Server](https://docs.retellai.com/integrate-llm/setup-websocket-server) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
g
@AI Evy You mentioned using 'Retell's built-in LLM framework' as an alternative that doesn't require WebSocket servers. Can you tell me more about this option and how to implement it? I'm specifically interested in how to use the built-in framework instead of custom LLM integration.
a
Thanks for the follow-up, @gavinhaughey.. I'll get back to you soon.
### Answer I don't have detailed information about Retell's built-in LLM framework implementation in the available sources. The sources I have access to focus specifically on custom LLM integration through WebSocket connections [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The custom LLM integration requires setting up a WebSocket server that communicates with Retell at the endpoint
{your-server-websocket-endpoint}/{call_id}
[(1) ]() . This approach involves creating your own backend server to handle text exchanges with Retell server [(4) ]() . For information about Retell's built-in LLM framework and how to implement it without WebSocket servers, I'd recommend: Visit [Contact Sales]() or [https://github.com/RetellAI/]() for more detailed information about the built-in framework options. Would you like a general answer based on my knowledge instead about typical LLM framework alternatives?
​ To learn more, see the sources I considered: [[1] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) [[2] Setup WebSocket Server](https://docs.retellai.com/integrate-llm/setup-websocket-server) [[3] Integrate LLM](https://docs.retellai.com/integrate-llm/integrate-llm) [[4] Custom LLM Overview](https://docs.retellai.com/integrate-llm/overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
g
@AI Evy You mentioned using 'Retell's built-in LLM framework' as an alternative that doesn't require WebSocket servers. Can you tell me more about this option and how to implement it? I'm specifically interested in how to use the built-in framework instead of custom LLM integration.
a
Thanks for the follow-up, @gavinhaughey.. I'll get back to you soon.
### Answer You're right to ask for clarification about Retell's built-in LLM framework [(1) ]() . However, the sources I have access to focus specifically on custom LLM integration through WebSocket connections [(1) ]() [(2) ]() [(3) ]() [(4) ]() . The custom LLM integration involves setting up a backend server that handles text exchanges with Retell server to provide responses to users [(1) ]() . The custom LLM approach requires your server to connect via WebSocket at the endpoint
{your-server-websocket-endpoint}/{call_id}
[(4) ]() , which wouldn't work with your Hostinger shared hosting limitation. I don't have detailed documentation about implementing Retell's built-in LLM framework that would avoid the WebSocket requirement. The available sources focus on the custom integration path where you set up your own WebSocket server [(2) ]() [(3) ]() . For comprehensive information about Retell's built-in LLM framework and how to implement it without WebSocket servers, I'd recommend: Visit [Contact Sales]() or [https://github.com/RetellAI/]() Would you like a general answer based on my knowledge instead about typical alternatives to custom LLM integration?
​ To learn more, see the sources I considered: [[1] Custom LLM Overview](https://docs.retellai.com/integrate-llm/overview) [[2] Setup WebSocket Server](https://docs.retellai.com/integrate-llm/setup-websocket-server) [[3] Integrate LLM](https://docs.retellai.com/integrate-llm/integrate-llm) [[4] LLM WebSocket](https://docs.retellai.com/api-references/llm-websocket) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.