https://retellai.com/?utm_source=discord&utm_medium=seo logo
How to add widget to website
# ❓・ai-evy-support
m
@AI Evy How to add widget to website?
a
Thanks for tagging me @michaelscott_45613. I'll look through relevant sources and get back to you shortly.
### Answer To add the Retell chat widget to your website, you need to follow these steps [(1) ]() : 1. Create a Chat Agent - You need a chat agent to handle the conversation 2. Get Your Public Key and Agent ID - You'll need your Retell Public Key and your Retell agent ID 3. Add the Widget Script - Add this script tag to your HTML within the
head
tag :
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>
Replace the placeholder values with your actual information : -
YOUR_RETELL_PUBLIC_KEY
with your actual Retell public key -
YOUR_RETELL_CHAT_AGENT_ID
with your actual Retell agent ID -
YOUR_RETELL_CHAT_AGENT_VERSION
with your agent version (optional) -
YOUR_CUSTOM_TITLE
with your preferred chat window title (optional) -
YOUR_LOGO_URL
with the URL of your logo image (optional) -
YOUR_CUSTOM_COLOR
with a hex color code for the widget theme (optional) The widget is embeddable via a single
<script>
tag and uses the Retell public key system, allowing direct API calls from the frontend—no backend proxy required . If you don't specify
data-agent-version
, it will use the latest version of the agent .
​ To learn more, see the sources I considered: [[1] Retell Chat Widget](https://docs.retellai.com/deploy/chat-widget) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the feedback, glad I was helpful.