https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can i add a test agent (from retell) section t...
# ❓・ai-evy-support
p
@AI Evy how can i add a test agent (from retell) section to my loveable.dev website,
a
Thanks for tagging me @PGS1208. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I don't have specific documentation for integrating Retell AI agents directly with loveable.dev websites. However, I can point you to relevant resources: For adding a Retell agent to a website generally: The sources mention that Retell AI has released a Chat Widget that can be embedded with copy-paste code, requiring no backend work [(1) ]() . This is the simplest approach for adding an agent to any website. Additionally, Retell provides a Web SDK for more customized implementations . There's also a React frontend demo available that shows how to implement web calls [(2) ]() . Key implementation considerations from the sources: 1. You'll need a Public Key (not an API key) for frontend use with the chat widget [(1) ]() 2. For custom implementations, you would need to set up WebSocket connections [(2) ]() 3. The React demo repository can serve as a reference: the sources mention it's available on GitHub What I recommend: Check out these potentially useful sources: - [Platform Changelogs | Retell AI]() - mentions the Chat Widget feature - [Adding agent to website]() - community discussion about website integration Since loveable.dev is a specific platform and I don't have loveable.dev-specific integration docs in the sources, would you like me to provide a general answer about web integration approaches that might work with your platform?
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[2] Adding agent to website](https://discord.com/channels/1186424376300679209/1311977657889587291) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@User how do i get the Chat Widget code
@AI Evy how do i get the Chat Widget code
a
Thanks for the follow-up, @PGS1208. I'll get back to you soon.
### Answer Based on the documentation, here's how to get and implement the Chat Widget code [(1) ]() : Prerequisites: 1. Create a chat agent using the Create Chat Agent guide 2. Get your Retell Public Key from your dashboard [(1) ]() [(2) ]() 3. Get your chat agent ID [(1) ]() The Code: 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_CHAT_AGENT_ID"
 data-agent-version="YOUR_AGENT_VERSION"
 data-title="YOUR_CUSTOM_TITLE"
 data-logo-url="YOUR_LOGO_URL"
 data-color="YOUR_CUSTOM_COLOR"
 data-bot-name="YOUR_BOT_NAME"
 data-popup-message="YOUR_POPUP_MESSAGE"
 data-show-ai-popup="true"
 data-show-ai-popup-time="5"
 data-auto-open="false"
 data-dynamic='{"key": "value"}'
 data-recaptcha-key="YOUR_GOOGLE_RECAPTCHA_SITE_KEY"
></script>
Required attributes: -
data-public-key
- Your Retell public key -
data-agent-id
- Your chat agent ID All other attributes are optional for customization . For Testing Locally: Add
localhost
to your allowed domains list in the Public Keys section of your Retell dashboard [(2) ]() .
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Public Keys](https://docs.retellai.com/accounts/public-keys) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.