How it works
Your LiveKit voice agent already talks to your customers. With Webfuse, it can also do what a human support agent does on the web: find the right page, fill in the form, make the change for them, while the customer watches and hears every step.
LiveKit
Ears and voice
The customer speaks, your agent hears and answers. Real time, interruptible, natural. You already have this.
Webfuse
Eyes and hands
Your agent sees the live page the customer is on, and clicks, types and navigates in it, while the customer watches every action.
- Customer Opens a link. The website opens in their own browser, with your voice agent in the corner.
- Webfuse extension A voice panel in the corner connects the customer to your agent and tells it which session it is in.
- LiveKit Your agent worker hears the request and calls its browser tools: read, click, type, navigate.
- Webfuse The Session MCP runs each tool on the live page. The customer watches every step and hears the agent narrate it.
What you need, and how long it takes
A Webfuse Studio account, a LiveKit project with an API key and secret (LiveKit Cloud works out of the box), and Python 3.11 or newer. The two Python files are the usual LiveKit pieces, a worker and a token endpoint, set up for Webfuse. Everything is in one GitHub repository.
- github.com/webfuse-com/livekit-voice-agent: the agent worker, the token endpoint and the extension source, with a quick start.
- webfuse-livekit-widget.zip: the voice panel extension, ready to upload to your Space.
Step 01/ 06 5 min
Create your Automation Space
- Sign in at webfuse.com/studio and open Spaces.
- On the Automation card, click Get started with Automation. Describe a goal and let Webfuse scaffold tools for you, or create the Space manually. Both end in an Automation Space, with the automation layer switched on. That layer is what your worker talks to through the Session MCP.
Step 02/ 06 5 min
Run the agent worker
The worker is a standard LiveKit Agents app, run the way you run any other. What makes it Webfuse-aware is small: it connects to the Webfuse Session MCP with your Space's Automation key, and turns the MCP actions into browser tools for the agent.
- Clone the repository and run
pip install -r requirements.txt. - In your Space's Developers tab, copy the Automation key (
ak_) and a REST API key (rk_), and note the Space ID. Copy.env.exampleto.envand add them, next to your usual LiveKit and OpenAI values. - Start it with
python -u agent.py dev.
WEBFUSE_HOST=webfuse.com
WEBFUSE_AK_KEY=ak_... # Automation key, server side only
WEBFUSE_RK_KEY=rk_... # REST key, server side only
WEBFUSE_SPACE_ID=1234
| Tool the agent gets | What it does on the live page |
|---|---|
take_control | Attaches the agent to the customer's session, using the session ID the panel reports. |
browser_read_page | Reads the page: the elements to act on, each with a wf-id. |
browser_find | Finds elements by keyword. Useful for buttons and banners. |
browser_navigate | Opens a URL in the session. |
browser_click, browser_type, browser_press_key | Click an element, type text (optionally submitting it), press a key. |
browser_accept_cookies | Deals with cookie banners, choosing the privacy-friendly option first. |
check_supplier_stock | An example of a fixed routine: logs into a demo shop and lists what is in stock, in one call. |
Step 03/ 06 5 min
Give the panel a token endpoint
The voice panel joins a LiveKit room like any of your web clients, so it needs a room token from your server. That is LiveKit's usual token flow, not a Webfuse requirement: use the token service you already have, or token_server.py from the repository (about 50 lines). Two details matter for the panel:
- Allow any origin. The panel calls the endpoint from the Webfuse extensions origin, not from your site, so send
Access-Control-Allow-Origin: *. - Return
{url, token}as JSON on a plain GET.token_server.pydoes this on/token, so its URL ishttps://your-host/token.
Step 04/ 06 3 min
Install the voice panel extension
- Download webfuse-livekit-widget.zip.
- In Webfuse Studio, open your Automation Space, switch to the Extensions panel and upload the zip.
- The extension has one setting, TOKEN_URL. Set it to your token endpoint from step 3, for example
https://your-host/token. That is the whole handshake.
Step 05/ 06 2 min
Talk to your agent
Open your Space link. That is the whole integration on the customer's side: the session starts, any website you browse in it loads through Webfuse, and the voice panel appears in the corner. Click the microphone (allow it if the browser asks) and just talk, or click the keyboard button to type.
- "What's on this page?" The agent takes control of the session, reads the page and answers.
- "Click the pricing link." It finds the element and clicks it in the live session, telling you what it is doing.
- "Take control and open saucedemo.com." It opens the shop in the session and reads the page back to check.
Step 06/ 06 5 min
Optional: the agent sends the link
Steps 1 to 5 start with the customer opening the link. For a phone call, the worker can create the session itself and send the customer the link by SMS or email. The tools stay exactly the same; only who hands out the link changes.
The worker already has the REST key for this. One call to your Space link creates a session, or returns the active one, with the join link. Pass the LiveKit room in the metadata: the reference worker matches sessions by lk_room, so it attaches to this caller's session and never to someone else's.
room_name = ctx.session.room_io.room.name
async with httpx.AsyncClient() as c:
r = await c.post(f"https://{WEBFUSE_HOST}/+{SPACE_SLUG}/",
headers={"Authorization": f"Token {RK}"},
json={"metadata": {"lk_room": room_name}})
link = r.json()["link"] # send this to the customer by SMS or email
SPACE_SLUG is the part of your Space link after +. The customer is already talking to the agent on the phone, so the voice panel in the session is not needed: use a Space without the panel extension for this route.
Debugging tips
Every action passes through two products: your LiveKit worker decides which tool to call, and Webfuse runs it on the page. So the first question is always which side the problem is on.
| What you see | Try this |
|---|---|
| The voice panel does not appear | Start a new session. Extensions load when a session starts. |
| The panel says TOKEN_URL is not set, or token endpoint: HTTP 404 | Set TOKEN_URL on the extension to your endpoint, including the path: https://your-host/token. Then start a new session. |
| The panel connects but the agent never answers | Check the worker terminal: it must print registered worker. The first turn can take a few seconds. |
| The agent answers but never acts on the page | Check that the worker's instructions were kept whole, then restart the worker and start a new conversation. |
| A tool runs in a different browser than the customer's | One room maps to one session. The panel reports its own session ID, so the customer must talk through the panel in that same session. |
| Reading a very large page fails | Very large pages can fail to snapshot. Try a lighter page, or ask the agent to browser_find a keyword instead of reading the whole page. |
| A tool call times out | Each Session MCP tool call is capped at 15 seconds. Navigation on a slow site can hit it. The worker retries once, then reports the failure. |
Before you show it to a customer
- Mask what the agent should not read. Every snapshot of the page goes to the LLM behind your agent. The Webfuse Masking app keeps chosen fields out of snapshots and recordings. Set it up before the agent sees account or payment pages.
- Confirm out loud before changes. Have the agent say what it is about to change and wait for a yes. Test that on the customer's own forms.
- Keep the agent on the customer's domains with the Automation app allowlist from step 1.
- Protect your keys. The LiveKit API secret and the Webfuse Automation and REST keys live only in the worker's
.env. The token endpoint is public by design: keep its tokens short-lived and rate-limit it. - Keep a full record. LiveKit keeps the conversation. The Webfuse Recording and Audit Log apps add a replay of the screen and a trail of every action.
- Separate demo and production. Use a separate Space, Automation key and token endpoint for the customer's pilot.
Where you are now
Your voice agent now does what used to take a person on the phone
Until now, a customer stuck on a website called support, and someone who knows the site talked them through it, click by click. Your LiveKit agent now does that job itself. It hears the request, opens the right page, clicks and types for the customer while they watch, and tells them what it is doing. It needed no API from the site owner and no integration project.
To be honest about where that leaves you: today your agent works like a skilled person on their first day at the job. Every request means reading the page, deciding, acting and checking. That is why it works on any website. On a voice call it also means pauses, because each step is a round trip from your worker through the Session MCP to the customer's browser, and a typical task takes several of them.
- Human navigation A support agent who knows the site and talks the customer through it.
- Agentic discovery You are here Your agent reads the live page and works out each step. Works on any website from day one, at the pace of someone finding their way.
- Custom tools The routines your customers need every day become one call each. Fewer pauses, far fewer tokens.
- Website as an API Those routines become endpoints any of your systems can call.
Your next step: make it fast with custom tools
Most customers ask for the same few things. At Level 1 the agent finds its way to each of them on every call. A custom tool remembers the way: the agent calls it once with what the customer said, and the tool does the clicks and checks inside the session and returns just the answer. The reference worker already has a small example, check_supplier_stock.
We did this at scale for a hands-free booking.com demo. Searching for a hotel, opening it, listing the rooms and reaching checkout are one tool each. A full search is a single call of about 16 seconds, instead of dozens of read, decide and click steps.
- Fewer pauses. One call instead of many round trips, so the conversation keeps its rhythm, and long journeys fit within
max_tool_steps. - Far fewer tokens. The agent no longer reads whole pages to find its way, so every call costs less.
- Level 1 stays underneath. If a website changes, the agent reads the page and still gets the job done.
How to make them. Record the steps in the Automation Inspector's Playback tab and save them as a tool, with no code. Or ask your coding agent (Claude Code, for example) to build a small Space Extension that registers them: describe the routine, point it at the custom tools docs, and let it build and test them for you. Custom tools appear on the Session MCP next to the built-in ones. In the worker, give each one a thin @function_tool, the same way as browser_navigate.
