In earlier articles we explained three technologies separately: WebMCP (so the web can expose actions to agents), WebGPU (to use the user's GPU) and Gemini Nano (the AI model built into the browser). Now comes the fun part: bringing them together in a real use case. This is the assistant you have on this very website, and here we tell you exactly how it works under the hood.
The Idea in One Sentence
A conversational assistant that lives in your browser, answers your questions using only the content of the Fastex blog and, when it can't answer with confidence, helps you fill in the contact form so that we can talk to you. Without sending your questions to any server.
The Assistant's Two Missions
The assistant has a deliberately simple and predictable behavior, with two missions:
- Answer questions about Fastex and our solutions, exclusively with the information published in our articles. If the answer isn't in the blog, it doesn't make one up.
- Refer to contact. When a question goes beyond what the articles cover, instead of making something up, it offers to help fill in the contact form and guides the user through the process.
This clear boundary (answering only from our own sources or referring on) is what makes the assistant reliable. It is the difference between a chatbot that leaves you confused and an assistant that adds value.
The Architecture, Step by Step

The complete flow combines all three technologies. You can follow it in the architecture diagram that accompanies this article, but here is the narrated version.
Step 1 — The User Asks
The user types their question into the chat. Everything that follows happens inside their browser.
Step 2 — Semantic Search with WebGPU
Before answering, the assistant needs to find the blog passage most relevant to the question. To do this it:
- Converts the question into an embedding (a numerical representation of its meaning).
- Compares that embedding with those of our article passages, which were calculated beforehand.
- Selects the most similar passages.
This computation is accelerated with WebGPU, using the user's own GPU. It is the "retrieval" phase of a pattern known as RAG (Retrieval-Augmented Generation): first retrieve the information, then generate the answer. If the device doesn't support WebGPU, the assistant falls back to a simpler keyword search as plan B.
Step 3 — Answer with Gemini Nano
The retrieved passages are handed to Gemini Nano through the Prompt API, together with a very clear instruction: "Answer in a friendly and helpful way using only this context. If it isn't in the context, say so."
The model reasons and writes the answer locally, in Spanish, and we display it as a stream so it appears immediately. The user perceives speed and naturalness; we keep control over the sources.
Step 4 — The Decision: Answer or Refer?
Here is the smart part. We ask Gemini Nano for a structured response (a JSON with a fixed schema) indicating whether the question could be resolved with the context or could not. Because it is structured data and not free text, the decision is reliable and easy to program.
- If it was resolved: the answer is shown and that's it.
- If it was not resolved with confidence: the assistant moves on to its second mission.
Step 5 — Assisted Form Filling with WebMCP
When it's time to refer, WebMCP comes into play. We have registered a set of tools on the page that the assistant can use, for example:
rellenar_formulario_contacto({ nombre, email, mensaje })enviar_formulario_contacto()
The assistant talks with the user to collect any missing details ("What's your name?", "Which email should we contact you at?", "Briefly tell me what you need") and, with that information, invokes the WebMCP tools to fill in the form fields. The final submission always stays under control: the user is asked to confirm before anything is sent.
This way, the agent doesn't need to "guess" the structure of the page: it uses explicitly declared actions, which makes it safe and predictable.
Why We Like This Design (and What It Says About Us)
This use case sums up the Fastex philosophy quite well:
- Real privacy: the user's questions don't leave the browser. The model and the search run locally.
- Zero cost per query: there is no inference server behind it; we make use of the user's device.
- Reliability: the assistant answers only from our own sources and, when it can't, it acknowledges that and refers on instead of making things up.
- Bounded AI: each technology does what it does best (WebGPU computes, Gemini Nano reasons, WebMCP acts) within a system with clear rules.
- Human oversight: sensitive actions, such as submitting the form, go through user confirmation.
The Result
A friendly assistant that genuinely helps: it answers instantly with accurate information from our blog and, if your need goes beyond that, takes you by the hand to the contact form so that we can talk. Cutting-edge technology put to work for something very simple: making it easy for you to get your question answered or to reach us.
We built this assistant ourselves, and we can build yours. If you want an AI agent on your website (private, fast and engineered with care), get in touch through the contact form. If the assistant doesn't resolve your question, it will help you fill it in itself.