Anatomy of a grounded AI chatbot
Five parts: a knowledge base built from your content, a retrieval step that finds the right passages for each question, a language model that writes the answer from those passages only, rules for what the bot may and may not do, and a hand-off to a person with the transcript attached.
The important design choice is that the model never answers from general knowledge about your business. If a visitor asks about a refund policy and your content does not cover it, the right answer is that the bot does not know and a person will reply, not a confident guess.
| Part | What it does | What Diorbit uses |
|---|
| Knowledge base | Holds your documents, prices, policies and past replies, split into searchable passages | PostgreSQL with pgvector |
| Retrieval | Finds the passages that answer the visitor's question | Python services over the same database |
| Language model | Writes the answer in plain language from the retrieved passages only | Anthropic Claude, OpenAI or an open-weight model |
| Rules | Decides what the bot may say, which topics it refuses, and when a person must confirm | Written in the scope and tested before launch |
| Hand-off | Passes the conversation, with transcript, to your team by email, WhatsApp or CRM | FastAPI integrations with your systems |
What content a chatbot needs before launch
The documents your team already answers from: price lists, policies, product or service pages, FAQs, brochures and a sample of past customer messages with the replies that were sent. Gaps in that content become the first list of things to write.
Past questions matter most. They show how customers actually phrase things, and they become the test suite the chatbot must pass before it meets a real visitor.
- Price lists and packages, with the date they apply from.
- Policies a customer asks about: cancellation, refunds, delivery, warranty, eligibility.
- Product, service or room descriptions in the words customers use.
- A few hundred real questions from email, WhatsApp or the contact form, with the replies your team gave.
- The cases where a person must always take over, written down plainly.
Designing the conversation, not just the answers
A good chatbot asks a short follow-up when a question is ambiguous, collects the details a salesperson will need, confirms before anything that commits the business, and ends every conversation with a clear next step.
Conversation design is where most chatbots fail quietly. A visitor asks for a price without saying which product, and a poor bot guesses. A visitor is ready to buy, and a poor bot keeps answering questions instead of taking their name and number. We write the main conversation paths for each chatbot in the scope: the greeting, the clarifying questions, the moment to capture contact details, the confirmation before any commitment, and the hand-off wording.
Tone is agreed in the same document. A hotel, a property firm and a software company should not sound alike, and the bot should sound like the people who would otherwise have replied.
Where your chatbot can live
On your website, inside a mobile app, inside an internal tool for staff, or on WhatsApp. The same knowledge base and rules can serve more than one channel, so the answers stay consistent.
- Website chat for visitors comparing options before they enquire.
- In-app chat for customers who are already signed in and need help with an order or booking.
- Staff chat inside an internal tool, answering from manuals and procedures.
- WhatsApp, which in India is often the channel customers prefer; our WhatsApp chatbot development page covers templates, opt-in and hand-off on that channel.
Capturing leads straight into your CRM
When a visitor is ready to talk to a person, the chatbot collects their name, contact details and what they need, and writes a lead into your CRM with the transcript attached, so nobody retypes anything.
Diorbit's own website works this way with Cerebro, the CRM Diorbit runs on: enquiries land as leads in the right folder with nothing re-entered. A chatbot built for a client can write into Cerebro or into any CRM with an API, and the salesperson who picks up the lead can read exactly what the visitor asked before calling.
Measuring whether the chatbot is helping
Three numbers matter: how often the bot answers correctly from your content, how often it hands off, and how many conversations end with the visitor's question resolved or a lead captured. Each is measured before launch and reviewed every month.
Before launch, an evaluation suite of real questions with expected answers is run against the chatbot, and it is run again after every change to the content or rules. After launch, every conversation is logged with the passages used to answer it. A monthly review turns the questions it could not answer into new content, so the hand-off rate falls over time for the right reason.
What you receive from our AI chatbot development services
A working chatbot on the channels you chose, the knowledge base and its tooling, the conversation rules in writing, the evaluation suite, full logs, the integrations with your systems, and the source code and model accounts in your name.
- A written scope with the chatbot's job, channels, conversation paths and hand-off rules.
- A knowledge base built from your content, with a simple way to update it.
- Integrations that write leads and transcripts to your CRM, email or WhatsApp.
- An evaluation suite of real questions, run after every change.
- Conversation logs with the sources used for each answer.
- Source code, prompts and model accounts in your name.
Timeline and how a chatbot is quoted
A grounded chatbot on your own content is usually answering test questions within a week and in production within a month. Pricing is set out in writing after a free first call, with the build and the expected monthly model cost shown separately.
The quote depends on how many channels the chatbot serves, how much content must be prepared, which systems it writes to and how many conversation paths need designing. Model usage is billed to your own provider account, so the running cost is visible to you and never marked up. Diorbit Technologies is headquartered in Mathura, Uttar Pradesh, and builds chatbots for businesses across India and in the USA, UK, UAE, Canada and Australia.