An AI assistant for your website, without hallucinations

By Hifsul · 2026-11-19 · 4 min read

Adding an AI assistant to a website takes an afternoon. Adding one you can trust in front of customers takes more thought. The risks are familiar: the assistant invents a price, promises something the business does not offer, or quietly runs up a model bill. This is how I approach it, based on building RAG chatbots and AI-drafted replies on a shared AI gateway for a four-product SaaS suite, and on running AI assistants on my own and clients' sites.

Start with the questions, not the model

Before choosing any model, list what visitors actually ask. For most small businesses it is the same dozen things: prices or fees, timings, location, availability, how to book, what is included, delivery or turnaround. If your team answers these by hand every day, an assistant can take them. If most questions need judgement, the assistant's job is to collect details and hand over, not to answer.

Answer only from your own content (RAG)

A general model knows a lot about the world and nothing reliable about your business. Retrieval-augmented generation (RAG) fixes that: your documents, FAQs, service pages and catalogue are indexed, and for each question the assistant retrieves the relevant passages and answers from them. The instructions tell it to use only what was retrieved, and to say it does not know otherwise.

  • Keep the source content current. Most "hallucinations" in business bots are really old price lists.
  • Prefer short, specific documents over one long brochure; retrieval works better on focused text.
  • Test with real questions from your inbox before launch, and read every answer.

Handover is a feature, not a failure

The safest assistants know when to stop. When a question is outside its content, involves money or a complaint, or the visitor asks for a person, the assistant should collect a name and contact and hand the conversation to staff, on WhatsApp or by email. In the inbox I led the build of, staff can take over any conversation, and for customer-facing replies the default is a draft that a person approves. Businesses turn AI on far more readily when they stay in control of what customers read.

Keep keys and calls on the server

Model API keys must never reach the browser. The site's own API should call the model, apply rate limits, and log what was asked and answered. That is how I run the weather assistant on MetBeat: the providers and the Gemini model are called through the app's own API, with rate limiting protecting both the server and the quotas.

Cost control from day one

Model costs are usually small for a small business site, but they are unbounded unless you bound them. The controls I put in place:

  • Rate limits per visitor and per day, so a bot or a bored user cannot run up the bill.
  • Short, retrieved context instead of sending the whole website with every question.
  • A smaller, cheaper model for routine questions; a larger one only where it earns its cost.
  • Usage limits and logging in one place. In a multi-product setup, a central AI gateway owns model access, prompts, limits and logs, so changing a model or a provider is one change.

To get a rough monthly figure for your own traffic, try the free AI cost estimator at hifsul.com/tools/ai-cost-estimator.

Logging that answers "what did it say?"

Sooner or later a customer will quote something the assistant told them. Keep a log of questions, retrieved sources and answers, so you can check what happened and fix the content behind a bad answer. Reviewing those logs weekly in the first month is the fastest way to improve answers.

Website, WhatsApp or both?

The same knowledge base can power a website assistant and a WhatsApp assistant. Many small businesses in India and the Gulf get more enquiries on WhatsApp than through their site, so it is worth deciding where conversations should end up before you build. A website assistant that hands over to WhatsApp is often the simplest useful first step.

A short readiness checklist

  • You can list the top questions customers ask.
  • You have current written answers: prices, policies, services.
  • Someone on the team will take handovers within working hours.
  • You know where leads should be saved: CRM, sheet or inbox.
  • You have agreed a monthly limit for AI spend.

You can score this properly with the free check at hifsul.com/tools/ai-chat-readiness.

What I would do for you

I build AI assistants for websites and WhatsApp that answer from your own content, hand over to your team, save leads to your CRM and stay within an agreed budget, with keys on the server and logs you can review. Run the AI chat readiness check and the cost estimator first, then message me on WhatsApp at wa.me/919019566963 or see hifsul.com/hire.

Related

All articles · Start a project