What is a chatbot?

A chatbot is software that answers questions in a text or voice conversation with the user, driven either by predefined rules or by a language model.

It differs from an AI agent in action: a chatbot answers each user turn, while an agent calls tools and carries out multi-step work towards a goal. Not every chatbot uses AI; many still run on rules.

Topic
Core concepts
Also known as
Chat bot, conversational bot
Origin
1966, ELIZA (Weizenbaum)

How a chatbot works

Rule-based bots pick a pre-written answer using keywords, menu flows or intent detection. LLM-based bots take the conversation history and the system prompt as context and generate the answer token by token.

Bots that must rely on internal knowledge use Retrieval-Augmented Generation to fetch relevant documents and ground the answer in them. On voice channels speech is first turned into text or handled directly by a speech model; the user's message passes input guardrails and the answer passes output guardrails before it reaches the user.

In more detail

Managing conversation state and context

Multi-turn chatbots must manage conversation state across turns: full history is either kept in the context window, compressed via rolling summaries or trimmed by token budgets. Without explicit session isolation and state truncation, long chats can trigger context overflow, latency spikes and cross-session data leaks.

Hybrid architecture combining rule-based flows with an LLM

Enterprise chatbots increasingly combine deterministic guardrails and structured tool use (such as MCP or function calling) with conversational turns. Hybrid routing lets high-risk actions, like password resets or refunds, follow deterministic workflows while open-ended questions are handled by the LLM.

Evaluation and monitoring metrics

Evaluating an enterprise chatbot requires tracking both retrieval and answer quality (groundedness, faithfulness, refusal accuracy) and operational user metrics (containment rate, escalation rate to human agents and latency). Automated LLM-as-a-judge checks on conversation logs help catch drift early.

Commonly confused terms

TermHow it differs
Interactive voice response (IVR)An IVR (Interactive Voice Response) system routes callers through rigid DTMF or basic voice menus, whereas an LLM-based voice chatbot handles open-ended natural dialogue.

Why a chatbot matters for on-premises AI

An in-house chatbot lets staff query internal regulations and technical documents without sensitive data leaving the organisation. Permission-aware retrieval helps restrict retrieved documents to those the user is allowed to see. LLM-based bots carry hallucination and prompt injection risk, so they need guardrails and audit logs; conversation records are managed under the organisation's retention and access policies.

ON-PREMISES EXAMPLE

A telecoms operator gives field staff an in-house chatbot for current maintenance procedures; it answers only from documents each engineer is authorised to see.

Common questions

How does a rule-based bot differ from an LLM-based one?

A rule-based bot answers only predefined menus and patterns. An LLM-based bot understands free-form questions and can use RAG to answer from internal documents.

How do you stop an enterprise chatbot from inventing information?

Grounding answers in verified internal documents, requiring citations, using a low temperature and applying output guardrails reduce the risk.

Sources

Related page on this site: Related FAQ · In the glossary: Glossary, A to C

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.