All posts
·5 min read

How to build an AI chatbot for your website

A clear blueprint for shipping a useful AI chatbot on your site — data sources, guardrails, model choice, and the metrics that matter.

AI chatbotRAGcustomer support

A useful chatbot is not a wrapped LLM

If you drop a generic chat UI on your site, you get hallucinations and frustrated users. A useful chatbot is grounded in your content and bounded by clear rules.

The four pieces

  1. Sources — docs, help center, product pages, and FAQs ingested into a vector store
  2. Retrieval — semantic search + re-ranking so the model sees the right 3–5 chunks
  3. Generation — a small, fast model with a strict system prompt and forced citations
  4. Escalation — a "talk to a human" handoff with the conversation attached

What to measure

  • Containment rate (resolved without human)
  • Citation coverage (% of answers backed by a source)
  • CSAT on bot conversations vs human ones
  • Cost per resolved conversation

Common mistakes

  • Letting the bot answer anything — restrict it to your domain
  • Ignoring stale content — wire ingestion to your CMS updates
  • Skipping evals — write 30 test questions before launch, run them on every prompt change
Building something with AI?

Let's design the AI layer of your product together.

A 30-minute discovery call. Free. You leave with a clear, written direction either way.

Start QuizBook a Call