How to Build a LiveKit Voice Agent That Uses Any Website

By Salome KoshadzeDecember 2, 202610 min read

You can give a LiveKit voice agent hands on any website in about 25 minutes, with no change to the website and about 600 lines of Python. LiveKit already handles the voice. Webfuse adds the browser: the agent reads, clicks and types on the live page while the customer watches. We also tested the agent's browser tools on 27 popular websites, so you know what it meets on the real web.

Key takeaways

LiveKit is the ears and voice, Webfuse is the eyes and hands. The agent acts on the real page, in the customer's own browser.

Small and open. The reference agent is 536 lines of Python plus a 65-line token server, with 9 tools. Everything is on GitHub.

25 minutes to a demo, in 5 steps, with no code on the customer's website.

Our test of 27 popular websites: 242 of 243 browser calls worked. 21 homepages were too long for the agent to read in one go, and 17 started with a cookie banner.

Fast comes later. The agent first works out every step itself. Custom tools turn a common journey into one call: in our booking.com demo, a full hotel search takes one call of about 16 seconds instead of dozens of steps.

What does it mean for a voice agent to "use" a website?

Most voice agents can talk about a website, but they cannot touch it. A customer asks how to change their delivery address, and the agent explains where the button probably is. The customer still has to find it.

A voice agent that uses a website does what a good support person does on a call: it opens the right page, finds the form, fills it in and tells the customer what it is doing. The customer sees every step happen in their own browser, so nothing is hidden and nothing needs to be repeated.

An animated example on a made-up shop: the customer asks once, and the agent reads the page, rejects the cookie banner, searches and adds the shoes to the cart. The tool names are the real ones from the LiveKit reference agent.

LiveKit Agents is an open-source framework for real-time voice AI, so the conversation part is already solved. The missing part is a safe way for the agent to see and act on a page it does not own, which is the job Webfuse takes on.

How a LiveKit agent works on a live website

The setup has four pieces, and each one does a single job. LiveKit carries the conversation, and Webfuse carries the actions on the page:

Diagram: LiveKit handles hearing and speaking through the voice panel, LiveKit room and agent worker, while Webfuse runs each tool call through the Session MCP on the live page the customer is watching

In order, this is what happens on every request:

  1. The customer opens a link. The website loads in their own browser, with a small voice panel in the corner.
  2. The voice panel is a Webfuse extension. It joins a LiveKit room and tells the agent which browser session it is in.
  3. The LiveKit worker hears the request and decides what to do: read the page, click, type or navigate.
  4. The Webfuse Session MCP runs each action on the live page, and the customer watches it happen.

The first time the customer asks a web question, the agent calls a tool named take_control, which attaches it to the customer's session. From then on it reads the page before it answers, so its replies come from what is on screen, not from memory.

A Webfuse session on webfuse.com with the LiveKit voice panel in the corner, where the agent reads the page and explains it to the customer

The website owner is not part of this setup. There is no script to add and no API to ask for, which is why the same agent works on a bank portal, a government form or a supplier's shop. With the architecture in place, the next question is how much code it takes.

What is inside the reference agent: the numbers

We read through the reference code to count what a working agent needs. It is smaller than most people expect:

WhatNumber
Agent worker (agent.py)536 lines of Python
Token server (token_server.py)65 lines of Python
Voice panel extension (JavaScript and HTML)390 lines, plus the LiveKit browser SDK
Tools the agent can call9
Tool calls in a row for one replyup to 15 (LiveKit's default is 3)
Time limit per browser call15 seconds without a response, 10 seconds inside the browser
Attempts per failed browser callup to 3
Page text the agent reads at onceup to 12,000 characters
Time to a working demoabout 25 minutes

The 9 tools fall into three groups: two let the agent see the page, five let it act on the page, and two connect it to the session or take a shortcut through a whole journey.

Diagram: the 9 tools of the LiveKit reference agent, grouped into See (browser_read_page, browser_find), Act (browser_navigate, browser_click, browser_type, browser_press_key, browser_accept_cookies) and Connect (take_control, check_supplier_stock)

The raised step limit matters. LiveKit stops an agent after 3 tool calls in a row by default, but a single web task often needs more: read, click, read again, type. The reference agent allows 15.

Two small details show how much thought sits in those lines. The cookie tool clicks the privacy-friendly option, such as "reject non-essential", before it ever tries "accept". And when a page is too long, the agent keeps the cookie banner text even after cutting the rest, because banners sit at the end of the page and would otherwise be lost.

The agent in the repository uses OpenAI models to hear, think and speak (GPT-4o for the conversation), but LiveKit lets you swap in other providers.

Give your voice agent hands on the web

Webfuse lets your LiveKit agent read, click and type on any website, live in your customer's browser. No code on the website and no API needed. Start with a free Automation Space.

Start Building FreeFree tier · no credit card
AI Agent
MCP
Find the claim form
Fill patient details
Submit claim
Task completed

How to build it in 5 steps

The full walkthrough, with screenshots and every setting, is in our Webfuse for LiveKit guide. Most of the time goes into the three setup steps, and the last two take five minutes together:

Timeline: setting up a LiveKit voice agent with Webfuse takes about 25 minutes in five steps, 5 minutes each for the Automation Space, agent worker and token endpoint, 3 minutes for the voice panel and 2 minutes to talk to it

Here is what each step does:

  1. Create an Automation Space. In Webfuse Studio, start from the Automation card. This switches on the layer the agent talks to.
  2. Run the agent worker (5 minutes). Clone the repository, add your Webfuse keys next to your usual LiveKit and OpenAI values, and start it like any LiveKit worker.
  3. Give the panel a token endpoint (5 minutes). This is LiveKit's normal token flow. Use your own or the 65-line one from the repository.
  4. Install the voice panel extension. Upload the zip to your Space and set one value: the address of your token endpoint.
  5. Talk to your agent. Open the Space link, click the microphone and ask, "What's on this page?"

This is what step 5 looks like after asking the agent to take control and open a demo shop:

The LiveKit agent has opened the Sauce Demo shop in the customer's Webfuse session after being asked to take control, and confirms it in the voice panel

For phone calls, there is an optional sixth step: the worker creates the session itself and sends the customer the link by SMS or email. The tools stay the same, only the way the link reaches the customer changes. Once the demo runs, you will notice one thing quickly, which is speed.

To see what a voice agent meets on the real web, we ran the same calls the reference agent makes on the homepages of 27 popular websites in shopping, travel, delivery, banking, telecoms and government. Each site was visited 3 times on 1 December 2026. The details are in the methodology at the end.

Most pages are bigger than the agent can read at once

The agent reads only what it can act on: buttons, links and fields. Even so, the median homepage came to 42,505 characters, about 13,900 tokens for GPT-4o. 21 of the 27 homepages were longer than the 12,000 characters the reference agent reads in one go.

Bar chart: size of 27 popular homepages as the agent reads them, from 391,353 characters for airbnb.com to 1,954 for bestbuy.com; 21 of 27 are above the reference agent's 12,000-character read limit

At the top end, Airbnb's homepage came to 391,353 characters, about 182,000 tokens. That is more than GPT-4o's entire context window of 128,000 tokens. This is why the reference agent cuts long pages short and can search for a keyword with browser_find instead of reading everything.

Each step on the page takes a second or more

Reaching the customer's browser is fast: the smallest call came back in a median of 0.05 seconds. The work on the page is what takes time. Reading a page took a median of 1.22 seconds, the slowest 10% of reads took 7.4 seconds or more, and a scroll took 1.48 seconds. Page size plays a part: on the third of sites with the smallest pages, a read took a median of about 0.9 seconds, and on the third with the largest pages about 1.4 seconds.

Bar chart of median Session MCP call times on 27 websites: reach the browser 0.05 s, open a page 0.52 s, read the page 1.22 s, act on the page 1.48 s, and 7.4 s or more for the slowest 10% of reads

One read plus one action adds up to about 2.7 seconds in the median case, before the model has thought about anything. On a voice call, that is the pause between "let me check" and the answer, and it grows with every step. Reliability was not the problem: 242 of the 243 calls succeeded.

Seen from Germany, 17 of the 27 websites showed a cookie banner on the first visit, and the agent has to clear it before it can do anything else. 16 of those 17 offered a reject or "necessary only" button, so the agent can decline on the customer's behalf, which is the option the reference agent's cookie tool tries first.

17 of 27 websites showed a cookie banner on the first visit from Germany; 16 of the 17 offered a reject or necessary-only button, and 4 had their buttons only in German

Language is the catch. 4 of the 17 banners had their buttons only in German. The reference agent's cookie tool looks for English words such as "reject" and "accept", so on these banners it has to fall back to other ways of finding the button. If your customers are outside the English-speaking world, add their words to the tool. Taken together, these numbers explain why speed is the first thing to work on.

Why the first version pauses, and how to make it fast

Out of the box, the agent works like a skilled person on their first day at a new job. For every request it reads the page, decides, acts and reads again to check. That is what lets it work on any website from day one, but each step is a round trip from the worker to the customer's browser, and a typical task takes several of them. Our test puts a number on it: about 2.7 seconds for one read and one action. On a voice call, those round trips become pauses.

The fix is custom tools. Most customers ask for the same few things, so the common journeys can become one call each. The agent passes in what the customer said, and the tool does the clicks and checks inside the session and returns only the answer.

The LiveKit guide shows this on a hands-free booking.com demo. Searching for a hotel, opening it, listing the rooms and reaching checkout each became one tool. A full hotel search now takes one call of about 16 seconds, instead of dozens of read, decide and click steps.

Comparison: without custom tools the agent repeats read, decide and click for dozens of round trips with pauses; with a custom tool a full booking.com hotel search is one call of about 16 seconds that returns only the answer

The conversation keeps its rhythm, the model reads far fewer pages, and if the website changes, the agent falls back to reading the page and still gets the job done.

You can record a journey in the Automation Inspector and save it as a tool without code, or ask a coding agent to build it from the custom tools docs. Custom tools are the next stage up for the agent you build today:

Four stages of a voice agent on the web: human navigation, agentic discovery where this setup starts, custom tools as the next step, and the website as an API

Speed is one part of being ready for customers; the other part is trust.

What to check before you show it to a customer

A voice agent acting in someone's browser needs clear limits. The customer always opens the session and watches every step, so the agent never browses out of sight. Before a real pilot, add these:

  • Mask sensitive fields. Every page snapshot goes to the language model, so hide account and payment fields with the Webfuse Masking app.
  • Confirm out loud. The agent says what it is about to change and waits for a yes.
  • Stay on the customer's domains with the Automation app allowlist.
  • Keep keys on the server. The LiveKit secret and Webfuse keys live only in the worker's settings.
  • Keep a record. LiveKit keeps the conversation, and the Webfuse Recording and Audit Log apps add a screen replay and a list of every action.

The bottom line

A LiveKit agent that can use any website is no longer a research project. The pieces exist, the reference code is about 600 lines, and a working demo takes about 25 minutes. LiveKit brings the real-time voice, Webfuse brings the live page, and the customer stays in their own browser the whole time. Our test on 27 popular websites shows where the real work is: pages that are too long to read at once, cookie banners on most first visits, and a second or more for every step.

Start with the agent working out each step itself, then turn the journeys your customers repeat into custom tools so the conversation stays fast. To build it today, follow the step-by-step guide or start from the code on GitHub.

Methodology

  • When: 1 December 2026, 3 rounds, each in a new Webfuse session.
  • Websites: the homepages of amazon.com, walmart.com, bestbuy.com, apple.com, nike.com, zara.com, booking.com, airbnb.com, delta.com, united.com, klm.com, dhl.com, ups.com, fedex.com, usps.com, paypal.com, chase.com, bankofamerica.com, wellsfargo.com, verizon.com, netflix.com, spotify.com, uber.com, irs.gov, gov.uk, wikipedia.org and github.com.
  • Left out: we started with 35 sites. 8 did not load normally. Our test used an automated browser on a demo server in a data centre, and some big sites block that kind of traffic. We could not tell which of the two they reacted to, so we left those sites out rather than guess.
  • Calls: through the Webfuse Session MCP on a demo Webfuse instance: navigate, then see_domSnapshot with interactive elements only and Webfuse IDs (the call behind browser_read_page), act_scroll on the page and pageInfo. Each page had up to 20 seconds to load its title, then 5 more seconds to settle, before it was read.
  • Browser: the session ran in Chromium on a server in Germany, so sites showed their German or European versions and cookie banners.
  • Measures: time per call as seen by our client, page size in characters, and tokens counted with GPT-4o's tokenizer (o200k_base). Page sizes are the median of each site's successful visits. Cookie banners were checked by hand on screenshots of the first round and in the page text.
  • Limits: homepages only, one location and a demo instance. Times include the network between our server and Webfuse, and leave out the model's own thinking time.

Frequently Asked Questions

Can a LiveKit voice agent control a website? +
How long does it take to build a LiveKit voice agent that uses a website? +
Does the website need to add code or an API? +
Why is the voice agent slow on some tasks, and how do you make it faster? +
How long does each browser step take for a voice agent? +
Are websites too big for an AI agent to read? +
Is it safe to let a voice agent act in a customer's browser? +

Ready to let your AI agent act on the live web?

Headless browsers give your agent a copy of the web. Webfuse gives it the session your user is actually in — over MCP, with no install.

  • No credit card
  • Free forever plan
  • Quick setup
AI Agent
MCP
Find the claim form
Fill patient details
Submit claim
Task completed

Related Articles