thisisalbe
11/28/2025, 3:07 AMAI Evy
11/28/2025, 3:08 AMAI Evy
11/28/2025, 3:08 AMAI Evy
11/28/2025, 3:08 AMAI Evy
11/28/2025, 3:08 AM<head> tag [(1) ]() :
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="0"
data-title="YOUR_CUSTOM_TITLE"
></script>
Required attributes:
- data-public-key - Your Retell public key
- data-agent-id - Your chat agent ID
Optional attributes:
- data-agent-version - Agent version (if unset, uses latest version)
- data-title - Custom chat window title
- data-logo-url - URL of your logo image
- data-color - Hex color code for widget theme (e.g., "#FFA07A")
- data-bot-name - Bot name for popup messages
- data-popup-message - Popup message before users open chat
- data-show-ai-popup - Set to "true" to enable popup messages
- data-show-ai-popup-time - Seconds to delay before showing popup (default: 0)
- data-auto-open - Set to "true" to auto-open chat widget on page load
- data-dynamic - JSON string with dynamic variables for the chat agent
- data-recaptcha-key - Google reCAPTCHA v3 site key for bot protection
The widget displays as a floating button with a robot icon in the bottom right corner . When clicked, it opens a chat interface where users can interact with your agent .