AI Workflow Agency
AI5 min read

AI Chatbots for Business: A Practitioner's Guide to Building, Buying and Operating Them

How to scope, build and run AI chatbots that actually work in production - RAG, evaluation, guardrails, costs and what to expect from an agency build

By AI Advisory team

Most AI chatbot projects fail the same way. A demo dazzles the exec sponsor, procurement signs a contract, the bot ships, and within eight weeks the internal Slack channel is full of screenshots of it hallucinating refund policies or confidently citing a product that was discontinued in 2019. The team quietly rolls it back to a decision-tree fallback and the line item gets buried in next year's budget.

The technology is not the problem. GPT-4-class models, Claude 3.5 Sonnet, and open-weight alternatives like Llama 3.3 are more than capable of holding a competent conversation grounded in a company's own data. The problem is that shipping a chatbot into production is a systems engineering exercise, not a prompt engineering one. Retrieval quality, evaluation, guardrails, escalation paths, logging, and cost control matter more than which foundation model you pick.

This guide walks through what actually goes into a production AI chatbot in 2026, what to expect from an agency engagement, how to decide between building in-house and commissioning a build, and what the honest cost and timeline looks like.

What an AI chatbot actually is in 2026

The word chatbot covers a wide surface. On the low end you have rule-based flowcharts in tools like Intercom or Drift that route users to canned answers. On the high end you have autonomous agents that read tickets, query internal systems, draft responses, and file updates back into a CRM without human intervention.

The interesting middle - and the one most mid-market businesses are commissioning right now - is a Retrieval-Augmented Generation (RAG) assistant. It uses a large language model as the reasoning layer, but grounds every response in the organisation's own documents, product data, or ticket history. When it doesn't know something, it says so and escalates. When it does answer, it cites its sources.

The architecture usually looks like this. Documents are chunked, embedded into vectors, and stored in a database like pgvector, Pinecone, or Weaviate. When a user asks a question, the system embeds the query, retrieves the most relevant chunks, injects them into a prompt with instructions on how to answer, and calls a foundation model. Response, citation, done. The Anthropic and OpenAI documentation both describe this pattern in detail, and it has become the default for internal knowledge assistants and customer support bots grounded in a product catalogue or documentation set.

What separates a good implementation from a bad one is not the choice of vector database. It is the retrieval strategy, the evaluation harness, the refusal logic, and the observability. A team that has shipped these before spends more time on those four things than on the LLM call itself.

The five questions that decide whether a chatbot project succeeds

Before commissioning any build, work through these. If any answer is fuzzy, the project is not ready to start.

1. What is the bounded task? A chatbot that answers customer questions about shipping and returns is a solvable problem. A chatbot that handles "any question a customer might have" is not. The narrower the scope, the higher the accuracy and the shorter the build. Start with one workflow that gets asked 500+ times a month.

2. Where is the source of truth? If the answer to "what is our refund window" lives in three different PDFs, a Notion doc, and a Confluence page - all of which disagree - the chatbot will disagree too. Content quality is upstream of chatbot quality. Budget 20-30% of the project for content audit and cleanup.

3. What does escalation look like? Every production chatbot needs an off-ramp. When confidence is low, when the user asks something out of scope, when they ask twice and are still not satisfied - what happens? Handoff to a human via Intercom, Zendesk, or a shared inbox? A ticket created in HubSpot? Silence is not an acceptable answer.

4. How will you measure quality? Not just deflection rate. Deflection is a vanity metric if the deflected users are actually more frustrated. You need answer accuracy (checked against a labelled test set), citation correctness, refusal appropriateness, and downstream CSAT or resolution rate. Build the evaluation harness before you build the bot.

5. Who runs it after launch? A chatbot is not a website. Content drifts, products change, edge cases appear. Without an owner who reviews logs weekly and updates the knowledge base, accuracy decays within months. This is where the retainer model earns its keep.

Build vs buy vs commission

Three paths, each with a legitimate case.

Buy an off-the-shelf tool. Intercom Fin, Zendesk AI, Ada, and Kustomer all offer competent RAG-based chatbots that you point at your help centre and turn on. Intercom's Fin, launched in 2023 and now on its second major generation, is priced per resolution (around $0.99 per resolved conversation as of their 2024 pricing). This works well if your use case is customer support, your knowledge is already in a help centre, and you don't need deep integration into internal systems. It fails when you need custom logic, non-English languages the vendor doesn't support well, or connections to a proprietary internal database.

Build in-house. Sensible if you have two or more senior engineers who have shipped LLM systems before, a product manager who understands evaluation, and 4-6 months of runway. The stack is well-documented. LangChain and LlamaIndex have reduced the boilerplate. But the failure mode is real - engineering teams underestimate the evaluation and observability work and end up with a demo that doesn't survive contact with real users. McKinsey's 2024 State of AI report noted that only around 15% of enterprise AI projects reach production, and internal builds are over-represented in the failures.

Commission an agency build. The right choice when you want production-grade output faster than an internal team can deliver, and want the retrieval, evaluation, and ops patterns transferred to your team along the way. A competent agency should hand over source code, documentation, and an evaluation harness you can run yourself. If they won't, that is a lock-in signal.

The build cost varies. A focused RAG assistant grounded in a single documentation set with basic escalation runs £25k-£60k for the initial build. Add multi-channel deployment (web, WhatsApp, Slack), multilingual support, integration with a CRM, or complex refusal logic and you are in the £60k-£150k range. Enterprise builds with custom fine-tuning, on-premise deployment, or heavy compliance work go higher.

The retrieval layer is where most bots live or die

If there is one place where the difference between amateur and professional shows up, it is retrieval. Default RAG - chunk documents into 500-token blocks, embed with OpenAI's text-embedding-3-small, retrieve top-5 by cosine similarity - works surprisingly well on clean, uniform content. It falls apart on real corporate data.

What actually ships in production:

  • Hybrid retrieval. Combine semantic search (embeddings) with keyword search (BM25). Reciprocal rank fusion or a simple weighted merge. This alone typically lifts retrieval accuracy 10-20 percentage points on heterogeneous corpora.
  • Re-ranking. After initial retrieval, pass the top 20-50 candidates through a cross-encoder like Cohere Rerank or a smaller LLM to score final relevance. Expensive per call, but dramatically improves the quality of what actually lands in the prompt.
  • Query rewriting. User queries are often terse or ambiguous. A cheap LLM call that expands "can I return this" into "what is the return policy for online purchases within 30 days" before retrieval improves hit rate noticeably.
  • Chunking that respects structure. Semantic chunking that respects headings, tables, and lists beats fixed-size chunking on almost every real corpus. For product catalogues, chunk per SKU. For policies, chunk per clause.
  • Metadata filters. Every chunk should carry metadata - product line, region, effective date, document type - so you can filter retrieval before ranking. This is how you stop a UK bot citing US-only policies.

The Anthropic engineering blog on contextual retrieval, published in 2024, is worth reading in full - their technique of prepending chunk-specific context before embedding reduced retrieval failure rates by around 49% in their benchmarks.

Evaluation, guardrails and the boring work that keeps bots honest

The most under-invested part of every chatbot project is evaluation. It is also the part that determines whether the bot is safe to leave running.

A production evaluation harness has three layers. The first is a labelled test set of 100-500 real user queries with known-good answers and known-good citations. This runs on every deployment. If accuracy drops below a threshold, the release is blocked. The second is a live sampling system that flags a random 1-5% of production conversations for human review, feeding failures back into the test set. The third is a red-team suite of adversarial prompts - prompt injection attempts, out-of-scope questions, requests for hallucinated facts - that stress-test refusal behaviour.

Guardrails are the runtime cousin of evaluation. Input filtering (block obvious prompt injection, PII in queries the bot has no need for), output filtering (check citations exist and match retrieved chunks, block responses that don't cite when they should), and refusal patterns (a well-crafted "I don't have that information, let me connect you with the team" is worth more than a confident wrong answer).

For UK deployments, this bleeds into compliance. The ICO's guidance on AI and data protection makes clear that automated decisions affecting individuals need meaningful oversight, and that personal data fed into a third-party LLM API constitutes a data transfer that needs a lawful basis and, potentially, appropriate safeguards. For most support chatbots this is manageable with clear notices and vendor DPAs, but it is not optional. See the ICO's AI guidance at ico.org.uk for the current framing.

What a realistic agency engagement looks like

A well-scoped chatbot build with an AI automation agency runs on a predictable rhythm. Weeks 1-2: discovery, content audit, evaluation harness scoping, architecture decision (which LLM, which retrieval stack, which channels). Weeks 3-6: build core RAG pipeline, ingest content, build initial evaluation set, first internal-only demo. Weeks 7-10: iterate on retrieval quality, build escalation and guardrails, integrate with CRM or helpdesk, run red-team suite. Weeks 11-12: pilot with a subset of real users, monitor, tune, prepare handover documentation.

Post-launch, the retainer usually covers weekly log review, monthly evaluation runs against an expanded test set, content updates as products change, and quarterly retrieval tuning. Budget 15-25% of initial build cost annually for ongoing operation. Skip this and accuracy will decay - not spectacularly, but noticeably over six months.

The agency should be transparent about what stack they are using and why, hand over source code and documentation, and train at least one person on your side to operate the system. If any of those three are missing, you are buying a black box.

Frequently asked questions

How much does an AI chatbot from an agency actually cost?

For a focused RAG assistant grounded in a single knowledge base with basic escalation, expect £25k-£60k for the initial build over 8-12 weeks. Multi-channel deployment, CRM integration, multilingual support, or complex refusal logic pushes this to £60k-£150k. Enterprise builds with fine-tuning, on-premise deployment, or heavy compliance requirements go higher. Beyond the build, budget 15-25% of initial cost annually for ongoing operation - content updates, evaluation runs, retrieval tuning, and monitoring. Off-the-shelf tools like Intercom Fin or Zendesk AI carry lower upfront cost but per-resolution pricing that can exceed a custom build's total cost of ownership within 18-24 months at high volumes.

How long before we see results?

An internal-only demo of a scoped chatbot should be usable within 4-6 weeks. A pilot with real users typically happens at weeks 10-12. Meaningful business metrics - deflection rate, CSAT impact, agent time saved - usually stabilise around three months post-launch, once the content has been tuned and the evaluation harness has caught the initial round of edge cases. Anyone promising production-grade results in under six weeks on a novel use case is either using a very narrow scope or skipping evaluation.

Will the chatbot hallucinate and embarrass us?

Any LLM-based system can hallucinate. The question is whether your implementation makes it likely or rare. Grounded RAG with retrieval that consistently surfaces the right documents, prompts that instruct the model to only answer from provided context, citation checking that verifies claimed sources exist, and refusal logic for low-confidence queries reduces hallucination to a rare event - typically well under 2% of responses in mature deployments. What eliminates the risk entirely is the guardrail layer plus the evaluation harness catching regressions before they ship. Bots that embarrass companies are almost always ones that skipped one or both.

Is this GDPR-compliant?

It can be. The ICO has published clear guidance on AI and data protection, and it applies here in full. You need a lawful basis for processing user queries (usually legitimate interest for support use cases, with appropriate notices), a data processing agreement with your LLM provider, controls on what personal data can be sent to the model, and a process for handling data subject access requests that includes chatbot logs. If you're using OpenAI, Anthropic, or a major cloud provider, they offer enterprise agreements with data-residency and no-training commitments that make this manageable. Self-hosting an open-weight model on UK infrastructure removes the transfer question entirely.

Should we use ChatGPT, Claude, Gemini, or an open-weight model?

For most business chatbots the choice is between GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro. All three are competitive on quality; the differences come down to cost, latency, context window, and integration. Claude tends to follow instructions and refuse gracefully with less prompting. GPT-4o has broader tooling and function-calling maturity. Gemini has the largest context window and the tightest Google Workspace integration. Open-weight models like Llama 3.3 or Mistral Large are worth it when data residency, cost at scale, or fine-tuning matter enough to justify the ops overhead of self-hosting. For most mid-market builds, a hosted frontier model is the pragmatic default.

Can we swap models later if a better one comes out?

Yes, if the system is built with an abstraction layer between the application logic and the model API. A well-architected chatbot treats the LLM as a swappable component - the retrieval, evaluation, and guardrail layers are model-agnostic. Swapping GPT-4o for Claude 3.5 Sonnet or a future frontier model is usually a matter of days, not weeks, plus a re-run of the evaluation suite to confirm quality holds. If your build is tightly coupled to one vendor's specific features - Assistants API, specific function-calling quirks - the switch is harder. Ask the agency about model portability during scoping.

What happens if the chatbot can't answer a question?

It should refuse gracefully and hand off. A well-designed refusal explains that the bot doesn't have the information, offers to connect the user with a human, and creates a ticket or Slack notification for the support team with full conversation context. The worst pattern is a bot that guesses. The second worst is a bot that dead-ends the conversation with "I can't help with that" and no escalation. Refusal design is as important as answer design - it defines the trust the user has in the answers they do receive. Test refusal behaviour explicitly in the evaluation harness.

Who runs the chatbot after launch?

Someone has to. Content changes, products launch, edge cases surface, retrieval drifts as documents grow. Options: a dedicated internal owner (usually within customer support or operations) trained during the build, an agency retainer covering monthly evaluation and tuning, or a hybrid where the agency handles technical operation and the internal team owns content. The hybrid model works well for mid-market businesses without an in-house AI engineer. Skip the ownership question and the bot's accuracy will drop 5-15 percentage points within six months as content ages - not enough to cause a crisis, but enough to quietly erode user trust.

Getting started

If you are considering commissioning a chatbot build, the highest-value first step is usually not picking an agency. It is running an internal audit of the top 100 questions your support team, sales team, or internal users are actually asking, and checking whether the answers exist in a single trustworthy place. That audit determines whether a chatbot project will succeed or stall. If you want a partner to run that audit and, if the answer is yes, build and operate the system that follows, AI Advisory does this work for UK mid-market businesses across support, internal knowledge, and sales use cases.

Ready to put this into production? book a discovery call.

Get started

Ready to automate your operations?

Walk away with a prioritised list of automation and AI wins, costed, sequenced, and yours. The call is 30 minutes, free, and binds you to nothing. The shortest path to knowing whether AI Workflow Agency is the right fit.