AI site search: replacing the search box with answers
How AI site search turns a keyword box into short, sourced answers: how it works, where it goes wrong, and what to measure before and after you switch.
ASDK TeamPublished 8 min read
On this page
TL;DR
- Classic site search matches words. Visitors type questions. The gap between the two produces zero-result pages and wrong links.
- AI site search works out what the visitor means, finds the right passages and writes a short answer with links to its sources, while still showing normal results below.
- Before you switch, pull your current search logs. They show what is broken and give you a baseline to measure the new search against.
Why the search box disappoints
Nielsen Norman Group calls search "the user's lifeline for mastering complex websites" (NN/g). Yet on many sites, that lifeline is a keyword matcher that returns whatever pages contain the words typed, in an order nobody can explain.
The best public research on this comes from e-commerce. Baymard Institute's 2026 benchmark found that 56% of the sites it reviewed "fail to adequately support users' search needs," that roughly half of test participants prefer search as their way to find products, and that 34% used the search field to look for something that isn't a product, such as a return policy or shipping information (Baymard, 2026). A separate Baymard article reports that 15% of e-commerce sites don't support even the most basic queries of that kind (Baymard).
B2B websites are studied less, but the same patterns are easy to spot in any search log. Here are four common ones, with illustrative examples:
- Vocabulary mismatch. The visitor types "SSO"; the docs say "single sign-on" and "SAML." Zero results.
- Questions instead of keywords. "Can I export reports to Excel?" returns every blog post that mentions Excel.
- Task queries. "Cancel subscription," "invoice," "status page." The visitor wants a page or an answer, not a list.
- Dead ends. A zero-result page with no suggestion leaves the visitor with nowhere obvious to go next.
What AI site search does differently
AI site search does three jobs a keyword box doesn't.
It works out what the visitor wants. Every query carries a search intentSearch intent is the goal behind a query, such as learning something, comparing options, finding a site or taking an action, which shapes what a good result is.: go somewhere ("pricing"), learn something ("does it work with Salesforce"), compare ("team vs business plan"), or do something ("reset password"). Each deserves a different response.
It finds passages by meaning, not only by words. Your content is indexed both as keywords and as embeddingsEmbeddings are lists of numbers that represent the meaning of a piece of text, so software can find related content by measuring how close two lists are., numeric representations of meaning. "SSO with Okta" can then match a page titled "Configure SAML single sign-on" even though they share almost no words.
It answers, with sources. For question-like queries, it writes two or three sentences from the best passages and links each claim to its page. The usual result list still appears below.
A results page might look like this:
Search: does it work with okta sso
Answer
Yes. SAML single sign-on works with Okta on the Business plan.
The setup takes about ten steps in your Okta admin console.
Sources: Configure SAML SSO (/docs/sso) · Plans (/pricing)
Results
1. Configure SAML single sign-on /docs/sso
2. Security and access controls /security
3. Plans and pricing /pricing(The product and details here are invented for illustration.)
Keep both answers and results
Answers do not make results obsolete. Some visitors want to browse. Others want to verify the answer by opening the page. Navigational queries such as "login" or "pricing" should simply take the visitor there.
The pattern is familiar from web search. Google began rolling out AI Overviews to everyone in the US in May 2024 and wrote that people "like that they can get both a quick overview of a topic and links to learn more" (Google). On Google, answers that satisfy a query without a click, known as zero-click searchZero-click search is a search that ends without a click to any website, because the answer was shown on the results page or the searcher gave up., worry publishers. On your own site the same thing is good news: the visitor got the answer and is still with you.
How it works under the hood
Most AI site search systems combine four parts:
| Part | What it does | Why it matters |
|---|---|---|
| Keyword retrieval | Matches exact terms, often with the BM25 ranking method | Finds product codes, error codes and exact names |
| Semantic retrieval | Matches meaning using embeddings | Bridges vocabulary gaps and handles questions |
| Reranking | A second model re-orders the top candidates | Puts the passage that actually answers the question first |
| Answer generation | A language model writes a short answer from the top passages | Turns ten links into one useful reply |
Combining the first two, called hybrid search, tends to beat either alone. In Anthropic's retrieval experiments, which used codebases, fiction and research papers rather than websites, combining embeddings with BM25 keyword matching, both enriched with added context, cut failed retrievals by 49%, and adding a rerankingReranking is a second search step in which a model reorders a shortlist of retrieved passages by how well each one actually answers the user's question. step cut them by 67% (Anthropic). Your numbers will differ, but the direction is a useful guide.
Three queries, before and after
The examples below use a fictional B2B software site.
| Visitor types | Classic keyword search | AI site search |
|---|---|---|
sso okta | Zero results; the docs say "single sign-on" | A two-line answer that SAML SSO works with Okta on the Business plan, linked to the setup guide |
can I cancel anytime | 14 blog posts containing "cancel" | The cancellation rule for monthly and annual billing, quoted from the terms page |
pricing | The pricing page, third in the list | Goes straight to the pricing page; no generated answer needed |
When AI site search is worth it
It tends to pay off when:
- Your site has hundreds of pages, docs or help articles, and visitors arrive with specific questions.
- Your search logs show many zero-result or reworded queries.
- Visitors type into search the same questions your sales or support team answers by email.
- Your vocabulary differs from your buyers' vocabulary, which is common with technical products, regulated industries and anything with many synonyms.
It is probably not worth it yet when:
- Your site has 15 pages and a clear menu. Better navigation and a good FAQ page beat any search engine.
- Hardly anyone uses search today. Check the logs before you assume otherwise.
- Your content is out of date. AI search surfaces outdated facts faster, and in a more convincing voice, than a list of links does.
Write pages that search can answer
Whatever engine you choose, some content habits make answers better:
- One page per fact. Keep each price, limit and policy in one canonical place and link to it from elsewhere, instead of repeating it.
- Name the subject in every section. "The Business plan includes SSO" survives being quoted on its own; "It includes SSO" does not.
- Use the words your visitors use. If your logs say "SSO" and your docs say "federated identity," add the common term to the page.
- Answer the question in the first sentence. Then explain. Answer engines, human readers and skimmers all benefit.
Pitfalls to plan for
Confident wrong answers
A search box that writes answers can write wrong ones. Restrict answers to your own content, show the source for every answer, and give the system a clear "nothing found" path. Our guide to grounded answers covers these controls in detail.
Speed
People expect results to appear almost instantly. Show the result list immediately and let the answer appear above it as it is generated, rather than holding the whole page until the answer is ready.
Cost per query
Generating an answer costs more than returning a list. Generate answers only for queries that look like questions or tasks, cache answers to popular queries, and let short navigational queries return plain results.
Freshness
An answer is only as current as the index behind it. Re-index pages when they change; the steps are the same as for a chatbot, described in how to train an AI chatbot on your website.
Personal data in queries
Visitors paste order numbers, email addresses and sometimes worse into search boxes. Decide how long you keep raw queries, who can see them, and what you pass on to analytics tools.
Before you switch: get a baseline
Your current search logs are the most useful document you have. They tell you what visitors look for in their own words, and they give you numbers to beat.
If your search results page uses a query parameter in the URL, Google Analytics 4 can collect searches automatically. Its enhanced measurement sends a view_search_results event when it sees one of five default parameters (q, s, search, query or keyword), and you can add your own (Google Analytics Help). If your search works differently, send the recommended search event yourself (GA4 events reference):
gtag("event", "search", {
search_term: "sso okta",
});From at least a month of data, pull:
- The 100 most frequent queries, and what each one should return
- Queries that return zero results
- Queries followed by a second, reworded search (a sign the first one failed)
- Searches followed by the visitor leaving the site
- Conversions such as sign-ups or demo requests from sessions that used search
Roll it out in stages
You don't have to switch everyone over on day one. A staged rollout limits the damage if something is off and gives you cleaner numbers:
- Shadow mode. Run AI search in the background on real queries for a week and review its answers without showing them to anyone.
- Answers for a share of visitors. Show the answer block to a portion of search sessions, for example half, and keep the classic results for the rest.
- Compare. After a few weeks, compare the two groups on the metrics below, especially refinement rate and conversions after search.
- Expand or fix. If the answer group does better, roll it out to everyone. If not, read the failing answers and fix the content or the setup before you try again.
What to measure after launch
| Metric | What it tells you | Direction you want |
|---|---|---|
| Zero-result rate | How often search finds nothing | Down |
| Refinement rate | How often visitors have to search again | Down |
| Search exit rate | How often search is the last thing a visitor does | Down, unless the answer resolved it |
| Source click-through | How often visitors open a cited page | Stable or up |
| Unsupported answers | Share of sampled answers not backed by the cited page | Down, close to zero |
| Conversion after search | Sign-ups or demo requests from search sessions | Up |
A falling exit rate is easy to misread: a visitor who got a complete answer and left may be a success. Pair it with sampled answer reviews and conversion data. For a fuller framework, see how to measure an AI agent on your website.
If your site search runs on Google's API
If your search box uses Google's Custom Search JSON API, plan ahead. Google's documentation says the API "is closed to new customers" and that "existing Custom Search JSON API customers have until January 1, 2027 to transition to an alternative solution," pointing to Vertex AI Search as an option for searching up to 50 domains (Google for Developers). A forced migration is a natural moment to decide whether you want a list of links or an answer.
Where to start
Pull your search logs, list the 20 queries that fail most often, and fix the content behind them first. Better pages improve any search engine, AI or not. Then test AI search against that baseline and keep it only if the numbers move.
ASDK's Search agent is coming soon. It is designed to do what this guide describes: replace your search box with instant, sourced answers.
The Search agent is coming soon
Replaces your search box with instant, sourced answers. It is not available yet. Join early access and we will tell you when it ships.
Frequently asked questions
What is AI site search?
It is a search box that understands questions instead of only matching keywords. It finds the most relevant passages on your site, writes a short answer with links to its sources, and still shows a regular list of results underneath.
Will AI site search replace my search results page?
It shouldn't. The best setups show an answer on top and normal results below. Some queries are navigational, like pricing or login, and should go straight to the page. Others need browsing. The answer is an addition, not a replacement.
How do I know whether my current site search is failing?
Look at your search logs. Check the most common queries, queries that return zero results, queries followed by a second search, and searches followed by an exit. Google Analytics can collect search terms through its site search event.
Can AI site search give wrong answers?
Yes. Like any system that writes text, it can be wrong. Limit answers to your own content, show the source for every answer, let it say it found nothing, and review a sample of answers regularly.
Sources
Pages we read for this article, with the date we checked each one.
- Ecommerce search UX: query types benchmark (Baymard Institute, updated Apr 29, 2026) — accessed October 20, 2026
- E-commerce sites must support users' non-product search (Baymard Institute) — accessed October 20, 2026
- Search: visible and simple (Nielsen Norman Group) — accessed October 20, 2026
- Generative AI in Search: let Google do the searching for you (Google, May 14, 2024) — accessed October 20, 2026
- Contextual Retrieval (Anthropic Engineering, Sep 19, 2024) — accessed October 20, 2026
- Enhanced measurement events (Google Analytics Help) — accessed October 20, 2026
- Recommended events reference (Google Analytics for developers) — accessed October 20, 2026
- Custom Search JSON API overview (Google for Developers) — accessed October 20, 2026