https://retellai.com/?utm_source=discord&utm_medium=seo logo
is it possible to setup a demo call button in my w...
# ❓・ai-evy-support
p
@AI Evy is it possible to setup a demo call button in my websites landing page to interact directly with one of my retell demo agents
a
Thanks for tagging me @paulaugeras. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Yes, you can set up a demo call button on your website to interact with your Retell agent [(1) ]() [(2) ]() . To implement this, you'll need to: 1. Set up a backend server with a WebSocket endpoint to handle web calls [(1) ]() 2. Create a web call through your backend, which can pass dynamic variables like user_id to your agent [(2) ]() 3. Implement the frontend button that triggers the call when clicked The recommended approach is to check out the React.js demo repository, as the logic is very similar regardless of your frontend framework . However, you'll need a backend server hosted to create the web call on behalf of your frontend . For WordPress sites specifically, the process involves adding PHP code to set up a REST API endpoint and JavaScript code for the SDK loading and button functionality [(1) ]() . Note that implementing this requires technical knowledge of WebSocket connections, backend API integration, and frontend JavaScript [(1) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Adding agent to website](https://discord.com/channels/1186424376300679209/1311977657889587291) [[2] Dynamic Variable web call](https://discord.com/channels/1186424376300679209/1261635348862206012) ​