Learn how to embed the Retell chat widget on your website
<script>
tag and uses the Retell public key system, allowing direct API calls from the frontend—no backend proxy required.
Create a Chat Agent
Get Your Public Key and Agent ID
Add the Widget to Your Website
head
tag:YOUR_RETELL_PUBLIC_KEY
with your actual Retell public keyYOUR_RETELL_CHAT_AGENT_ID
with your actual Retell agent IDYOUR_RETELL_CHAT_AGENT_VERSION
with your agent version (optional). If left unset, the latest version will be used.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, e.g., “#FFA07A”)Test the Widget
data-agent-version
, it will use the latest version of the agent.