https://retellai.com/?utm_source=discord&utm_medium=seo logo
can i create a widget for my agent on retell to al...
# ❓・ai-evy-support
u
@AI Evy can i create a widget for my agent on retell to allow for a website visitor to trigger it for the website widget?
a
Thanks for tagging me @.jorge.ai. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can create a widget for your Retell AI agent that allows website visitors to trigger it [(1) ]() . The Retell Chat Widget is an embeddable, production-ready chat widget that can be added to any website . To set up the widget, you need to : 1. Create a Chat Agent first 2. Get your Retell Public Key and Agent ID 3. Add the widget script to your website's HTML within the
head
tag Here's the script you need to embed :
Copy code
html
<script
 id="retell-widget"
 src="<https://dashboard.retellai.com/retell-widget.js%22>
 type="module"
 data-public-key="YOUR_RETELL_PUBLIC_KEY"
 data-agent-id="YOUR_RETELL_CHAT_AGENT_ID"
 data-agent-version="YOUR_RETELL_CHAT_AGENT_VERSION"
 data-title="YOUR_CUSTOM_TITLE"
 data-logo-url="YOUR_LOGO_URL"
 data-color="YOUR_CUSTOM_COLOR"
></script>
The widget appears as a floating button in the bottom right corner with a robot icon . When visitors click it, they can start a conversation with your agent . The widget automatically handles chat sessions and persists previous chats in localStorage . You can customize the widget's title, logo, and color theme [(1) ]() [(2) ]() . The widget uses Retell's public key system, allowing direct API calls from the frontend with no backend proxy required [(1) ]() .
​ To learn more, see the sources I considered: [[1] Retell Chat Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Chat Widget Questions](https://discord.com/channels/1186424376300679209/1398310163122749510) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.