AI Automation, RAG & MCP
6 min read
By UnlockLive IT engineering team
Website support chat where an AI assistant answers with a help center link and offers to connect the customer with a human agent

Most support teams answer the same questions every day. How do I reset my password? Why was I charged twice? Does the product work with this other tool? Agents copy the same help center links again and again, while complex cases wait in the queue.

Many companies tried a chatbot and regretted it. Scripted bots trap customers in menus. Generic AI bots sound fluent but invent features, policies and refund rules. Either way, customers lose trust and agents clean up the mess. The goal is a chatbot that answers only from your real content and shows where each answer came from. When it cannot help, it steps aside gracefully.

What this assistant does

The chatbot uses retrieval-augmented generation (RAG): it searches your own content, then has a language model answer using only what it found. Concretely, it:

  • Answers from your sources. Help center articles, product documentation, release notes and cleaned examples from resolved tickets.
  • Cites its sources. Each reply links to the article it is based on, so customers can read more and agents can check it.
  • Refuses when unsure. If nothing relevant is found, it says so instead of guessing.
  • Hands off with context. When a customer asks for a person, is upset, or raises a sensitive topic, it opens a ticket. The ticket carries the conversation and a short summary.
  • Works where customers are. A website widget first, then email or messaging channels if you need them.

How it works, step by step

  1. Ingest documents. We pull help center articles and docs through their APIs or sitemaps. We export resolved tickets from your helpdesk, remove personal details and keep only answers agents marked as good.
  2. Split and index. Content is split into sections that keep their titles and product areas. Each section is stored as an embedding, a numeric representation of its meaning, plus a keyword index for exact terms like error codes.
  3. Retrieve for each question. The bot rewrites the question into a clear search, finds the best sections, and prefers official articles over ticket examples when they overlap.
  4. Answer with citations. The model writes a short reply from those sections and links them. Below a relevance threshold, it offers a handoff instead.
  5. Log and improve. Conversations, sources used, handoffs and customer ratings are logged. Each week we review failures and turn them into new or better help articles.

Tools we use

  • Backend: Python with FastAPI for ingestion, retrieval and the chat API.
  • Vector database: pgvector in Postgres, or Qdrant for larger or multi-brand indexes.
  • Language model: OpenAI or Anthropic Claude via business APIs, or a private open-source model if your data rules require it.
  • Front end and handoff: a lightweight web widget, plus the API of your helpdesk such as Zendesk, Freshdesk, Intercom or HubSpot.

Check each vendor's current pricing, usage limits and data-retention terms. They change often and affect both your costs and your privacy position.

What you need to get started

  • A help center that covers your top questions, even if it is imperfect.
  • API access to your helpdesk and an export of recent resolved tickets.
  • A list of topics the bot must always hand off, such as billing disputes, cancellations, legal complaints or safety issues.
  • One or two support leads who can review answers during the pilot.
  • Your tone of voice guidelines, so replies sound like your team.

Typical scope and timeline

A first version is typically 2 to 4 weeks, depending on how many sources you have and how deep the helpdesk integration goes. That is an estimate, not a fixed quote. A single help center with a web widget and simple handoff is at the short end. Multiple products, languages or ticket history cleaning push it longer.

We usually launch to a share of website visitors or one product line first. Coverage grows as the weekly reviews show it is safe.

Designing the handoff

The handoff deserves as much design as the answers. Customers should be able to ask for a person at any time, in their own words. The bot should not argue or loop them back to articles.

When it hands off, the agent receives the full transcript and a two-line summary. The ticket also lists the sources the bot tried and any account details already given. Outside support hours, the bot says when a person will reply and collects what the agent will need. A good handoff saves agent time even when the bot could not answer.

How we keep answers accurate

  • An evaluation set of real questions. We build it from your tickets, with the correct answer and source for each. Every change is tested against it before release.
  • Citations required. An answer without a supporting source is not sent.
  • Refusal and handoff rules. Low relevance, sensitive topics or repeated customer frustration all route to a person.
  • Human review. Support leads review a sample of conversations each week and flag wrong or weak answers.

Measuring deflection and accuracy

Deflection and accuracy must be measured together. A bot can close many chats by giving confident wrong answers. That looks like deflection but creates repeat contacts and churn.

  • Deflection: count a conversation as resolved only if the customer did not open a ticket on the same issue within a set window.
  • Accuracy: the share of sampled answers that reviewers judge correct and properly sourced.
  • Handoff quality: whether agents could act on the summary without asking the customer to repeat themselves.

In our Branify AI customer service project, 70% of tickets were resolved without a human and average handle time fell by 45%. Results depend on content quality and question mix, so measure your own baseline first.

Risks and how we handle them

  • Privacy: ticket history contains names, emails and order details. We strip personal data before indexing and keep chat logs on a retention schedule. See RAG privacy by design for the wider approach.
  • Permissions: account-specific answers, such as order status, come from authenticated API calls for the logged-in customer, never from a shared index.
  • Wrong answers: refusal thresholds, citations and weekly review limit the damage, and customers can always reach a person.
  • Outdated documents: articles are re-synced on change, and release notes flag articles that need updating when features ship.

When not to build this

  • Your help center is nearly empty. Write the top articles first; the bot needs something true to say.
  • Most contacts need account actions or judgement, such as complex refunds or disputes. A triage tool may help more.
  • Your ticket volume is low enough that agents answer quickly anyway.
  • Your helpdesk's built-in AI already handles your sources well. Test it before building custom.

How UnlockLive can help

We build grounded support chatbots, from content cleaning and retrieval to the helpdesk handoff and the evaluation that keeps them honest. Start with our RAG development service. If the bot also needs to take actions, such as looking up orders or updating tickets, see AI agents development.

If many contacts are better routed than answered, read our guide to AI support ticket triage. For messaging channels, see WhatsApp AI assistants. To talk through your help center and ticket mix, book a free 30-minute call.

Frequently asked questions

How is a RAG chatbot different from a normal support chatbot?

A traditional chatbot follows scripted flows or matches keywords to canned replies. A RAG chatbot searches your help center, documentation and approved past answers for each question, then writes a reply using only what it found and links to the source. It handles new wording far better and can say when it has no answer.

Can a support chatbot learn from our past tickets?

Yes, with care. Resolved tickets with good agent replies are useful examples, but they contain personal data and sometimes wrong or outdated answers. We clean them first by removing personal details, keeping only resolved tickets with accepted answers, and preferring help center articles when the two disagree.

How do you stop the chatbot from making things up?

Several layers work together: the model is told to answer only from retrieved sources, each answer must cite at least one source, a relevance threshold triggers a refusal when nothing good is found, and an evaluation set of real questions is run before every change. Sampled conversations are also reviewed by people each week.

What is a good deflection rate for a support chatbot?

There is no universal number. It depends on your product, your customers and how complete your help center is. Measure it honestly, counting a conversation as deflected only when the customer did not contact you again about the same issue within a set period, and track answer accuracy alongside it.

Which helpdesks can the chatbot hand off to?

Any helpdesk with an API can usually receive a handoff, including common tools such as Zendesk, Freshdesk, Intercom and HubSpot. The chatbot creates or updates a ticket with the conversation, a short summary and the sources it tried, so the agent does not have to ask the customer to repeat themselves.

How do you evaluate a RAG chatbot?

Build an evaluation set of real questions from your tickets, each with the correct answer and source. Run it before every change and check whether the chatbot found the right source, answered correctly, cited it and refused when it should. Review sampled live conversations as well, and count a conversation as resolved only when the customer did not need to come back.

How we can help

  • Custom RAG & Enterprise Search DevelopmentProduction retrieval-augmented generation systems on your knowledge base. Hybrid search, reranking, citations, evals, and on-prem deployment.
  • AI Agent DevelopmentProduction AI agents with LangChain, OpenAI Agents SDK, and Claude. RAG, tool use, multi-agent orchestration, voice, and browser-using agents.
  • AI Workflow AutomationAI automations on self-hosted n8n for lead follow-up, invoices, support triage, reports and documents, with Telegram, WhatsApp or Slack alerts and approvals.

Talk to an engineer about your project

Tell us what you are building. We reply within one business day with a candid view on scope, approach and effort.

Book a free strategy call

Written by the UnlockLive IT engineering team. UnlockLive IT Limited works with clients through its Toronto headquarters and delivers engineering from its Dhaka delivery centre. About us

Related articles

AI Automation, RAG & MCPn8n AI Agents That Take Actions Safely: MCP Tools and Human ApprovalAI Automation, RAG & MCPAI Build vs Buy: An Honest Framework for Choosing Off-the-Shelf or CustomAI Automation, RAG & MCPStop Retyping Forms and PDFs: AI Document Extraction into Your ERP or CRM

Contact Us

Fill out the form below and our team will get back to you shortly to assist with your inquiry.