https://retellai.com/?utm_source=discord&utm_medium=seo logo
yo can we do a widget with voice on a website
# ❓・ai-evy-support
n
@AI Evy yo can we do a widget with voice on a website?
a
Thanks for tagging me @nightwolf3d. I'll look through relevant sources and get back to you shortly.
### Answer Yes! Retell AI offers a website widget that supports both text-based chat and voice-based callback functionality [(1) ]() . The Retell embeddable website widget supports two modes : **Chat Widget**: Text-based conversations using a chat agent **Callback Widget**: Phone-based conversations using a voice agent For the Chat Widget, you can embed it with a single script 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>
For the Callback Widget (voice-based) , you can set it up like this :
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>
The callback widget collects user information and initiates a phone call where users receive a call from your specified phone number and the conversation is handled by your configured voice agent . Both widgets are production-ready, customizable, and secure, using the Retell public key system for direct API calls from the frontend with no backend proxy required .
​ 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.
n
how to set up the google captcha key?
@AI Evy so there is only the callback widget and the chat widget but no like direct voice widget?
a
Thanks for the follow-up, @nightwolf3d. I'll get back to you soon.
### Answer Based on the available documentation, the Retell website widget only offers two modes: Chat Widget (text-based) and Callback Widget (phone-based voice conversations) [(1) ]() . There isn't a direct voice widget that enables real-time voice conversations directly through the web browser . The voice functionality is specifically designed as a callback system where users request a phone call and receive it on their phone number . The Callback Widget works by collecting user information and initiating a phone call where users receive a call from your specified phone number, with the conversation handled by your configured voice agent . This is different from a direct voice widget that would enable browser-based voice chat. So to answer your question directly: correct, there are only the callback widget and chat widget - no direct voice widget for real-time browser-based voice conversations .
​ 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.