How it works
Your ElevenLabs 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. Everything runs in the customer's own browser.
ElevenLabs
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 Webfuse session. The website loads inside it, in their own browser.
- Widget A Webfuse extension puts your ElevenLabs agent in the corner of the session, as a voice widget.
- ElevenLabs The agent hears the request and calls browser tools: snapshot, click, type, navigate.
- Webfuse 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, an ElevenLabs account with Agents, and a website to work on. Everything else is on this page: the prompt, the eight tool definitions and the voice widget to download. The same files are in one GitHub repository.
- github.com/webfuse-com/elevenlabs-voice-agent: the prompt, the eight tools, the script that adds them and the widget source, with a quick start.
- webfuse-elevenlabs-widget.zip: the voice widget extension, ready to install on your Space.
Step 01/ 06 5 min
Create your Automation Space
- Sign in at webfuse.com/studio and open Spaces. You see your Spaces and the four Space templates.
- 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 the same place: an Automation Space, with the automation layer switched on.
Step 02/ 06 5 min
Create your ElevenLabs agent
- In ElevenLabs, open Agents and create an agent. Name it something a customer would trust, such as Web Assistant, and give it a first message and a voice.
- Open the agent, stay on the Prompt tab and paste the prompt below.
- Note your agent ID from the URL. It starts with
agent_. You need it in step 4.
# Web Agent
## Identity
You are a voice agent that helps a customer on a website by using the web browser for them. The customer is watching the same live browser session and hears everything you say.
## Environment
The current web page is the source of truth, and a page is already open. Before asking where to search or which site to use, take a DOM snapshot of the current page. It is almost always the right context. Only go to a different site when the customer asks for it.
Rules:
- Act only on elements that appear in your latest DOM snapshot. Never guess elements.
- Target an element by its wf-id when the snapshot shows one. Otherwise use a short CSS selector, such as an id.
- Take a new snapshot after you navigate or after the page changes. Otherwise act on the snapshot you already have, and never take the same snapshot twice in a row without acting in between.
- If a cookie or consent banner blocks the page, choose the most privacy-friendly option, such as "Strictly necessary only", before doing anything else.
## How to act
- When the customer asks you to find or do something, assume the current page is the target. Act first, then report.
- Never ask the customer to do something in the browser that you can do yourself.
- Use as few tool calls as you can.
## Confirm before you change anything
- Before changing the customer's data, say what you are about to change and wait for a yes.
- Before anything that cannot be undone, such as submitting an order, sending a payment or deleting data, ask for explicit confirmation every time.
- Never type passwords, payment card details or one-time codes. Ask the customer to enter those themselves.
## When something goes wrong
- If a tool fails or times out, take a new snapshot and try once more. If it still fails, say plainly what happened. Never report a result you did not see on the page.
- If the site asks for a login, a CAPTCHA or a security code, hand over to the customer.
## How you speak
- Your words are spoken aloud. Use short, plain sentences. No lists, markdown or emoji.
- Do not mention DOM snapshots, wf-ids or tools.
- After completing a request, state the result and stop. Ask a question only when you cannot continue without the answer.
Step 03/ 06 10 min
Add the browser tools
Still in your agent, open the Tools tab. You add eight client tools: functions that run inside the customer's browser session. take_dom_snapshot gives the agent its eyes, click and type its hands. The others make interactions smoother.
- Click Add tool and choose the JSON option.
- Open the first tool below, click Copy, paste it and save. Repeat for all eight.
take_dom_snapshotReads the live page.
{
"type": "client",
"name": "take_dom_snapshot",
"description": "Take a snapshot of the currently browsed web page. That means, serlialize its DOM to HTML in order to analyze the inherent UI.",
"disable_interruptions": false,
"force_pre_tool_speech": "auto",
"tool_call_sound": null,
"tool_call_sound_behavior": "auto",
"tool_error_handling_mode": "auto",
"execution_mode": "immediate",
"assignments": [],
"expects_response": false,
"response_timeout_secs": 1,
"parameters": [],
"dynamic_variables": {
"dynamic_variable_placeholders": {}
}
}
clickClicks an element.
{
"type": "client",
"name": "click",
"description": "Click an element in the web page.",
"disable_interruptions": false,
"force_pre_tool_speech": "auto",
"tool_call_sound": null,
"tool_call_sound_behavior": "auto",
"tool_error_handling_mode": "auto",
"execution_mode": "immediate",
"assignments": [],
"expects_response": true,
"response_timeout_secs": 1,
"parameters": [
{
"id": "target",
"type": "string",
"value_type": "llm_prompt",
"description": "The unique CSS selector of the element to click.",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
}
],
"dynamic_variables": {
"dynamic_variable_placeholders": {}
}
}
typeTypes into a field.
{
"type": "client",
"name": "type",
"description": "Type to an element in the web page.",
"disable_interruptions": false,
"force_pre_tool_speech": "auto",
"tool_call_sound": "typing",
"tool_call_sound_behavior": "auto",
"tool_error_handling_mode": "auto",
"execution_mode": "immediate",
"assignments": [],
"expects_response": true,
"response_timeout_secs": 7,
"parameters": [
{
"id": "target",
"type": "string",
"value_type": "llm_prompt",
"description": "The unique CSS selector of the element to type to.",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
},
{
"id": "text",
"type": "string",
"value_type": "llm_prompt",
"description": "Text to type.",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
}
],
"dynamic_variables": {
"dynamic_variable_placeholders": {}
}
}
navigateOpens a URL in the session.
{
"type": "client",
"name": "navigate",
"description": "Navigate to a different website by URL.",
"disable_interruptions": false,
"force_pre_tool_speech": "auto",
"tool_call_sound": null,
"tool_call_sound_behavior": "auto",
"tool_error_handling_mode": "auto",
"execution_mode": "immediate",
"assignments": [],
"expects_response": true,
"response_timeout_secs": 15,
"parameters": [
{
"id": "url",
"type": "string",
"value_type": "llm_prompt",
"description": "URL to navigate to.",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
}
],
"dynamic_variables": {
"dynamic_variable_placeholders": {}
}
}
scrollScrolls an element into view, or the page.
{
"type": "client",
"name": "scroll",
"description": "Scroll in the page or a certain element. The element will be scrolled to by using element.scrollIntoView({ behavior: 'smooth', block: 'center' });",
"disable_interruptions": false,
"force_pre_tool_speech": "auto",
"tool_call_sound": null,
"tool_call_sound_behavior": "auto",
"tool_error_handling_mode": "auto",
"execution_mode": "immediate",
"assignments": [],
"expects_response": true,
"response_timeout_secs": 7,
"parameters": [
{
"id": "target",
"type": "string",
"value_type": "llm_prompt",
"description": "Requires a CSS selector of the element you'd like to scroll to.",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
},
{
"id": "amount",
"type": "integer",
"value_type": "llm_prompt",
"description": "Requires an amount of pixels to vertically scroll (negative scrolls up).",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
}
],
"dynamic_variables": {
"dynamic_variable_placeholders": {}
}
}
mouse_moveMoves the pointer, for hover menus.
{
"type": "client",
"name": "mouse_move",
"description": "Move the mouse pointer to a certain pixel coordinate.",
"disable_interruptions": false,
"force_pre_tool_speech": "auto",
"tool_call_sound": null,
"tool_call_sound_behavior": "auto",
"tool_error_handling_mode": "auto",
"execution_mode": "immediate",
"assignments": [],
"expects_response": false,
"response_timeout_secs": 1,
"parameters": [
{
"id": "target",
"type": "string",
"value_type": "llm_prompt",
"description": "CSS selector of element to center mouse pointer over.",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
}
],
"dynamic_variables": {
"dynamic_variable_placeholders": {}
}
}
text_selectHighlights text for the customer.
{
"type": "client",
"name": "text_select",
"description": "Select a specific part of text in the page to emphasise it.",
"disable_interruptions": false,
"force_pre_tool_speech": "auto",
"tool_call_sound": null,
"tool_call_sound_behavior": "auto",
"tool_error_handling_mode": "auto",
"execution_mode": "immediate",
"assignments": [],
"expects_response": true,
"response_timeout_secs": 1,
"parameters": [
{
"id": "target",
"type": "string",
"value_type": "llm_prompt",
"description": "The CSS selector of the element to highlight.",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
},
{
"id": "text",
"type": "string",
"value_type": "llm_prompt",
"description": "The text in the selected element to highlight.",
"dynamic_variable": "",
"constant_value": "",
"enum": null,
"is_system_provided": false,
"required": true
}
],
"dynamic_variables": {
"dynamic_variable_placeholders": {}
}
}
get_current_locationReturns the current page URL.
{
"type": "client",
"name": "get_current_location",
"description": "Get the URL of the currently browsed web page.",
"disable_interruptions": false,
"force_pre_tool_speech": "auto",
"tool_call_sound": null,
"tool_call_sound_behavior": "auto",
"tool_error_handling_mode": "auto",
"execution_mode": "immediate",
"assignments": [],
"expects_response": true,
"response_timeout_secs": 7,
"parameters": [],
"dynamic_variables": {
"dynamic_variable_placeholders": {}
}
}
ELEVENLABS_API_KEY=sk_... python3 add_webfuse_tools.py agent_...
add_webfuse_tools.pyPython 3, no extra packages.
# Adds the eight Webfuse browser tools to your ElevenLabs agent.
# Usage: ELEVENLABS_API_KEY=sk_... python3 add_webfuse_tools.py agent_...
# Safe to run twice: tools that already exist are reused, not duplicated.
import json, os, sys, urllib.request, urllib.error
KEY = os.environ.get("ELEVENLABS_API_KEY")
if not KEY or len(sys.argv) != 2:
sys.exit("Usage: ELEVENLABS_API_KEY=sk_... python3 add_webfuse_tools.py agent_...")
AGENT = sys.argv[1]
BASE = "https://api.elevenlabs.io/v1/convai"
TOOLS = json.loads(r"""[
{
"type": "client",
"name": "take_dom_snapshot",
"description": "Take a snapshot of the currently browsed web page. That means, serlialize its DOM to HTML in order to analyze the inherent UI.",
"expects_response": false,
"response_timeout_secs": 1,
"parameters": {
"type": "object",
"properties": {},
"required": []
}
},
{
"type": "client",
"name": "click",
"description": "Click an element in the web page.",
"expects_response": true,
"response_timeout_secs": 1,
"parameters": {
"type": "object",
"properties": {
"target": {
"type": "string",
"description": "The unique CSS selector of the element to click."
}
},
"required": [
"target"
]
}
},
{
"type": "client",
"name": "type",
"description": "Type to an element in the web page.",
"expects_response": true,
"response_timeout_secs": 7,
"parameters": {
"type": "object",
"properties": {
"target": {
"type": "string",
"description": "The unique CSS selector of the element to type to."
},
"text": {
"type": "string",
"description": "Text to type."
}
},
"required": [
"target",
"text"
]
}
},
{
"type": "client",
"name": "navigate",
"description": "Navigate to a different website by URL.",
"expects_response": true,
"response_timeout_secs": 15,
"parameters": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "URL to navigate to."
}
},
"required": [
"url"
]
}
},
{
"type": "client",
"name": "scroll",
"description": "Scroll in the page or a certain element. The element will be scrolled to by using element.scrollIntoView({ behavior: 'smooth', block: 'center' });",
"expects_response": true,
"response_timeout_secs": 7,
"parameters": {
"type": "object",
"properties": {
"target": {
"type": "string",
"description": "Requires a CSS selector of the element you'd like to scroll to."
},
"amount": {
"type": "integer",
"description": "Requires an amount of pixels to vertically scroll (negative scrolls up)."
}
},
"required": [
"target",
"amount"
]
}
},
{
"type": "client",
"name": "mouse_move",
"description": "Move the mouse pointer to a certain pixel coordinate.",
"expects_response": false,
"response_timeout_secs": 1,
"parameters": {
"type": "object",
"properties": {
"target": {
"type": "string",
"description": "CSS selector of element to center mouse pointer over."
}
},
"required": [
"target"
]
}
},
{
"type": "client",
"name": "text_select",
"description": "Select a specific part of text in the page to emphasise it.",
"expects_response": true,
"response_timeout_secs": 1,
"parameters": {
"type": "object",
"properties": {
"target": {
"type": "string",
"description": "The CSS selector of the element to highlight."
},
"text": {
"type": "string",
"description": "The text in the selected element to highlight."
}
},
"required": [
"target",
"text"
]
}
},
{
"type": "client",
"name": "get_current_location",
"description": "Get the URL of the currently browsed web page.",
"expects_response": true,
"response_timeout_secs": 7,
"parameters": {
"type": "object",
"properties": {},
"required": []
}
}
]""")
def api(method, path, body=None):
req = urllib.request.Request(BASE + path, method=method,
data=json.dumps(body).encode() if body is not None else None,
headers={"xi-api-key": KEY, "Content-Type": "application/json"})
try:
with urllib.request.urlopen(req, timeout=60) as r:
return json.loads(r.read().decode() or "{}")
except urllib.error.HTTPError as e:
sys.exit(f"{method} {path} failed ({e.code}): {e.read().decode()[:300]}")
existing = {t["tool_config"]["name"]: t["id"] for t in api("GET", "/tools").get("tools", [])}
ids = []
for cfg in TOOLS:
if cfg["name"] in existing:
print(f" {cfg['name']:<22} already exists, reusing it")
ids.append(existing[cfg["name"]])
else:
ids.append(api("POST", "/tools", {"tool_config": cfg})["id"])
print(f" {cfg['name']:<22} created")
# Keep any tools the agent already has, then add ours
agent = api("GET", f"/agents/{AGENT}")
current = agent["conversation_config"]["agent"]["prompt"].get("tool_ids") or []
merged = current + [i for i in ids if i not in current]
api("PATCH", f"/agents/{AGENT}", {"conversation_config": {"agent": {"prompt": {"tool_ids": merged}}}})
print(f"Done. {len(ids)} Webfuse tools are attached to {AGENT}. Start a new conversation to use them.")
Step 04/ 06 5 min
Connect the widget to your Space
- Download webfuse-elevenlabs-widget.zip (8 KB).
- Back in Webfuse Studio, install the extension on your Automation Space. It puts a floating voice widget into every session in the Space.
- During install you are asked for one setting, Agent key. Paste your agent ID (
agent_…) from step 2. That is the whole handshake: the widget now talks to your agent. - While you are in Studio, open your Space's Developers tab and copy the Automation key (
ak_…). You only need it for step 6.
Step 05/ 06 2 min
Talk to your agent
Start a session in your Space and browse to any website. The ElevenLabs widget appears in the corner of the session and starts a conversation on its own. It starts muted: click the microphone button (allow the microphone if the browser asks) and just talk, or click the keyboard button to type.
- "What's on this page?" The agent takes a DOM snapshot and answers.
- "Click the pricing link." It finds the element and clicks it in the live session, telling you what it is doing.
- "Look up the Eiffel Tower on Wikipedia and tell me how tall it is." It opens the article, reads it and answers: 330 metres.
Step 06/ 06 5 min
Optional: Session MCP for phone agents
Steps 1 to 5 put the agent inside the browser session, through the widget. For a phone agent, connect ElevenLabs to the Webfuse Session MCP server instead. The agent then gets the same browser tools as MCP tools and drives whichever session you point it at.
- Have your Automation key (
ak_…) from step 4 ready. - In ElevenLabs, open Integrations, click Add integration and create an MCP server with URL
https://session-mcp.webfuse.com/mcpand authentication Bearer token with yourak_key. If your Space runs on another Webfuse domain, use that domain aftersession-mcp. - In the agent editor, open the Tools tab and switch to the MCP segment. Click Add server and pick your Webfuse MCP server. This is what gives the agent the tools: adding the integration alone is not enough.
- Start a new conversation with the agent, and pass the
session_idof the session it should drive.
For a quick smoke test, open a session yourself and tell the agent: "Use Webfuse session <session-id>. Navigate to https://webfuse.com and describe what you see." Then compare its answer with the session.
Debugging tips
Every action passes through two products: ElevenLabs 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 widget does not appear | Start a new session. Extensions load when a session starts. Check that Agent key is set on the extension. |
| The widget opens but the agent never hears you | The widget starts with the microphone muted. Click the microphone button, or the keyboard button to type instead. Allow the microphone if the browser asks. |
| The widget shows CONVERSATION TERMINATED right away | The widget connects with the agent ID alone. Check the ID, and check that the agent does not require authentication in its ElevenLabs security settings. |
| The conversation shows a tool call, but nothing happens on the page | The widget only runs tools with these exact names: take_dom_snapshot, click, type, navigate, scroll, mouse_move, text_select, get_current_location. A renamed tool is never run. |
| The agent talks about the page but never acts | Check that the whole prompt from step 2 was pasted, then start a new conversation. ElevenLabs loads the prompt and tools when a conversation begins. |
| Long silences while the agent works | Each step is a round trip from ElevenLabs to the page and back. For slow tools such as navigate, set force_pre_tool_speech to on, so the agent says what it is doing first. |
| Tool calls time out on a heavy site | Raise response_timeout_secs on that tool in ElevenLabs. |
| Phone route: the agent says it has no browser tools | Add the MCP server in the agent's Tools tab, not only under Integrations, and start a new conversation. |
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 ElevenLabs 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. The prompt has the agent read back 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 agent. The widget starts conversations with your agent ID alone, so anyone who has the ID can talk to your agent on your account. Keep an eye on usage, and if you change the agent's security settings, check that the widget still connects.
- Keep a full record. ElevenLabs keeps the audio and transcript of each conversation. The Webfuse Recording and Audit Log apps add a replay of the screen and a trail of every action. Together they show what was said and what was done.
- Separate demo and production. Use a separate Space, and a separate Automation key, 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 ElevenLabs 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 ElevenLabs to the page and back, and each snapshot is a whole page for the LLM to read.
- 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.
We did this for a hands-free booking.com demo. Searching for a hotel, opening it, listing the rooms and reaching checkout are one tool each, such as bookingSearch and roomOptions. A full search is a single call of about 16 seconds, which the agent fills by telling the customer what it is looking for.
- Fewer pauses. One call instead of many round trips, so the conversation keeps its rhythm.
- 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. Phone agents on the Session MCP see the new tools straight away. For the widget, add each one as a client tool on the agent, the same way as in step 3.
