https://retellai.com/?utm_source=discord&utm_medium=seo logo
b
Hi! I see that phone agents are possible. Is there a way to host a widget on my website so people can audio-chat with the agent the same way the phonecall would work? @AI Evy
a
Thanks for tagging me @briancohn_59023. I'll look through relevant sources and get back to you shortly.
### Answer Yes, Retell offers a website widget that supports both text-based chat and phone-based conversations [(1) ]() . The widget supports two modes : - **Chat Widget**: Text-based conversations using a chat agent - **Callback Widget**: Phone-based conversations using a voice agent For audio chat directly on your website (similar to phone calls) , you would use the Callback Widget . Here's how it works: 1. User clicks the callback widget button (displays a phone icon) 2. A form appears collecting first name, last name, phone number, and privacy policy agreement 3. User submits the form 4. The widget creates a phone call using the Retell API 5. User receives a call from your specified phone number 6. The conversation is handled by your configured voice agent To set up the callback widget, add this script to your HTML:
Copy code
html
<script
  id="retell-widget"
  src="<https://dashboard.retellai.com/retell-widget.js%22>
  data-public-key="key_xxxxxxxxxxxxxxxxxxxxx"
  data-agent-id="agent_xxxxxxxxxxxxxxxxxxx"
  data-widget="callback"
  data-phone-number="+15551234567"
  data-title="Request a Call"
  data-countries="US,CA,GB"
  data-tc="<https://example.com/terms%22>
  data-color="#FFA07A"
></script>
The widget is embeddable via a single
<script>
tag and uses the Retell public key system, allowing direct API calls from the frontend—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.
b
no i want to know if they can do it without a phone call—if the audio can be handled via the browser?
@AI Evy please help, i want to know if they can do it without a phone call—if the audio can be handled via the browser?
a
Thanks for the follow-up, @briancohn_59023. I'll get back to you soon.
### Answer Based on the available documentation, the Retell website widget currently supports two modes: Chat Widget for text-based conversations and Callback Widget for phone-based conversations [(1) ]() . The Chat Widget provides text-based interactions through a chat interface, while the Callback Widget initiates actual phone calls . For browser-based audio conversations (without phone calls) , I don't see this capability documented in the available sources. The widget documentation shows:
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"}'
></script>
This setup creates a text-based chat widget . The sources don't mention browser-based audio capabilities that would allow voice conversations directly through the web browser without initiating a phone call. For the specific browser-based audio functionality you're looking for, I'd recommend checking these potentially useful sources: [Retell Website Widget]() , [Retell AI Chat Agent – Real-Time Web Chat Automation Widget | Retell AI]() . Would you like me to try to provide a general answer based on my knowledge instead?
​ 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.