https://retellai.com/?utm_source=discord&utm_medium=seo logo
HOw to create a voice ai widget to my website
# ❓・ai-evy-support
k
@AI Evy HOw to create a voice ai widget to my website
a
Thanks for tagging me @khai5202. I'll look through relevant sources and get back to you shortly.
### Answer To create a voice AI widget on your website, Retell AI offers two widget options: the Chat Widget (for text-based conversations) and the Callback Widget (for phone-based conversations using a voice agent) [(1) ]() . ## Prerequisites Before embedding either widget, you'll need : 1. Create an agent (a chat agent for chat widget or a voice agent for callback widget) 2. Get your Retell Public Key 3. Get your agent ID 4. For callback widget: Get your Retell phone number ## Setup for Callback Widget (Voice AI) Add the following 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_VOICE_AGENT_ID"
  data-from-number="YOUR_RETELL_PHONE_NUMBER"
  data-widget-type="callback"
  data-title="YOUR_CUSTOM_TITLE"
  data-logo-url="YOUR_LOGO_URL"
  data-color="YOUR_CUSTOM_COLOR"
></script>
The callback widget allows users to enter their phone number, and your voice agent will call them directly . ## Setup for Chat Widget (Text-Based) If you prefer a text-based chat interface instead, use :
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"
></script>
Both widgets are embeddable via a single
<script>
tag and use the Retell public key system, allowing direct API calls from the frontend with no backend proxy required .
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) ​
k
what do you mean call back @AI Evy
a
Thanks for the follow-up, @khai5202. I'll get back to you soon.
### Answer The Callback Widget is a phone-based widget where users enter their phone number on your website, and your Retell AI voice agent initiates an actual phone call to them [(1) ]() . Here's how it works : 1. A user visits your website and clicks the callback widget button 2. The widget displays a form where the user enters their phone number 3. Your Retell AI voice agent calls that phone number 4. The user has a voice conversation with your AI agent over the phone This is different from the Chat Widget, which provides text-based conversations through a chat interface on your website . The Callback Widget requires : - A voice agent (not a chat agent) - Your Retell phone number (the number that will appear as the caller ID) - The
data-widget-type="callback"
attribute in your script tag So essentially, "callback" means the AI will call back the user on their phone after they request it through your 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.
k
how about click the button and call the retell number instead? @AI Evy
a
Thanks for the follow-up, @khai5202. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific documentation about creating a widget where users click a button to directly initiate a call to your Retell number from their device (like a "click-to-call" feature) . The documented widget options are [(1) ]() : - **Chat Widget**: Text-based conversations through a chat interface - **Callback Widget**: Users enter their phone number and the AI agent calls them For a click-to-call experience where the user's device initiates the call, you would likely need to implement a custom solution using standard HTML telephone links (like
<a href="tel:+1234567890">
) combined with Retell's inbound calling capabilities [(2) ]() . When someone calls your Retell number, you can handle it as an inbound call by binding an inbound agent to that number . However, this wouldn't use the pre-built Retell widget - it would be a standard phone call initiated from the user's device to your number. Would you like more information about setting up inbound calling for your Retell number, or would you prefer to explore the Callback Widget option where the AI calls the user?
​ To learn more, see the sources I considered: [[1] Retell Website Widget](https://docs.retellai.com/deploy/chat-widget) [[2] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
k
How to rebill customer? @AI Evy
a
Thanks for the follow-up, @khai5202. I'll get back to you soon.
### Answer I don't have information about rebilling customers in the available Retell AI documentation sources. The sources provided cover Retell AI's conversational AI platform overview and Terms of Service, but don't contain specific documentation about billing, payment processing, or rebilling procedures [(1) ]() [(2) ]() . For assistance with rebilling customers or billing-related questions, I recommend: 1. Checking your Retell AI dashboard's billing section 2. Contacting Retell AI support directly at [Contact Sales]() 3. Visiting the Retell AI GitHub for technical resources: [) Would you like me to provide a general answer about typical SaaS billing practices, or do you have a different question about Retell AI's features that I can help with?
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] Inside Retell AI | The Conversational AI Platform Behind Scalable AI Phone Systems | Retell AI](https://www.retellai.com/blog/inside-retell-ai-conversational-ai-phone-system) [[2] Retell | Terms Of Service](https://www.retellai.com/legal/terms-of-service) ​