
ElevenLabs Voice Agents: Add an AI Voice Widget to Your Website
Create a focused ElevenAgents voice assistant, connect approved knowledge, test failure cases, copy the official widget embed and restrict access to your website's allowed domains before launch.

What is an ElevenLabs voice agent for a website?
An ElevenLabs voice agent is a conversational assistant that can answer visitors through spoken dialogue, and in some configurations through text. Unlike Text to Speech, which turns an already written script into audio, an agent listens to a visitor, uses its instructions and knowledge sources, and responds in a conversation. ElevenAgents is the current name of the platform behind these experiences.
A practical first use is answering a small set of common questions about a business, such as opening hours, service boundaries or how to contact a human. Do not call it a replacement for a support team: it may misunderstand a question, rely on outdated content or sound confident while giving an incorrect answer. Design a limited first task that can be tested.
Decide what the agent may answer before building it
Write down five frequent questions that genuinely help a visitor complete a task. For a tutoring website these might cover lesson formats, booking procedures, locations, cancellation policies and the contact page. Gather the correct answers in an approved document and identify any personal information the assistant should not collect. Specific questions make it easier to evaluate usefulness.
Also define what the agent must not do: promise availability it cannot verify, invent prices, make binding commitments or diagnose a person. Include an explicit fallback such as 'I cannot confirm that; please use our contact page.' An agent that honestly says it does not know can be more valuable than one that gives a quick but unreliable answer.
Step 1 — Create an agent in ElevenAgents
Sign in to ElevenLabs, open the ElevenAgents area and create a new agent. The dashboard provides a guided setup for its language, voice and behavior. Choose an agent name for your own workspace, then describe the job in simple terms: 'Help visitors find answers in our official help documents; do not invent account details.' The exact position of controls may change with product updates.
Keep the first configuration deliberately narrow. Start with one language and one straightforward service scenario instead of attempting a multilingual sales agent that books meetings and edits records on day one. Save the configuration and use the platform's built-in test conversation before adding the widget to a public page.
Step 2 — Write instructions that can be checked
The agent's instructions should define its role, the audience, the information it is allowed to use and the action to take when it lacks an answer. A useful example is: 'Use our approved FAQ for service facts. If the FAQ does not contain the answer, say that you cannot confirm it and direct the visitor to the contact form.' This is an example, not a tested production prompt.
Avoid instructions that encourage the agent to always agree, never say no or provide an answer at any cost. Ask for concise responses, a calm tone and a clear handoff when a request requires a person. If information such as delivery dates can change, explain that the visitor must check the current policy rather than quoting an invented guarantee.
Step 3 — Add a small, reliable knowledge base
ElevenAgents supports knowledge-base content supplied as documents, website URLs or text. Start with an up-to-date FAQ and the relevant public policy pages, then attach those sources to the agent. File, URL and text imports are described in ElevenLabs documentation; site crawls must respect access and robots rules. Only import material you are entitled to use.
Choose a few pages with unambiguous answers instead of feeding the agent an entire website full of old articles and contradictory prices. Put source dates in your working checklist. After importing, ask an exact question whose answer appears on one page, then a question that is not covered. The second question tests whether the agent can admit uncertainty.
Step 4 — Select voice, language and conversation behavior
Choose a voice that suits the site's audience and listen to sample replies before making the experience public. Pace, clarity and pronunciation are more important for a help widget than theatrical expression. If the site serves several countries, confirm which languages the chosen voice and agent configuration support and test a realistic question in each one.
Plan the first message carefully: 'Hello, I can help you find information about our services. What would you like to know?' Avoid pretending that the assistant is a human colleague or that every question is understood. Check whether background noise, accents and interruptions change its response quality on the devices your visitors actually use.
Step 5 — Test the agent in the ElevenLabs dashboard
Before touching the website, run a small test set inside the ElevenAgents dashboard. Include an easy question, an ambiguous question, an unsupported request, a question containing an outdated detail and a request to speak with a person. Record the expected outcome for each one and note every failure. These are proposed test cases, not tests Claim26 has run.
Repeat important questions rather than assuming that one correct answer proves reliability. ElevenLabs also documents dedicated agent-testing tools. An apparent success can vary between conversations; review the transcript or test record, update the instructions or source material, then repeat the same tests. Preserve a baseline so you know whether the change helped.
Step 6 — Find and embed the website widget
Open the agent's widget settings and copy the current embed instructions from ElevenLabs. The official example uses an elevenlabs-convai custom element with your agent ID and loads the widget script from the ElevenLabs package URL. In a basic HTML site, the element and script belong in the page or shared layout that should display the widget. Replace the placeholder with your own real agent ID.
Illustrative markup: <elevenlabs-convai agent-id="YOUR_AGENT_ID"></elevenlabs-convai> followed by a script loading https://unpkg.com/@elevenlabs/convai-widget-embed . Copy the precise current snippet from your dashboard because installation details can change. On a CMS, use its supported custom-code area and verify the widget is not duplicated by a theme and a plugin.
Step 7 — Restrict where the widget can be used
ElevenLabs documents an Allowlist in the agent's Security settings so that approved website origins can use the widget. Add the production domain and, if appropriate, a clearly identified test domain. Do not assume that hiding the embed code makes the agent private: page source is visible to visitors, and security must be configured on the service itself.
If a deployment needs private conversations or stronger authorization, review the signed-URL and authentication options in the official agent documentation instead of using a public widget indiscriminately. Never place a private API key into client-side HTML. Recheck the approved domains after changing a website hostname, adding a www redirect or launching a new test environment.
Step 8 — Test microphone permission, mobile layout and fallback
Open the page over HTTPS on a desktop browser and a real phone. Start the widget, explicitly allow the microphone where prompted and try a short conversation. Confirm that the button does not cover your cookie controls, payment buttons, menu or accessibility features. Test a visitor who refuses microphone access, because not everybody wants to talk to a website.
Check for long loading times, interruptions, accidental double sessions and a clear method to end the conversation. Voice interfaces need an accessible alternative such as a text contact form or written FAQ. Treat browser permission as a user choice, never something to bypass or disguise.
Privacy and consent: disclose what the voice feature does
Tell visitors that the agent is automated and explain the relevant audio, transcript and account-data processing in your privacy notice. Review ElevenLabs' current privacy and data-retention controls and check your own legal obligations before collecting personal information. A microphone prompt does not by itself explain all downstream processing, retention or disclosure.
Avoid asking for passwords, payment card details, health information or other sensitive records in an ordinary public help widget. If your use case requires confidential data, choose an appropriate authenticated design and professional compliance review. Keep an easy route to a person and review any conversation logs using access controls appropriate to the information they contain.
How much does an ElevenLabs website agent cost?
ElevenLabs maintains a separate ElevenAgents pricing page with included call minutes, concurrency and plan conditions. The free offering can be used to explore an agent, but plan entitlements and additional usage charges are subject to change. Check the current agent-specific pricing rather than applying Text to Speech credit estimates to live conversations.
Plan the budget from a scenario, not a guessed monthly total. Estimate how many visitors will start a conversation, their average duration and the share needing escalation. Set a spending limit where your account supports it, then compare actual usage against the estimate. Never promise unlimited free calls or a fixed price per conversation without checking current terms.
Measure success without inventing conversion gains
A useful voice assistant should reduce confusion or help visitors reach the correct page. Track a small set of outcomes, such as successful FAQ answers, requests transferred to a human, repeated misunderstandings, conversation abandonment and cost per useful interaction. Compare those outcomes with the site's written help route instead of treating every widget opening as a conversion.
ElevenAgents provides testing, analytics and conversation-review tools, subject to the selected plan and privacy settings. Check whether your agent consistently answers the intended questions and where it fails. Claim26 has not deployed this demonstration agent or measured a business lift, so the workflow here is a documented setup method, not a performance case study.
Common mistakes before you publish an agent
The most common avoidable mistakes are uploading stale documents, leaving the agent's scope undefined, publishing before testing, exposing it on unintended domains and forgetting a human fallback. Another is assuming a realistic voice implies factual accuracy. An agent can sound natural while misunderstanding what it has been asked to do.
Fix failures one category at a time. Correct the source when a policy answer is outdated, improve instructions when the agent is overconfident, and review audio configuration when visitors cannot understand responses. Then repeat the original test set. Do not quietly add new capabilities such as editing customer records without explicit authorization and a separate safety review.
Final launch checklist and next steps
Create one constrained agent, attach approved documents, configure its voice and first message, run positive and negative tests, copy the current embed snippet, enable an appropriate domain restriction, and verify desktop and mobile behavior. Prepare a written alternative for visitors who do not wish to use a microphone and an escalation route for unanswered questions.
Once the basics work, review actual conversations and improve one recurring failure at a time. Keep the knowledge base current and check the latest ElevenAgents costs and privacy controls before expanding traffic. Claim26 may earn a commission if you subscribe through its clearly disclosed ElevenLabs partner link; this does not change the independent editorial nature of the guide.
Check these four signals.
✓Define five questions and the answers your business authorizes
✓Draft clear instructions and the action for unknown requests
✓Attach current FAQ or support pages to the knowledge base
✓Test unsupported questions and requests for a human
✓Use the widget snippet for your own agent ID
✓Configure allowed production and test domains
✓Test microphone refusal and mobile layout
✓Review privacy, retention and conversation costs
The safest way to choose is to build a small real-world workflow.
Test the part of the customer journey that matters most before moving your entire system.
Official sources for this guide
Software pricing and features can change. Review the official documentation below before choosing a product or plan.
