https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to embed the chatbot
# ❓・ai-evy-support
u
@AI Evy how to embed the chatbot?
a
Thanks for tagging me @0megasuprem3. I'll look through relevant sources and get back to you shortly.
### Answer To embed the Retell chatbot on your website, you need to add a script tag to your HTML [(1) ]() . Here's the process: 1. Create a Chat Agent First, create a chat agent in Retell AI to handle conversations . 2. Get Your Credentials You'll need your Retell Public Key and agent ID . 3. Add the Widget Script Add this script tag within your HTML
<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 credentials and customization preferences . The widget supports customization options like title, logo URL, and theme color [(2) ](

▾

) [(1) ]() . 4. Test the Widget After adding the script, test by loading your website and clicking the floating button (bottom right, robot icon) [(1) ]() . The widget requires no backend setup and uses the public key system for direct API calls from the frontend [(1) ]() [(3) ]() .
​ To learn more, see the sources I considered: [[1] Retell Chat Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Retell Chat Widget | How to Customize your Retell chatbot](

https://www.youtube.com/watch?v=p2RN30I1T_g▾

) [[3] Chat Widget, Custom Function Enhancement and more!](https://www.retellai.com/changelog/chat-widget-custom-function-enhancement-and-more) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.