https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do I add an agent to my website
# ❓・ai-evy-support
d
@AI Evy how do I add an agent to my website? How do I get it to be able to talk to potential clients as a button they can click?
a
Thanks for tagging me @dagger_50939. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, Retell AI now offers a Chat Widget that makes adding an agent to your website much simpler [(1) ]() . ## Chat Widget Solution You can embed a Retell Chat agent directly into your website using the new Chat Widget . This enables users to interact with your AI agents via a modern, lightweight text UI without any setup overhead . How to set it up: 1. Copy and paste the embed script into your website 2. Replace the publicKey, agentId, and version 3. Customize widget name The embed code requires no backend work . You'll need to use Public Keys (not API keys) for frontend authorization, which you can manage in Dashboard → Keys → Public Keys . ## Chat Agent Requirements First, you'll need to create a chat agent. You can either create a new chat agent or convert an existing voice agent [(2) ]() . To create a new one: 1. Navigate to the Agents section in your Retell dashboard 2. Click "Create New Agent" 3. Select "Chat Agent" as the agent type 4. Configure your agent settings and prompts Note that chat agents do not support certain voice-specific functions like call transfers, DTMF, or telephony features . ## API Integration Once your chat agent is created, you can create chat sessions using the API [(3) ]() :
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.create({ agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD' }) ;
console.log(chatResponse.agent_id) ;
For detailed implementation, check the [Create chat agent]() documentation and the [Chat Widget documentation]() [(1) ]() .
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] Create chat agent](https://docs.retellai.com/build/create-chat-agent) [[3] Create Chat](https://docs.retellai.com/api-references/create-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
wll it be a voice agent too?
@AI Evy wll it be a voice agent too?
a
Thanks for the follow-up, @dagger_50939. I'll get back to you soon.
### Answer Based on the available sources, I can provide some information about AI voice agents with Retell AI, but I don't have specific documentation about whether the Chat Widget supports voice functionality. Retell AI does support AI voice agents that can handle voice interactions [(1) ]() . These AI voice agents are powered by speech recognition, large language models, and natural language understanding, allowing them to speak and listen like humans . They can handle inbound or outbound calls, capture information, resolve issues, and execute backend actions through natural conversation . Retell AI offers multi-platform deployment capabilities, supporting deployment across various platforms including web applications, mobile devices, and telephony systems [(2) ]() . This versatility ensures businesses can connect with their customers wherever they are . However, I don't have specific information in the available sources about whether the Chat Widget mentioned in the previous response supports voice functionality or if it's text-only. For detailed information about voice capabilities in web-based implementations, I'd recommend checking the official Retell AI documentation or contacting their support team. If you'd like a general answer based on my knowledge instead, I can provide more information about typical voice agent implementations on websites.
​ To learn more, see the sources I considered: [[1] AI Voice Agent](https://www.retellai.com/glossary/ai-voice-agent) [[2] AI Voice Agents for Real-Time Survey Feedback | Retell AI](https://www.retellai.com/blog/utilizing-ai-voice-agents-for-real-time-survey-feedback) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
how do i put a voice agent on my website
@AI Evy how do i put a voice agent on my website
a
Thanks for the follow-up, @dagger_50939. I'll get back to you soon.
### Answer Based on the available sources, Retell AI supports deploying AI voice agents across multiple platforms, including web applications [(1) ]() . The platform offers multi-platform deployment capabilities that allow you to reach customers through their preferred communication methods . Retell AI provides several deployment options for voice agents: **Web-SDK Integration**: The platform supports deployment via web applications using their Web-SDK . This allows you to integrate voice capabilities directly into your website. **API Integration**: You can integrate Retell AI with your existing systems through their comprehensive API . The platform is designed to integrate seamlessly with various systems and workflows [(2) ]() . **Flexible Deployment**: Retell AI supports deployment across various channels, including web applications, mobile apps, and telephony services like Twilio and Vonage [(1) ]() . This flexibility ensures you can implement voice agents wherever your customers are. However, I don't have specific step-by-step implementation details for embedding a voice agent directly on a website in the available sources. For detailed technical implementation guidance, including code examples and setup instructions, I'd recommend: Check out these potentially useful sources: [Voice API: Integrate Phone AI Agents with Your System | Retell AI]() , [AI Voice Agents in 2025: Everything Businesses Need to Know | Retell AI]() Visit [Co
ntact Sales]() or [) for more detailed implementation guidance. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Voice API: Integrate Phone AI Agents with Your System | Retell AI](https://www.retellai.com/blog/how-to-integrate-phone-ai-agents-with-your-existing-api-systems) [[2] Retell AI vs. Bland AI: Best Voice Agent? | Retell AI](https://www.retellai.com/blog/retell-ai-vs-bland-ai-choose-the-right-voice-agent-for-your-business) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.