# An AI search bar for website content, answered on the visitor's account

Source: https://tensorpass.app/blog/guides/add-ai-chat-to-a-website/ai-search-bar-that-answers-from-your-pages
Published on 26 November 2026.

> An AI search bar for website content answers a visitor's question in two or three sentences drawn from your own pages. The TensorPass search module calls your MCP tool, and the visitor's own AI account pays for each answer.

An AI search bar for website content answers a visitor's question in two or three sentences drawn from your own pages, with the page it came from. Keyword search returns every page that contains the typed words and leaves the reading to the visitor. In November 2026, the products sold as AI search bars on the first page of results are hosted support chatbots placed in a search field and billed to the site from a monthly allowance of replies or credits. One WordPress plugin in the same results reads none of the site. This page covers the TensorPass search module: it answers from your pages through a tool on your MCP server, the visitor's own AI account pays for each answer, and your keyword results stay on screen for visitors without one.

> **Key takeaways:**
> - Wonderchat's Starter plan includes 500 AI replies a month for $32.50 a month billed yearly in November 2026, about $0.065 per reply.
> - SiteSpeakAI's Starter plan includes 1,000 message credits for $29 a month in November 2026, with extra credits at $25 per 1,000.
> - The Open AI Search Bar plugin for WordPress (version 2.2, 10+ active installations in November 2026) sends each prompt to the OpenAI API on the owner's key and does not search the site.
> - The TensorPass `AiSearch` component calls the tools of your MCP server, and the SDK's tool loop runs at most 6 steps by default.

## What an AI search bar for website content changes for the visitor

A keyword engine matches the words of a query against an index and returns ranked links. An **AI search bar** sends the question to a language model, which calls your search tool, reads the pages it returns and writes a short answer that names its source page.

Take a travel content site and the query "quiet area in Lisbon for a family with a toddler". Keyword search lists every guide that contains "Lisbon", "quiet" or "family", and the visitor opens them one by one. The search module calls your guide search tool, reads the guides it returns and answers in two sentences, with your own result card for the guide under the answer. The answer only holds what your pages hold. A question no page covers gets an empty tool result, and the last step of this page turns those misses into a list of pages to write.

## What the ranking AI search bars run on

Two of the three products on the first page are support chatbots presented as a search field. Wonderchat describes its search bar as one that "puts the full intelligence of your chatbot directly in the hands of your visitors". SiteSpeakAI includes its AI search bar on every plan, Free included, and answers from the current page context together with the site's content. When a SiteSpeakAI account runs out of message credits, its agent stops giving AI answers until the credits renew the next month.

The third is a WordPress plugin. Its author, Vimal Kava, states on its WordPress.org listing: "This plugin does not search or display your website’s internal content." It needs the owner's OpenAI API key, and the OpenAI API bills that key for each prompt. The listing averages 3 out of 5 stars over 4 reviews in November 2026.

| Product | Reads your pages | Who pays for each answer | Entry offer, November 2026 |
| :- | :- | :- | :- |
| Wonderchat | Yes, 200 webpages per agent on Starter | The site, from a monthly reply allowance | $32.50 a month billed yearly, 500 AI replies |
| SiteSpeakAI | Yes, 200 training sources on Starter | The site, from monthly message credits | $29 a month, 1,000 message credits |
| Open AI Search Bar | No | The site, on its OpenAI API key | Free plugin, paid OpenAI API usage |
| TensorPass search module | Yes, through your MCP tools | The visitor's own AI account | Free SDK and site key |

![A developer desk with code on a monitor next to a small server running the site's tools](https://renderings.laboetie.io/media/Cdg6vNW0tSiPzRb47iDKG/w2560)

## The search module and the MCP tool it calls

The `AiSearch` component of `@tensorpass/aiconnect-react` looks like your site's search bar. The visitor types a question and presses Enter. The answer streams into a card under the bar, with the tools the model ran, your own result cards and the name of the account that answers. Each search starts a new conversation. A page without React uses the `aiconnect-search` Web Component, which takes the same `mcp` and `system` attributes.

### Wiring the AI search bar for website content to /api/mcp

```tsx
import { AiSearch } from '@tensorpass/aiconnect-react';

const SYSTEM = 'You answer questions about this travel site. Search the guides first. Answer in two sentences and name the guide.';

export function SiteSearch() {
  return <AiSearch system={SYSTEM} mcp="/api/mcp" suggestions={['A quiet area for a family stay']} renderToolResults={renderGuides} />;
}
```

The `mcp` prop points at your **MCP server** (Model Context Protocol, the open protocol that lets a model discover and call a site's tools). The SDK reads your tool list once with `tools/list`, sends it with the question to the visitor's model through AI Wallet, and sends `tools/call` from the visitor's browser each time the model asks for a tool. Your [retrieval over your own content](/blog/guides/add-ai-chat-to-a-website/build-a-rag-chatbot-over-your-own-website-content) sits behind one tool, such as `search_guides`, which returns JSON with each guide's title, URL and the fields your cards show. Cap its inputs in the schema and return a short list. The bookshop example in our docs returns 12 results by default and 25 at most, and limits its endpoint to 60 requests a minute per visitor address. Serve the endpoint under your own domain, at a path such as `/api/mcp`, and the browser needs no CORS setup. Names, enums and descriptions for [the MCP tool behind search](/blog/guides/add-ai-chat-to-a-website/give-your-sites-ai-chat-real-tools-with-an-mcp-server) have their own guide.

### The keyword fallback for visitors without AI Wallet

The `AiSearch` props list no keyword fallback, so the fallback is your own code. `useAiConnect()` returns the connection state, whose status is `checking`, `noWallet`, `disconnected`, `connecting`, `error` or `connected`. Render your existing keyword search with the `ConnectButton` for every status other than `connected`, and `AiSearch` once the visitor's AI is connected. The button opens the connect window and renders nothing after the connection.

```tsx
function SearchSlot() {
  const { state } = useAiConnect();
  if (state.status === 'connected') return <SiteSearch />;
  return <><KeywordSearch /><ConnectButton /></>;
}
```

AI Wallet runs in desktop Chrome, Edge, Brave, Opera and Firefox, and a Safari version is planned. A visitor with no AI plan subscribes to the TensorPass plan at US$5, US$20 or US$50 a month, paid by the visitor.

## Measure the searches that found nothing

Each `ChatTurn` keeps its tool calls in `turn.tools`, with the raw text each tool returned. A search that matches nothing returns `[]`, and a failed lookup returns a result that starts with `Tool error:`. Wonderchat flags unanswered questions for review, and SiteSpeakAI lists the questions its agent could not answer. With your own MCP server, the misses land in your logs:

1. **Return an empty list on no match.** `search_guides` returns `[]`, and its description tells the model to relax a filter and search again.
2. **Log each call on the server.** Your MCP server receives the arguments of every tool call, so it records the query text and the result count.
3. **Flag the turn in the page.** `renderToolResults` receives the turn; when every search result is `[]` or a tool error, send the question to your analytics.
4. **Rank the misses each week.** Sort the zero result queries by frequency.
5. **Publish the missing guide.** The next search reaches the new page through the same tool.

## How TensorPass supports your search bar

The [search bar documentation](/docs/modules/search) holds the props, the Web Component and the code above. The guide to [add AI chat to a site](/blog/guides/add-ai-chat-to-a-website) covers the provider and the connect window.

**Free components.** The AI Connect SDK, the WordPress plugin, the Shopify app, the MCP servers, AI Wallet and the site key are free. Your site still hosts its own MCP server.

**Open source on npm.** The AI Connect SDK is under Apache 2.0, public on GitHub since 12 November 2026. Its four packages are on npm under the @tensorpass scope since 16 November 2026, with provenance signed by the GitHub build.

**Done for you.** We make a site AI native in under 24 hours, on a quoted price.

## Before you ship the AI search bar for website content

Take the 20 most frequent queries in your current search logs. Run each one in keyword search and in `AiSearch`, and note the answer with its source page next to the keyword results. Fix the tool descriptions where an answer cites no page. Ship the AI search bar for website content once each answer names a page you published, with the miss log from day one.

**Also worth reading:**

- [Add an AI chatbot to your website with no API key on your server](/blog/guides/add-ai-chat-to-a-website)
- [Build a RAG chatbot over your own website content, served as an MCP tool](/blog/guides/add-ai-chat-to-a-website/build-a-rag-chatbot-over-your-own-website-content)
- [Give your site's AI chat real tools with its own MCP server](/blog/guides/add-ai-chat-to-a-website/give-your-sites-ai-chat-real-tools-with-an-mcp-server)

**Sources:**

- [Search bar](https://tensorpass.app/docs/modules/search): TensorPass docs, read 26 November 2026
- [Expose your tools over MCP](https://tensorpass.app/docs/guides/mcp-tools): TensorPass docs, read 26 November 2026
- [@tensorpass/aiconnect-react reference](https://tensorpass.app/docs/reference/react): TensorPass docs, read 26 November 2026
- [Changelog](https://tensorpass.app/docs/changelog): TensorPass docs, 24 November 2026
- [Tools, MCP specification 2025-06-18](https://modelcontextprotocol.io/specification/2025-06-18/server/tools): Model Context Protocol, 18 June 2025
- [Open AI Search Bar](https://wordpress.org/plugins/open-ai-search-bar/): WordPress.org, read 26 November 2026
- [Website Search Bar](https://wonderchat.io/feature/website-search-bar): Wonderchat, read 26 November 2026
- [Plans and Pricing](https://wonderchat.io/pricing): Wonderchat, read 26 November 2026
- [AI Search Bar for your website](https://sitespeak.ai/ai-search-bar): SiteSpeakAI, read 26 November 2026
- [Pricing](https://sitespeak.ai/pricing): SiteSpeakAI, read 26 November 2026