https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do i integrate my voice agent on my website wi...
# ❓・ai-evy-support
к
@AI Evy how do i integrate my voice agent on my website with an html code?
a
Thanks for tagging me @кукич. I'll look through relevant sources and get back to you shortly.
### Answer To integrate your Retell AI voice agent on your website using HTML, add the following script tag to your HTML (inside the tag) . Replace the placeholder values with your actual Retell public key, agent ID, and phone number:
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_VOICE_AGENT_ID"
 data-widget="callback"
 data-phone-number="YOUR_RETELL_PHONE_NUMBER"
 data-title="Request a Call"
 data-countries="US,CA,GB"
 data-tc="<https://yoursite.com/terms%22>
 data-color="#FFA07A"
 data-recaptcha-key="YOUR_GOOGLE_RECAPTCHA_SITE_KEY"
></script>
[(1) ]() You can find more details in the official documentation: [Retell Website Widget]()
​ To learn more, see the sources I considered: [[1] Retell Website 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.
к
@AI Evy i need a way to make the voice agent answer directly on the websit and not request a call
a
Thanks for the follow-up, @кукич. I'll get back to you soon.
### Answer Based on official documentation, the Retell Website Widget supports two modes: - Chat Widget: Lets users chat with your agent in text, directly on your website. - Callback Widget: Lets users request a phone call, where the voice agent calls them [(1) ]() . Currently, there is no documented option to have the voice agent answer and speak directly in the browser (i.e., a live voice conversation within the website, without a phone call) . The "callback" mode always initiates a phone call to the user, not an in-browser voice session . Check out these potentially useful sources for more details: - [Retell Website Widget]() - [Web Widget Troubles]() - [Public Keys]() Would you like a general answer based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) ​