How to Build an AI Customer Support Chatbot That Answers From Your Own Docs

How a support bot answers from your docs, how to keep those answers accurate, when to hand off, and when to build instead of buy.

How a support bot answers from your docs, how to keep those answers accurate, when to hand off, and when to build instead of buy.

An AI chatbot for customer support is worth building when it answers from pages you already trust, and when it stops when those pages do not contain the answer. A model that replies from memory will sound sure about a refund rule you changed last month. Retrieval is how you put the current page in front of the model before it writes. If you want that scoped against your own help center, Talk to the team about a support bot grounded in your docs.

How a RAG chatbot works

RAG chatbot architecture is short for retrieval-augmented generation. The model does not search the open web, and it does not invent a policy. A question comes in, the system finds the passages in your docs that are closest to that question, and the model writes an answer using those passages. If the passages are the wrong pages, the answer will be wrong even when the writing is smooth. The architecture is the retrieval step, not a smarter personality.

Start with the documents

The corpus is the help center, the product docs, the policies, and the internal notes you have decided a customer, or an agent, is allowed to see. A dump of every old ticket is a bad corpus unless someone has marked the replies that were actually correct. A wrong ticket, retrieved later, becomes a wrong answer with your name on it. Decide the list before you connect a model. "Everything in the drive" is not a list.

Public pages and private pages do not belong in the same pile. A customer asking about a plan should not retrieve an internal runbook or another customer's contract. An agent on your team may be allowed to see more than the customer is. That split is part of the design.

Split pages into passages

A whole manual is too large to hand to the model on every question, and a single sentence is often too small to contain the rule. Split each page into passages: a heading kept with the paragraphs under it, a policy kept with the exceptions under it. The passage is what gets stored and what comes back. If you split in the middle of a sentence, the model will quote a fragment and miss the exception on the next line.

Store the passages so a question can find them

Each passage is stored with its text, the page it came from, and who is allowed to see it. A search that only matches exact words will miss "cancel my subscription" when the doc says "end your plan." A search that also matches meaning, often by storing a numeric stand-in for the passage, catches more of those paraphrases. Either way, the result of the search is a short list of passages, not an answer. The list is what the model is allowed to use.

Write the answer from that list

The model receives the customer's question and the passages, and it is instructed to answer only from those passages. The reply should name the page. A customer can open it. Your team can check it later. If none of the passages contain the answer, the reply should say that, and offer a person. An AI chatbot for customer service that fills the gap with a plausible sentence is the failure mode this design exists to avoid.

Some questions need a tool as well as a page, such as order status or the plan on this account. That lookup is a separate step. The model should see the one record this customer is allowed to see, plus the passages that explain what the status means.

How to keep the answers accurate

Accuracy is a docs problem and a retrieval problem. The model will phrase a sentence cleanly either way. These checks keep that sentence tied to a page you still stand behind.

The page has to be the current page

If the refund policy changed and the old PDF is still in the index, the bot will quote the old PDF. Rebuilding the index is part of publishing the page. Take the old file out. A second copy of the same policy, with a different date, will be retrieved at random. One current page per rule is what retrieval can honor.

Show the passage

Show the title and a link, or the passage itself, next to the answer. When a customer says the bot was wrong, you can see which page it used. Sometimes the page is wrong. Sometimes retrieval picked a neighbor of the right page. Those are different fixes, and the sentence alone does not tell them apart.

Refuse when the docs do not cover it

The useful failure is a short one: this is not in the docs, a person can take it. Count the questions that came back with no passage. A cluster of the same missing question is a page you have not written, not a reason to let the model improvise. Add the page, reindex, and ask the question again.

Test questions you already get

Before anyone relies on the bot, run questions your team already answers. Keep the ones it got wrong, the ones it answered from the wrong page, and the ones it should have refused. The published description of a custom assistant on our pricing page includes testing against real examples before launch. That test set is the spec. A demo that only asks the three questions you wrote the docs for will pass, and it will not tell you what happens on Tuesday.

When the bot calls another system, the same test has to include a failed call. A timeout, a duplicate event, and a logged retry are the production concerns covered in how to ship a production-ready automation pipeline. A support bot that looks up an order is that kind of pipeline, not only a text box.

Keep permissions on the retrieval, not only on the screen

Hiding a link in the interface is not enough if the search can still return the text. Filter the index by who is asking before the passages are chosen. A signed-in customer, an anonymous visitor, and your own agent are three searches.

When the bot should hand off to a person

Hand off when the docs do not contain the answer, when the question is about this account rather than the public rule, and when the next step is an action your team has not approved. The handoff should include the question, the passages that were retrieved, and the draft if there was one. A person should not start from a blank ticket.

A score from the model is not a substitute for "the passages do not contain the answer." Write the handoff rules as cases, and test them with the same real questions. A rule you cannot point to in a doc or a ticket will not be applied the same way twice.

Build or buy

Buy a helpdesk bot when the answers live in a public help center, every visitor may see the same pages, and you accept that the vendor holds the conversation and the index. You still have to keep those pages current. The vendor cannot quote a policy you never gave it.

Build when the constraints are yours. Different customers must see different docs. The answer has to cite a page your team can audit. The handoff has to land in your ticket tool with the passages attached. The bot has to read an order in your database, not in the vendor's sidebar. Or the bot is part of a product you sell, which is SaaS development: sign-in, roles, and a place the feature lives, not only a widget on a marketing site.

That build is the work described under AI development and automation. Our pricing page publishes the ranges. A custom AI assistant or agent starts at $10,000, and the published range is $10,000–$40,000+. The page describes it as support or internal assistants that answer from your own documents, agents that take actions in your tools, and testing against real examples before launch. The plus sign is on the page because those requirements do not have a ceiling a blog post can set.

A smaller first version is often a draft, not a bot that sends the reply. AI Workflow Build starts at $2,500, and the published range is $2,500–$10,000. That tier is multi-step workflows that add AI steps such as classify, extract, summarize, or draft, connect several tools, and include retries, logging, and human review where it matters. A person still sends the message. That is a reasonable place to start when you want to see which questions the docs can answer before a customer ever sees a generated sentence.

Our work starts at $500. If the budget is below the stage the assistant needs, the honest move is a smaller first step, such as listing the docs and the questions that must go to a person, rather than stretching the full bot too thin. These ranges are not a quote. The written estimate is the number for your docs and your handoff rules.

Two bills sit outside those ranges. The pricing page excludes automation platform subscriptions, AI model API usage, and hosting. You pay those providers directly. This post does not print a monthly model bill, because it depends on the provider and on how many questions you actually ask.

What to send before a scoped conversation

Send the docs the bot would be allowed to use, a handful of real questions, and the cases that must reach a person. Say whether customers see different pages than your team does, and where a handoff should land. If you already have a help center and a ticket tool, name them. That is enough to tell a draft workflow from an assistant that replies on its own.

We will tell you which published stage the work sits in, which questions the current docs can support, and which ones should stay with a person until a page exists. Talk to the team about a support bot grounded in your docs.

Questions people ask before they scope a support bot

How does a RAG chatbot work?

A question comes in, the system retrieves the closest passages from docs you have approved, and the model writes an answer from those passages. If the passages do not contain the answer, the bot should say so instead of guessing. The page the passage came from should be shown with the reply.

How do we keep a support bot's answers accurate?

Keep one current copy of each policy in the index, show the passage the answer came from, and refuse when the docs do not cover the question. Test questions your team already receives, including the ones the bot should hand to a person. When a page changes, update the index as part of publishing the page.

When should a support bot hand off to a human?

Hand off when the docs do not contain the answer, when the question is about this customer's account rather than the public rule, and when the next step is an action your team has not approved, such as a refund or a cancellation. Send the question and the retrieved passages with the handoff so the person does not start from a blank ticket.

Should we build a support bot or buy one?

Buy when every visitor may see the same public help center and you accept the vendor holding the conversation. Build when customers must see different docs, when you need an audit of the cited page, when the handoff has to land in your own tools, or when the bot is part of a product you sell. A custom assistant that answers from your documents is published at $10,000–$40,000+. A draft workflow with human review is published at $2,500–$10,000. Our work starts at $500. Those ranges are not a quote.

Will the bot answer questions that are not in our docs?

It should not. If retrieval finds no passage that contains the answer, the reply should say so and offer a person. Filling that gap with a plausible sentence is the failure this design is meant to prevent. A missing answer is a sign that a page has not been written yet.