https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to integrate an agent to my website
# ❓・ai-evy-support
b
@AI Evy how to integrate an agent to my website
a
Thanks for tagging me @bernard995. I'll look through relevant sources and get back to you shortly.
### Answer To integrate a Retell AI agent into your website, you'll need to set up a WebSocket server and implement client-side functionality [(1) ]() . The basic process involves several steps : 1. Set up a WebSocket server - Add a WebSocket endpoint to your existing server (e.g., Express.js or FastAPI) 2. Implement the WebSocket handler - Accept connections and listen for incoming messages 3. Test the connection - Use tools like Postman to verify your WebSocket endpoint works 4. Integrate Retell AI - Add function calling capabilities and handle Retell AI-specific functionality 5. Add to your website - Implement the client-side WebSocket connection in your frontend using the appropriate Retell AI SDK or API For JavaScript implementation, you can reference the React demo available at: . However, there are some technical challenges to be aware of. The Retell JavaScript SDK cannot be directly included from CDNs like unpkg because it has dependencies and needs to be bundled [(2) ]() . You'll need to create a bundled version that includes the necessary dependencies and code to create an instance of the Retell web client . All available APIs for integration are documented at [(3) ]() . For more complex implementations or if you need assistance with WordPress integration specifically, you may want to consider working with a developer or exploring the community resources mentioned in the Discord discussions [(1) ]() [(2) ](
6424376300679209/1186462578310910112/1312669117156950066) .
​ To learn more, see the sources I considered: [[1] Adding agent to website](https://discord.com/channels/1186424376300679209/1311977657889587291) [[2] Discord message from @fyodor2572 on 2024-12-01](https://discord.com/channels/1186424376300679209/1186462578310910112/1312669117156950066) [[3] Web Agent](https://discord.com/channels/1186424376300679209/1354479008775143426) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.