supportchatbotgrounding

Fixing Customer Support Bot Hallucination with Live Search

Support bots hallucinate outdated pricing and policies because knowledge bases are stale. Live search grounding fixes the root cause.

5 min read

The most common failure mode of AI customer support bots is not refusal. It is confident incorrectness. The bot tells a customer the product costs $29/month when the company raised prices to $39 two weeks ago. The knowledge base has not been re-indexed. The bot does not know what it does not know. This class of error is worse than "I don't know" because it erodes trust and creates support tickets to fix the wrong information the bot gave.

Why static knowledge bases fail

Knowledge bases are indexed periodically: weekly if you are diligent, monthly in practice. Between re-indexing, the bot serves stale data. Price changes, policy updates, feature launches, and deprecations all happen between indexing cycles. The bot confidently serves yesterday's truth as today's answer.

The live search grounding pattern

Before the bot generates an answer, it searches your own website for the current information. Use Google's site: operator to restrict the search to your domain. If the search returns results, use them as grounding context. If it returns nothing, fall back to the knowledge base or hand off to a human.

Python
import requests, os

H = {'x-api-key': os.environ['SCAVIO_API_KEY']}

def ground_answer(question: str, company_site: str) -> dict:
    resp = requests.post('https://api.scavio.dev/api/v1/search',
        headers=H,
        json={'platform': 'google', 'query': f'site:{company_site} {question}'},
        timeout=10)
    results = resp.json().get('organic', [])[:3]
    if results:
        context = '\n'.join(f"- {r['title']}: {r['snippet']}" for r in results)
        return {'source': 'live', 'context': context}
    return {'source': 'knowledge_base', 'context': ''}

The latency tradeoff

Adding a search step adds 1-2 seconds to every response. For customer support, this is an acceptable tradeoff. Users already expect a brief pause while the bot "thinks." The alternative -- a fast but wrong answer -- costs far more in customer trust and follow-up tickets. Frame the delay as verification, not slowness.

Human handoff triggers

Most support bots trigger human handoff on negative sentiment. That is too late. By the time the customer is angry, the bot has already given wrong information. Instead, trigger handoff on low retrieval confidence: if the search returns no results and the knowledge base match score is below a threshold, route to a human before the bot guesses. Preventing a wrong answer is cheaper than correcting one.