[{"data":1,"prerenderedAt":1090},["ShallowReactive",2],{"guide-webfuse-for-livekit":3},{"id":4,"title":5,"audience":6,"body":7,"created":1052,"description":1053,"extension":1054,"eyebrow":1055,"facts":1056,"head":1060,"meta":1061,"navigation":86,"ogImage":1060,"partner":19,"path":1062,"robots":1060,"schemaOrg":1060,"seo":1063,"showcase":1064,"sitemap":1071,"stem":1072,"steps":1073,"time":1086,"titleAccent":1087,"totalMinutes":1088,"updated":1060,"__hash__":1089},"guides/guides/webfuse-for-livekit.md","Give your LiveKit voice agent access to the full web","For LiveKit forward deployed engineers",{"type":8,"value":9,"toc":1049},"minimark",[10,63,90,155,388,430,502,576,750,894,942,1045],[11,12,16,24,55],"guide-section",{"id":13,"title":14,"lead":15},"how","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.",[17,18],"guide-duo",{"left-label":19,"left-text":20,"left-title":21,"right-text":22,"right-title":23},"LiveKit","The customer speaks, your agent hears and answers. Real time, interruptible, natural. You already have this.","Ears and voice","Your agent sees the live page the customer is on, and clicks, types and navigates in it, while the customer watches every action.","Eyes and hands",[25,26,27],"guide-flow",{},[28,29,30,38,44,49],"ol",{},[31,32,33,37],"li",{},[34,35,36],"strong",{},"Customer"," Opens a link. The website opens in their own browser, with your voice agent in the corner.",[31,39,40,43],{},[34,41,42],{},"Webfuse extension"," A voice panel in the corner connects the customer to your agent and tells it which session it is in.",[31,45,46,48],{},[34,47,19],{}," Your agent worker hears the request and calls its browser tools: read, click, type, navigate.",[31,50,51,54],{},[34,52,53],{},"Webfuse"," The Session MCP runs each tool on the live page. The customer watches every step and hears the agent narrate it.",[56,57,59],"guide-note",{"title":58},"Rather have it on the customer's own website?",[60,61,62],"p",{},"That works too: the Webfuse widget can start the session from a button or a script on the customer's page, and the agent works the same way. This guide uses a link because it needs no change to anyone's website, which makes it the fastest way to a demo.",[11,64,68],{"id":65,"title":66,"lead":67},"needs","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.",[69,70,71,81],"ul",{},[31,72,73,80],{},[74,75,79],"a",{"href":76,"rel":77},"https://github.com/webfuse-com/livekit-voice-agent",[78],"nofollow","github.com/webfuse-com/livekit-voice-agent",": the agent worker, the token endpoint and the extension source, with a quick start.",[31,82,83,89],{},[74,84,88],{"href":85,"download":86,"external":87},"/guides/livekit/downloads/webfuse-livekit-widget.zip",true,"","webfuse-livekit-widget.zip",": the voice panel extension, ready to upload to your Space.",[91,92,94,120,136],"guide-step",{"id":93},"space",[28,95,96,109],{},[31,97,98,99,104,105,108],{},"Sign in at ",[74,100,103],{"href":101,"rel":102},"https://webfuse.com/studio",[78],"webfuse.com/studio"," and open ",[34,106,107],{},"Spaces",".",[31,110,111,112,115,116,119],{},"On the ",[34,113,114],{},"Automation"," card, click ",[34,117,118],{},"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.",[121,122,123,131],"guide-shots",{},[124,125],"guide-shot",{"alt":126,"caption":127,"height":128,"src":129,"width":130},"The Spaces dashboard in Webfuse Studio with the Automation card","Your agent-ready Space starts from the Automation card.",653,"/guides/livekit/img-01.jpg",1400,[124,132],{"alt":133,"caption":134,"height":128,"src":135,"width":130},"The Automation get-started page","Describe your goal, or create the Space manually.","/guides/livekit/img-02.jpg",[56,137,140],{"title":138,"type":139},"Optional: keep the agent on one site","tip",[60,141,142,143,146,147,151,152,108],{},"In a session's Automation panel, ",[34,144,145],{},"Automation app allowlist"," sets where the tools work. Replace ",[148,149,150],"code",{},"\u003Call_urls>"," with your customer's domain, for example ",[148,153,154],{},"https://*.example.com/*",[91,156,158,161,210,279,285,382],{"id":157},"worker",[60,159,160],{},"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.",[28,162,163,174,204],{},[31,164,165,166,170,171,108],{},"Clone ",[74,167,169],{"href":76,"rel":168},[78],"the repository"," and run ",[148,172,173],{},"pip install -r requirements.txt",[31,175,176,177,180,181,184,185,188,189,184,192,195,196,199,200,203],{},"In your Space's ",[34,178,179],{},"Developers"," tab, copy the ",[34,182,183],{},"Automation key"," (",[148,186,187],{},"ak_",") and a ",[34,190,191],{},"REST API key",[148,193,194],{},"rk_","), and note the Space ID. Copy ",[148,197,198],{},".env.example"," to ",[148,201,202],{},".env"," and add them, next to your usual LiveKit and OpenAI values.",[31,205,206,207,108],{},"Start it with ",[148,208,209],{},"python -u agent.py dev",[211,212,214],"guide-code",{"title":213},".env, the Webfuse part",[215,216,220],"pre",{"className":217,"code":218,"language":219,"meta":87,"style":87},"language-bash shiki shiki-themes github-dark github-dark","WEBFUSE_HOST=webfuse.com\nWEBFUSE_AK_KEY=ak_...     # Automation key, server side only\nWEBFUSE_RK_KEY=rk_...     # REST key, server side only\nWEBFUSE_SPACE_ID=1234\n","bash",[148,221,222,239,254,268],{"__ignoreMap":87},[223,224,227,231,235],"span",{"class":225,"line":226},"line",1,[223,228,230],{"class":229},"suv1-","WEBFUSE_HOST",[223,232,234],{"class":233},"sOPea","=",[223,236,238],{"class":237},"s4wv1","webfuse.com\n",[223,240,242,245,247,250],{"class":225,"line":241},2,[223,243,244],{"class":229},"WEBFUSE_AK_KEY",[223,246,234],{"class":233},[223,248,249],{"class":237},"ak_...",[223,251,253],{"class":252},"sJ8bj","     # Automation key, server side only\n",[223,255,257,260,262,265],{"class":225,"line":256},3,[223,258,259],{"class":229},"WEBFUSE_RK_KEY",[223,261,234],{"class":233},[223,263,264],{"class":237},"rk_...",[223,266,267],{"class":252},"     # REST key, server side only\n",[223,269,271,274,276],{"class":225,"line":270},4,[223,272,273],{"class":229},"WEBFUSE_SPACE_ID",[223,275,234],{"class":233},[223,277,278],{"class":237},"1234\n",[124,280],{"alt":281,"caption":282,"height":283,"src":284,"width":130},"The Developers tab of a Space with the API keys, values blurred","The Developers tab of your Space. Key values are blurred here.",551,"/guides/livekit/img-03.jpg",[286,287,288,301],"table",{},[289,290,291],"thead",{},[292,293,294,298],"tr",{},[295,296,297],"th",{},"Tool the agent gets",[295,299,300],{},"What it does on the live page",[302,303,304,315,325,335,345,362,372],"tbody",{},[292,305,306,312],{},[307,308,309],"td",{},[148,310,311],{},"take_control",[307,313,314],{},"Attaches the agent to the customer's session, using the session ID the panel reports.",[292,316,317,322],{},[307,318,319],{},[148,320,321],{},"browser_read_page",[307,323,324],{},"Reads the page: the elements to act on, each with a wf-id.",[292,326,327,332],{},[307,328,329],{},[148,330,331],{},"browser_find",[307,333,334],{},"Finds elements by keyword. Useful for buttons and banners.",[292,336,337,342],{},[307,338,339],{},[148,340,341],{},"browser_navigate",[307,343,344],{},"Opens a URL in the session.",[292,346,347,359],{},[307,348,349,352,353,352,356],{},[148,350,351],{},"browser_click",", ",[148,354,355],{},"browser_type",[148,357,358],{},"browser_press_key",[307,360,361],{},"Click an element, type text (optionally submitting it), press a key.",[292,363,364,369],{},[307,365,366],{},[148,367,368],{},"browser_accept_cookies",[307,370,371],{},"Deals with cookie banners, choosing the privacy-friendly option first.",[292,373,374,379],{},[307,375,376],{},[148,377,378],{},"check_supplier_stock",[307,380,381],{},"An example of a fixed routine: logs into a demo shop and lists what is in stock, in one call.",[56,383,385],{"title":384,"type":139},"Keep the worker's instructions whole",[60,386,387],{},"They anchor the agent to the live page: read before acting, act, read again to check, and report tool failures exactly instead of inventing details. With a generic \"helpful assistant\" prompt, the agent answers web questions from memory instead of reading the page.",[91,389,391,400],{"id":390},"token",[60,392,393,394,399],{},"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 ",[74,395,398],{"href":396,"rel":397},"https://github.com/webfuse-com/livekit-voice-agent/blob/main/token_server.py",[78],"token_server.py"," from the repository (about 50 lines). Two details matter for the panel:",[69,401,402,411],{},[31,403,404,407,408,108],{},[34,405,406],{},"Allow any origin."," The panel calls the endpoint from the Webfuse extensions origin, not from your site, so send ",[148,409,410],{},"Access-Control-Allow-Origin: *",[31,412,413,419,420,422,423,426,427,108],{},[34,414,415,416],{},"Return ",[148,417,418],{},"{url, token}"," as JSON on a plain GET. ",[148,421,398],{}," does this on ",[148,424,425],{},"/token",", so its URL is ",[148,428,429],{},"https://your-host/token",[91,431,433,460,484,496],{"id":432},"extension",[56,434,436,439,442,453],{"title":435,"type":139},"A voice panel we built for you to start from",[60,437,438],{},"It works out of the box: a microphone button, a live transcript and a keyboard for typing, in the corner of every session in the Space. It bundles the LiveKit browser SDK, connects through your token endpoint and tells your worker which session it is in.",[60,440,441],{},"It is yours to customise completely. A Webfuse extension is plain HTML, CSS and JavaScript with a manifest, much like a browser extension, so you can:",[69,443,444,447,450],{},[31,445,446],{},"restyle it in the customer's brand, or move it to a side panel;",[31,448,449],{},"change the wording, the buttons and what the panel shows;",[31,451,452],{},"add custom tools for the customer's own journeys.",[60,454,455],{},[74,456,459],{"href":457,"rel":458},"https://dev.webfuse.com/extensions/",[78],"Read the extension docs",[28,461,462,467,474],{},[31,463,464,465,108],{},"Download ",[74,466,88],{"href":85,"download":86,"external":87},[31,468,469,470,473],{},"In Webfuse Studio, open your Automation Space, switch to the ",[34,471,472],{},"Extensions"," panel and upload the zip.",[31,475,476,477,480,481,483],{},"The extension has one setting, ",[34,478,479],{},"TOKEN_URL",". Set it to your token endpoint from step 3, for example ",[148,482,429],{},". That is the whole handshake.",[121,485,486,491],{},[124,487],{"alt":488,"caption":489,"height":283,"src":490,"width":130},"The Extensions panel of a Space with the voice widget installed","The Extensions panel, with the voice panel installed.","/guides/livekit/img-04.jpg",[124,492],{"alt":493,"caption":494,"height":283,"src":495,"width":130},"The extension's TOKEN_URL setting","One setting: TOKEN_URL.","/guides/livekit/img-05.jpg",[56,497,499],{"title":498},"Extensions load when a session starts",[60,500,501],{},"Install the extension before you invite anyone, and start a fresh session after changing its settings. A session that is already open keeps the version it started with.",[91,503,505,508,521,542,547],{"id":504},"talk",[60,506,507],{},"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.",[121,509,510,516],{},[124,511],{"alt":512,"caption":513,"height":514,"src":515,"width":130},"The Space link in Webfuse Studio","The customer opens the Space link. No snippet and no change to their website.",656,"/guides/livekit/img-06.jpg",[124,517],{"alt":518,"caption":519,"height":283,"src":520,"width":130},"The voice panel in a fresh session","The voice panel in a fresh session. One click on the microphone and the agent is live.","/guides/livekit/img-07.jpg",[69,522,523,530,536],{},[31,524,525,529],{},[526,527,528],"em",{},"\"What's on this page?\""," The agent takes control of the session, reads the page and answers.",[31,531,532,535],{},[526,533,534],{},"\"Click the pricing link.\""," It finds the element and clicks it in the live session, telling you what it is doing.",[31,537,538,541],{},[526,539,540],{},"\"Take control and open saucedemo.com.\""," It opens the shop in the session and reads the page back to check.",[124,543],{"alt":544,"caption":545,"height":283,"src":546,"width":130},"The agent driving the session on the demo shop, narrating each step","The agent drove this session to the demo shop on its own, and narrated every step.","/guides/livekit/img-08.jpg",[56,548,550],{"title":549},"Good to know while testing",[69,551,552,558,564,570],{},[31,553,554,557],{},[34,555,556],{},"Open each session link once."," A second open joins the same session as another participant. For a fresh start, open a new session.",[31,559,560,563],{},[34,561,562],{},"Keep the session tab in front, and its size steady."," Browsers slow down background tabs, and a resize can change the page layout halfway through a run.",[31,565,566,569],{},[34,567,568],{},"Changed the worker's tools or instructions? Restart the worker."," Rooms are served by the worker as it is running now.",[31,571,572,575],{},[34,573,574],{},"Give the first turn a moment."," The worker joins when the panel connects, so the first reply can take a few seconds.",[91,577,579,582,588,595,740],{"id":578},"link",[60,580,581],{},"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.",[56,583,585],{"title":584},"The customer still opens the session",[60,586,587],{},"A Webfuse session always runs in a browser, and the tools act on the browser of whoever has it open. The customer opens the link and watches while the agent works and talks them through it. The agent never browses on its own, out of the customer's sight.",[60,589,590,591,594],{},"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 ",[148,592,593],{},"lk_room",", so it attaches to this caller's session and never to someone else's.",[211,596,598],{"title":597},"Inside the worker: create a session and send the link",[215,599,603],{"className":600,"code":601,"language":602,"meta":87,"style":87},"language-python shiki shiki-themes github-dark github-dark","room_name = ctx.session.room_io.room.name\nasync with httpx.AsyncClient() as c:\n    r = await c.post(f\"https://{WEBFUSE_HOST}/+{SPACE_SLUG}/\",\n                     headers={\"Authorization\": f\"Token {RK}\"},\n                     json={\"metadata\": {\"lk_room\": room_name}})\n    link = r.json()[\"link\"]   # send this to the customer by SMS or email\n","python",[148,604,605,615,632,667,698,720],{"__ignoreMap":87},[223,606,607,610,612],{"class":225,"line":226},[223,608,609],{"class":229},"room_name ",[223,611,234],{"class":233},[223,613,614],{"class":229}," ctx.session.room_io.room.name\n",[223,616,617,620,623,626,629],{"class":225,"line":241},[223,618,619],{"class":233},"async",[223,621,622],{"class":233}," with",[223,624,625],{"class":229}," httpx.AsyncClient() ",[223,627,628],{"class":233},"as",[223,630,631],{"class":229}," c:\n",[223,633,634,637,639,642,645,648,651,655,658,661,664],{"class":225,"line":256},[223,635,636],{"class":229},"    r ",[223,638,234],{"class":233},[223,640,641],{"class":233}," await",[223,643,644],{"class":229}," c.post(",[223,646,647],{"class":233},"f",[223,649,650],{"class":237},"\"https://",[223,652,654],{"class":653},"s8ozJ","{WEBFUSE_HOST}",[223,656,657],{"class":237},"/+",[223,659,660],{"class":653},"{SPACE_SLUG}",[223,662,663],{"class":237},"/\"",[223,665,666],{"class":229},",\n",[223,668,669,673,675,678,681,684,686,689,692,695],{"class":225,"line":270},[223,670,672],{"class":671},"s-3mD","                     headers",[223,674,234],{"class":233},[223,676,677],{"class":229},"{",[223,679,680],{"class":237},"\"Authorization\"",[223,682,683],{"class":229},": ",[223,685,647],{"class":233},[223,687,688],{"class":237},"\"Token ",[223,690,691],{"class":653},"{RK}",[223,693,694],{"class":237},"\"",[223,696,697],{"class":229},"},\n",[223,699,701,704,706,708,711,714,717],{"class":225,"line":700},5,[223,702,703],{"class":671},"                     json",[223,705,234],{"class":233},[223,707,677],{"class":229},[223,709,710],{"class":237},"\"metadata\"",[223,712,713],{"class":229},": {",[223,715,716],{"class":237},"\"lk_room\"",[223,718,719],{"class":229},": room_name}})\n",[223,721,723,726,728,731,734,737],{"class":225,"line":722},6,[223,724,725],{"class":229},"    link ",[223,727,234],{"class":233},[223,729,730],{"class":229}," r.json()[",[223,732,733],{"class":237},"\"link\"",[223,735,736],{"class":229},"]   ",[223,738,739],{"class":252},"# send this to the customer by SMS or email\n",[60,741,742,745,746,749],{},[148,743,744],{},"SPACE_SLUG"," is the part of your Space link after ",[148,747,748],{},"+",". 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.",[11,751,755,769,793,883],{"id":752,"title":753,"lead":754},"debug","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.",[56,756,758],{"title":757,"type":139},"1. Read the worker's terminal",[60,759,760,761,764,765,768],{},"Run the worker with ",[148,762,763],{},"python -u",". It prints every user turn, every tool call with its arguments, the session ID the panel reported (",[148,766,767],{},"PAGE SESSION",") and MCP errors as they happen. No tool call in the terminal means the problem is on the LiveKit side: the worker, the token endpoint or the panel. A tool call followed by an error means the problem is on the page side.",[56,770,772],{"title":771,"type":139},"2. Try the same step by hand in the Automation Inspector",[60,773,774,775,778,779,782,783,785,786,789,790,792],{},"Start a session from your Space and click the robot icon in the session's top bar. The ",[34,776,777],{},"Automation Inspector"," runs the same Webfuse actions your worker runs: ",[148,780,781],{},"see_domSnapshot"," is what ",[148,784,321],{}," returns, ",[148,787,788],{},"act_click"," is ",[148,791,351],{},". Paste in the arguments from the terminal. If the step does not work by hand, the agent cannot make it work either.",[286,794,795,805],{},[289,796,797],{},[292,798,799,802],{},[295,800,801],{},"What you see",[295,803,804],{},"Try this",[302,806,807,815,836,848,856,864,875],{},[292,808,809,812],{},[307,810,811],{},"The voice panel does not appear",[307,813,814],{},"Start a new session. Extensions load when a session starts.",[292,816,817,827],{},[307,818,819,820,823,824],{},"The panel says ",[526,821,822],{},"TOKEN_URL is not set",", or ",[526,825,826],{},"token endpoint: HTTP 404",[307,828,829,830,832,833,835],{},"Set ",[34,831,479],{}," on the extension to your endpoint, including the path: ",[148,834,429],{},". Then start a new session.",[292,837,838,841],{},[307,839,840],{},"The panel connects but the agent never answers",[307,842,843,844,847],{},"Check the worker terminal: it must print ",[148,845,846],{},"registered worker",". The first turn can take a few seconds.",[292,849,850,853],{},[307,851,852],{},"The agent answers but never acts on the page",[307,854,855],{},"Check that the worker's instructions were kept whole, then restart the worker and start a new conversation.",[292,857,858,861],{},[307,859,860],{},"A tool runs in a different browser than the customer's",[307,862,863],{},"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.",[292,865,866,869],{},[307,867,868],{},"Reading a very large page fails",[307,870,871,872,874],{},"Very large pages can fail to snapshot. Try a lighter page, or ask the agent to ",[148,873,331],{}," a keyword instead of reading the whole page.",[292,876,877,880],{},[307,878,879],{},"A tool call times out",[307,881,882],{},"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.",[56,884,886],{"title":885,"type":139},"Still stuck? Ask us",[60,887,888,889,893],{},"Email ",[74,890,892],{"href":891},"mailto:support@webfuse.com?subject=Webfuse%20for%20LiveKit","support@webfuse.com"," with the Webfuse session ID and the worker terminal output around the failure. With both, we can follow the call from your agent to the page.",[11,895,898],{"id":896,"title":897},"customer","Before you show it to a customer",[899,900,901],"guide-checks",{},[69,902,903,909,915,921,930,936],{},[31,904,905,908],{},[34,906,907],{},"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.",[31,910,911,914],{},[34,912,913],{},"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.",[31,916,917,920],{},[34,918,919],{},"Keep the agent on the customer's domains"," with the Automation app allowlist from step 1.",[31,922,923,926,927,929],{},[34,924,925],{},"Protect your keys."," The LiveKit API secret and the Webfuse Automation and REST keys live only in the worker's ",[148,928,202],{},". The token endpoint is public by design: keep its tokens short-lived and rate-limit it.",[31,931,932,935],{},[34,933,934],{},"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.",[31,937,938,941],{},[34,939,940],{},"Separate demo and production."," Use a separate Space, Automation key and token endpoint for the customer's pilot.",[11,943,947,950,953,987,992,997,1000,1023],{"id":944,"title":945,"eyebrow":946},"next","Your voice agent now does what used to take a person on the phone","Where you are now",[60,948,949],{},"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.",[60,951,952],{},"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.",[954,955,956],"guide-ladder",{},[28,957,958,964,975,981],{},[31,959,960,963],{},[34,961,962],{},"Human navigation"," A support agent who knows the site and talks the customer through it.",[31,965,966,969,970,974],{},[34,967,968],{},"Agentic discovery"," ",[971,972,973],"guide-pin",{},"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.",[31,976,977,980],{},[34,978,979],{},"Custom tools"," The routines your customers need every day become one call each. Fewer pauses, far fewer tokens.",[31,982,983,986],{},[34,984,985],{},"Website as an API"," Those routines become endpoints any of your systems can call.",[988,989,991],"h3",{"id":990},"your-next-step-make-it-fast-with-custom-tools","Your next step: make it fast with custom tools",[60,993,994,995,108],{},"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, ",[148,996,378],{},[60,998,999],{},"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.",[69,1001,1002,1011,1017],{},[31,1003,1004,1007,1008,108],{},[34,1005,1006],{},"Fewer pauses."," One call instead of many round trips, so the conversation keeps its rhythm, and long journeys fit within ",[148,1009,1010],{},"max_tool_steps",[31,1012,1013,1016],{},[34,1014,1015],{},"Far fewer tokens."," The agent no longer reads whole pages to find its way, so every call costs less.",[31,1018,1019,1022],{},[34,1020,1021],{},"Level 1 stays underneath."," If a website changes, the agent reads the page and still gets the job done.",[60,1024,1025,1028,1029,1032,1033,1038,1039,1042,1043,108],{},[34,1026,1027],{},"How to make them."," Record the steps in the Automation Inspector's ",[34,1030,1031],{},"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 ",[74,1034,1037],{"href":1035,"rel":1036},"https://dev.webfuse.com/custom-mcp-tools",[78],"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 ",[148,1040,1041],{},"@function_tool",", the same way as ",[148,1044,341],{},[1046,1047,1048],"style",{},"html pre.shiki code .suv1-, html code.shiki .suv1-{--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sOPea, html code.shiki .sOPea{--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .s4wv1, html code.shiki .s4wv1{--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s8ozJ, html code.shiki .s8ozJ{--shiki-default:#79B8FF;--shiki-dark:#79B8FF}html pre.shiki code .s-3mD, html code.shiki .s-3mD{--shiki-default:#FFAB70;--shiki-dark:#FFAB70}",{"title":87,"searchDepth":241,"depth":241,"links":1050},[1051],{"id":990,"depth":256,"text":991},"2026-11-26","With Webfuse, a LiveKit Agents worker reads, clicks and types on any website in a live session in the customer's browser, through the Webfuse Session MCP. Code on GitHub, a working demo in about 25 minutes.","md","Implementation guide · LiveKit",[1057,1058,1059],"No change to the customer's website","Any public website","Code on GitHub",null,{},"/guides/webfuse-for-livekit",{"title":5,"description":1053},{"site":1065,"siteStill":1066,"siteAlt":1067,"siteWidth":130,"siteHeight":1068,"url":1069,"caption":1070},"/guides/livekit/hero.webp","/guides/livekit/hero-still.jpg","A Webfuse session with the LiveKit voice panel in the corner. The agent reads webfuse.com and explains it, then opens the Sauce Demo shop when asked.",552,"webfuse.com","What you will have at the end, replayed from a real session. The agent reads the page the customer is on and answers from it, then takes over and opens the demo shop when asked.",{"loc":1062},"guides/webfuse-for-livekit",[1074,1076,1078,1080,1082,1084],{"id":93,"title":1075,"minutes":700},"Create your Automation Space",{"id":157,"title":1077,"minutes":700},"Run the agent worker",{"id":390,"title":1079,"minutes":700},"Give the panel a token endpoint",{"id":432,"title":1081,"minutes":256},"Install the voice panel extension",{"id":504,"title":1083,"minutes":241},"Talk to your agent",{"id":578,"title":1085,"minutes":700},"Optional: the agent sends the link","About 25 minutes to a working demo","access to the full web",25,"LibHA-ibFG8ZFv9UWBLleI0GqvSTJPRkIbibJr9L78Q",1795687904787]