Most websites still ask visitors to do the slowest thing possible: read a page, hunt for an answer, then fill out a form and wait. A website voice widget flips that. The visitor clicks a floating button, allows their microphone, and simply asks their question out loud, the same way they would talk to a person. If you have ever wondered how those "click to talk to an AI" buttons get onto a site, the honest answer is that it takes about ten minutes and one line of code.
This post breaks down exactly how to add an AI voice agent to your website: what a voice widget actually is, why it converts better than static forms and text chat, the three-step install, platform-specific instructions for WordPress, Shopify, Wix, Webflow, Squarespace, plain HTML and React, plus customization, performance, privacy, and a FAQ.
Want to see the embed code before you read further? The fastest path is the product hub. See AI Voice Agent Widget for the one-line script, live demo, and setup walkthrough. You can also generate a ready-to-paste snippet with the free Voice Widget Generator.
Quick verdict (TL;DR)
| Question | Short answer |
|---|---|
| How do I add it? | Create an agent, copy one <script> tag, paste it before </body> |
| How long does it take? | About 10 minutes, no developer required |
| Does it work on my platform? | Yes: WordPress, Shopify, Wix, Webflow, Squarespace, plain HTML, React |
| Will it slow my site? | No. The script loads async, is under 50KB, and runs in an isolated Shadow DOM |
| What does the visitor do? | Clicks the floating button, allows mic access, and speaks |
| What can I customize? | Color, position, greeting, logo, and 24+ languages |
What is a website voice widget?
A website voice widget is a small floating button, usually pinned to a corner of the screen, that opens a voice panel when a visitor clicks it. Instead of typing, the visitor speaks, and an AI voice agent answers back in a natural voice in real time. Under the hood it uses WebRTC browser calls powered by LiveKit, so the conversation happens directly in the browser with no phone number, no app download, and no plugin.
The important part for you as a site owner: the same AI agent that answers your website can also answer your phone line and your WhatsApp. You build the agent once, connect its knowledge and instructions, and then embed it wherever your customers are. The website is just one more channel for the same brain.
Visually, the flow is simple. A floating button appears. The visitor clicks it, the browser asks permission to use the microphone, they allow it, and the voice panel opens. From there it is a normal spoken conversation.
Why voice beats forms and text chat
Forms and text chatbots both make the visitor do work. Voice removes that friction.
- Speaking is faster than typing. As a general rule of communication, most people speak far quicker than they type, especially on a phone keyboard. Asking a question out loud takes a couple of seconds; typing it, correcting autocorrect, and waiting for a reply takes far longer.
- No forms to abandon. Contact forms are a well-known drop-off point. A visitor who would never fill out five fields will happily ask one spoken question.
- Mobile-first. Most traffic is mobile, and typing on a phone is the worst input experience there is. Voice is the natural mobile interaction.
- Complex questions get real answers. A visitor can ramble, backtrack, and clarify mid-sentence, and the agent keeps up, because it understands context rather than matching keywords.
- It feels human. A voice that responds instantly and by name creates a connection that a text bubble cannot.
If you want a deeper breakdown of the trade-offs, we compare the two channels head to head in Voice Widget vs Chat Widget: Which Converts Better in 2026?.
How to add an AI voice agent to your website in 3 steps
The whole process is genuinely three steps. You do not need to touch your site's backend or install a heavy plugin.
Step 1: Create your agent and get a widget key
Sign up and create a voice agent at voice-agent.edesy.in. Give it a name, tell it what your business does, and paste in the knowledge it should answer from (your FAQs, pricing, hours, policies). When the agent is ready, generate a widget key, which looks like wk_live_xxx. This key ties the widget on your site to your specific agent.
Step 2: Copy the one-line embed code
Your widget key produces a single script tag. It looks like this:
<script
src="https://app.edesy.ai/widget/voice-widget.js"
data-api-key="wk_live_xxx"
async></script>That is the entire integration. One tag, one attribute you swap out (data-api-key), and the async flag so it never blocks your page from rendering.
Step 3: Paste it before the closing </body> tag
Place the script just before the closing </body> tag on any page where you want the widget to appear, or site-wide via your template. On the next page load the floating button appears. That is it. No build step, no npm install for a basic embed.
Prefer to generate and preview first? Use the free Voice Widget Generator to pick your color, position, and greeting, then copy the finished snippet. Full setup docs live on the widget embedding hub.
Platform-specific quick instructions
The three steps are the same everywhere. Only the place you paste the script changes.
| Platform | Where to paste the embed code |
|---|---|
| WordPress | Theme footer, a "code in footer" plugin, or a Custom HTML block |
| Shopify | theme.liquid, just before </body> |
| Wix | Settings, Custom Code, add to Body end, all pages |
| Webflow | Project Settings, Custom Code, Footer Code |
| Squarespace | Settings, Advanced, Code Injection, Footer |
| Plain HTML | Directly before </body> in your .html file |
| React / Next.js | A <Script> component or useEffect that injects the tag |
WordPress
Open Appearance, Theme File Editor and drop the script before </body> in footer.php, or use any "insert headers and footers" plugin and paste it in the footer box. It then loads on every page. For a step-by-step walkthrough with screenshots, see the dedicated WordPress voice widget guide.
Shopify
Go to Online Store, Themes, Edit code, open theme.liquid, and paste the script immediately before the closing </body> tag. Save, and it goes live across the storefront. Our Shopify voice widget guide covers product-page-only placement and cart-recovery use cases.
Wix
In the dashboard, open Settings, Custom Code, click Add Custom Code, paste the script, set it to load on All pages, and place it at the Body, end. Publish and you are done.
Webflow
Open Project Settings, Custom Code, paste the script into the Footer Code box, save, and publish. For per-page placement, use the page-level custom code panel instead.
Squarespace
Go to Settings, Advanced, Code Injection, and paste the script into the Footer box. Save. The widget appears on every page automatically.
Plain HTML
If you hand-code your site, paste the script directly before </body> in each HTML file, or in your shared footer include. Nothing else is required.
React and Next.js
For React apps, inject the script rather than hard-coding it in index.html. In Next.js, the <Script> component with strategy="afterInteractive" is the cleanest approach. For component-level control, lifecycle handling, and SPA routing tips, see the React voice widget guide.
Customizing your widget
The default widget works out of the box, but you will usually want it to match your brand. You can control:
- Color to match your brand accent, applied to the button and panel.
- Position in any corner, most commonly bottom-right.
- Greeting so the agent opens with your own line, for example "Hi, ask me anything about our pricing."
- Logo shown in the panel header so visitors know it is you.
- Language, with 24+ languages supported, so the agent greets and answers in your customers' language.
These are set on the agent side or through data attributes on the script, so a design change never requires editing your site again.
Performance and privacy
A widget is only worth adding if it does not hurt the site it lives on. Here is how this one stays lightweight and safe.
Performance:
- The script loads async, so it never blocks your HTML from painting.
- The bundle is under 50KB, small enough that it does not move your load-time metrics.
- The widget renders inside a Shadow DOM, which isolates its styles from your site. Your CSS cannot break the widget and the widget cannot break your layout.
Privacy and security:
- The microphone is only accessed after the visitor clicks the button and grants permission. Nothing listens in the background.
- You set a domain whitelist, so your widget key only works on domains you own. Someone copying your key onto another site simply gets nothing.
- Rate limiting protects you from abuse and runaway usage.
- Every conversation produces recordings and transcripts in your dashboard, so you can review what customers asked and improve your agent.
Popular use cases
- Instant sales answers. A visitor on a pricing page asks "do you support X?" and gets a spoken answer immediately, instead of leaving to compare a competitor.
- Lead capture. The agent qualifies the visitor and books a call, turning anonymous traffic into a scheduled conversation.
- Support deflection. Common "where is my order" and "how do I reset this" questions are handled without a ticket.
- After-hours coverage. The agent answers at 2 AM exactly as well as at 2 PM.
- Accessibility. Visitors who find typing difficult can simply speak.
Because it is the same AI voice agent that runs your phone and WhatsApp channels, everything the agent learns and every answer you refine applies everywhere at once.
Frequently asked questions
How do I add an AI voice agent to my website?
Create an agent at voice-agent.edesy.in, generate a widget key, and paste the one-line <script> tag before your closing </body> tag. The floating button appears on the next page load. The full walkthrough is on the widget embedding hub, and you can generate the snippet with the Voice Widget Generator.
Do I need to be a developer to embed voice AI?
No. Adding the embed code is a copy-and-paste task on WordPress, Shopify, Wix, Webflow, Squarespace, and plain HTML sites. The only place that benefits from developer knowledge is a custom React or single-page app, and even that is a few lines, covered in the React voice widget guide.
Will the voice widget slow down my website?
No. The script loads asynchronously so it never blocks rendering, the bundle is under 50KB, and it runs inside an isolated Shadow DOM so it cannot interfere with your page. In practice it has no meaningful effect on load-time scores.
Does the visitor need to install anything?
No. The conversation runs in the browser over WebRTC, so there is no app, no plugin, and no phone call. The visitor clicks the button, allows microphone access when prompted, and starts talking. See WebRTC browser calls for how it works.
Can I control who is allowed to use my widget key?
Yes. You set a domain whitelist so the key only works on your own domains, and rate limiting protects against abuse. If the key leaks, it is useless on any site you have not authorized.
Conclusion
Adding an AI voice agent to your website is not a project. It is three steps: create the agent, copy the one-line embed code, and paste it before </body>. From there you customize the color, position, greeting, logo, and language, and let the same agent that powers your phone and WhatsApp answer your website visitors by voice.
If you are ready to add it, start by creating your agent at voice-agent.edesy.in and grab your snippet from the Voice Widget Generator. Then read the widget embedding hub for the finishing touches.
Related resources
- AI Voice Agent Widget hub — the canonical embedding guide
- WebRTC browser calls — how in-browser voice works
- WordPress voice widget — WordPress-specific setup
- Shopify voice widget — storefront setup
- React voice widget — SPA and Next.js setup
- AI Voice Agent — the full product
- Voice Widget Generator — free snippet builder
- Voice Widget vs Chat Widget — which converts better