Skip to content

How to Use AI Directly on Any Web Page

Copy, switch tab, paste, wait, switch back: that is not automation. Bring AI into the page you are viewing so it sees your selection, the text and the HTML, and run the model in the cloud or locally in your browser with WebLLM.

AWFlow team
February 14, 2026 · 3 min read
PresentBoard
Illustration contrasting juggling chatbot tabs with an AI agent panel built into the web page
Share
On this page
  1. The problem with the usual way of using AI
  2. Bringing AI into the browser
  3. Running language models in the browser
  4. Why running the model locally matters
  5. Real-world examples
  6. Context + AI = agentic workflows
  7. Try it

AI tools are powerful. But the way most people use them is inefficient. You copy text from a web page, open another tab, paste it into an AI tool, wait for the answer, then switch back.

CopySwitch tabPasteWaitSwitch back
GoalUnderstand one web page
  1. Paragraph 1Copythe introSwitch tabto the chatbotPaste+ your questionWaitan answerSwitch backlost your place
  2. Paragraph 2Copythe tableSwitch tabto the chatbotPasteit loses the layoutWaita guessSwitch backcheck the page
  3. Paragraph 3Copythe conclusionSwitch tabto the chatbotPaste+ the context againWaitan answerSwitch backfinally
  4. Done, after 15 hops between tabs

Done, eventually. That's the copy-paste tax.Example of a typical research loop.

Loop
Text version
  1. 1. Copy: the intro · Switch tab: to the chatbot · Paste: + your question · Wait: an answer · Switch back: lost your place
  2. 2. Copy: the table · Switch tab: to the chatbot · Paste: it loses the layout · Wait: a guess · Switch back: check the page
  3. 3. Copy: the conclusion · Switch tab: to the chatbot · Paste: + the context again · Wait: an answer · Switch back: finally
  4. Done, after 15 hops between tabs

This breaks your context, adds friction and limits what AI can actually do for you. What if AI could work directly inside the page you’re viewing? That’s where browser-native automation changes the equation.

The problem with the usual way of using AI

Most AI tools are disconnected from your browsing. Chat apps run in their own window. They don’t know what page you’re reading, what you selected, what links the page has, what structured data is in its HTML, or what content has loaded on screen. So you carry information between them by hand. That isn’t automation; it’s assisted copy-paste.

Diagram: an external AI gets raw text and loses the page URL, HTML structure, selection and rendered state

Bringing AI into the browser

When AI runs inside the browser, it gets the live page as context. Instead of pasting text, a workflow can read the text you selected, the whole page, its full HTML, all its links or images, and what’s rendered right now.

The shift

AI stops being a separate tool and becomes a layer on the page.

A layer on the page: it sees what you see.Selection, text, HTML, links and rendered content as inputs.

Kinetic line
Text version
  1. The shift: AI stops being a separate tool and becomes a layer on the page.

For example: highlight a paragraph of a research article and summarise it on the spot; extract all product listings from a marketplace page and classify them; analyse a long post without switching tabs; rewrite text on the page to make it simpler.

Use case: a highlighted paragraph on a web page is summarized by AI in a side panel

Running language models in the browser

Most AI tools rely on cloud APIs: your data goes to outside servers, you need a connection, and the model runs remotely. Agentic Workflow gives you another option: run language models inside the browser with WebLLM.

WebLLM uses WebGPU to run optimised models on your own machine’s graphics card. The model runs on your device, your data doesn’t leave the browser, and inference is local.

  1. Your promptAnswered on your device.
  2. WebLLM engineLoads and runs the model.
  3. WebGPULets a page use the graphics card.
  4. Graphics cardThe hardware doing the maths.

Layer by layer: your prompt, the engine, WebGPU, the graphics card.Prompt → WebLLM (MLC) → WebGPU compute shaders → GPU.

Layer peel
Text version
  1. Your prompt / WebLLM engine / WebGPU / Graphics card
  2. Your prompt: Answered on your device. · WebLLM engine: Loads and runs the model. · WebGPU: Lets a page use the graphics card. · Graphics card: The hardware doing the maths.

You choose per workflow: cloud models for the biggest capabilities, or local WebLLM models for privacy and offline use. The workflow stays the same; only where it runs changes.

Your device
The internet
Your browser
AI company servera cloud model
your prompt + page text
the answer
NetworknoneLeaves your devicenoWorks offlineyes

WebLLM: the model is downloaded once and runs inside your browser.Quantised weights load into WebGPU; inference is local, with no network after the first download.

Round trip
Text version
  1. Your device: Your browser · The internet: AI company server
  2. Your browser → AI company server: your prompt + page text
  3. AI company server → Your browser: the answer
  4. Round trip: ≈ 1.5 s · Leaves your device: yes
  5. AI company server → Your device · Network: none · Leaves your device: no · Works offline: yes

Why running the model locally matters

  • Privacy: sensitive content from a page doesn’t have to be sent anywhere.
  • No network round trip: nothing waits on a server (speed then depends on your device).
  • Control: you decide whether data is processed locally or by a provider.
  • Offline: once the model is downloaded, some workflows run without a connection.

That enables uses like analysing internal dashboards without exposing their data, summarising private documents in the browser, classifying content securely, and running AI in restricted environments.

Real-world examples

  • Research: open several articles, select key sections, summarise and extract insights without leaving the page.
  • Marketplace analysis: take the visible product data, have a model turn descriptions into clean JSON, send it on to another tool.
  • Rewriting: simplify, translate or change the tone of text on the page.
  • Link intelligence: extract all links from a page and have AI sort them by type or relevance.
  • Understanding HTML: give the rendered HTML to a model to pull out structured fields when no API exists.
Product card
Lamp 40W, oak, €39
Kettle 1.7L steel €29
Grinder: burr, €89
Information ExtractorAI
Product cardJSON
Lamp 40W, oak, €39{oak lamp, 39}
Kettle 1.7L steel €29{steel kettle, 29}
Grinder: burr, €89{burr grinder, 89}

Clean JSON comes out, ready to send on.Structured fields per item; HTTP Request can post them to an API.

Data through a node
Text version
  1. Product card: Lamp 40W, oak, €39 · Kettle 1.7L steel €29 · Grinder: burr, €89
  2. Information Extractor
  3. Product card | JSON: Lamp 40W, oak, €39 | {oak lamp, 39} · Kettle 1.7L steel €29 | {steel kettle, 29} · Grinder: burr, €89 | {burr grinder, 89}

All of this happens inside the browser.

Context + AI = agentic workflows

AI gets much more useful when it has context. Instead of asking a model generic questions, you give it the content you selected, live page elements, structured page data and triggers you control. That creates agentic workflows: processes where AI analyses, decides and acts based on what’s on the page. The browser stops being only a viewer and becomes a place where work runs.

Traditional AI use is API-centred: the model works on what you send it. Browser-native AI is context-centred: it works on what you’re looking at. Combine live page access, workflow logic, HTTP integrations, cloud models and local WebLLM, and you get an architecture that adapts to your constraints.

Agentic workflow loop: live DOM access, LLM decision making, browser action

Try it

Using AI shouldn’t mean constant tab switching and copy-paste. It should be part of your browsing. With context-aware automation, live page interaction, and both cloud and local models, Agentic Workflow puts AI where your work happens: not a separate tool, not an isolated chat window, but a layer on the page.

Your turn

Put AI on the page you're reading

Open it in AWFlow: it reads the page and asks a model that runs in your browser. Change the instruction to anything.

Open in AWFlow (opens in a new tab)docs.awflow.io/examples/summarize-page-llm-chain.awf
Scan to open

Call to action. Scan the code or click the link.Opens the Summarize page (LLM chain) docs example in AWFlow's import page.

Try it
Text version
  1. Put AI on the page you're reading · Open it in AWFlow: it reads the page and asks a model that runs in your browser. Change the instruction to anything. · https://docs.awflow.io/examples/summarize-page-llm-chain.awf

In short

  1. Copy-paste is not automation
  2. AI on the page sees what you see
  3. Run it in the cloud or in your browser

Three. Your choice of where it runs.Cloud APIs or WebLLM on WebGPU.

Recap
Text version
  1. In short
  2. Copy-paste is not automation
  3. AI on the page sees what you see
  4. Run it in the cloud or in your browser

Automate the web you're on. Free, in your browser.