Chatbots.me

What is a chatbot, and how do AI chatbots work?

By the Chatbots.me team · Updated

An old typewriter next to a modern smartphone lying face down on a desk

A chatbot is software that holds a conversation with you in text or speech. Some follow fixed scripts, like the help bot on a bank's website; the AI chatbots people mean today, such as ChatGPT, Claude and Gemini, use large language models to write replies to almost anything you ask. OpenAI launched ChatGPT on November 30, 2022, and TechCrunch has reported more than 900 million weekly users for it.

Two kinds of chatbot

Rule-based chatbots

These follow a decision tree. You pick "Track my order," type an order number, and the bot looks it up. They are predictable and cheap, and they fail the moment you say something outside the script. The first famous chatbot, ELIZA, built by Joseph Weizenbaum at MIT in 1966, worked this way: its DOCTOR script matched keywords in your sentence and turned them into questions, imitating a therapist. Many people still found it convincing, which says something about how easily we read minds into text.

AI chatbots

These are built on large language models (LLMs). Nobody wrote their answers in advance; the model generates a reply word by word. They handle open questions, writing, summaries, code and translation. They also make mistakes that a script would not. Everything else on this site is about this second kind.

How an AI chatbot works

The explanation has four steps, and none needs math.

  1. The model is trained on huge amounts of text, learning which words and ideas tend to follow which.
  2. Your message is cut into small pieces called tokens, roughly a word or part of a word each.
  3. The model predicts the most suitable next token, adds it, then predicts the next, until the reply is done.
  4. Companies then tune the result with human feedback, so answers are more helpful and polite and refuse harmful requests.

The key point is that the model is predicting plausible text, not looking up a fact table. That is why it is brilliant at phrasing and uneven at precision.

Why chatbots make things up

Researchers call false but fluent answers hallucinations. They happen because the model fills gaps with likely-sounding text. A request for a source it has not seen can produce a convincing fake citation. Tools that search the web first, such as Perplexity, cut down on this by attaching real sources, and you should still open them. Rule of thumb: the more specific and checkable the claim, the more you need to check it.

What a chatbot remembers

Within one conversation, a chatbot can only use what fits in its context window, the amount of text it can hold at once. Free tiers have smaller windows than paid ones; Google lists 32,000 tokens for free Gemini and 1 million for Google AI Pro. Once a chat grows past the window, early parts are forgotten. Some services add a separate memory feature that stores facts about you between chats, which you can turn off.

Where you will meet chatbots

  • General assistants: ChatGPT, Claude, Gemini, Copilot, Perplexity.
  • Customer service bots on retail, bank and airline sites.
  • Voice assistants: Siri, Alexa, Google Assistant.
  • Companion and character chat apps. See our page on Character AI alternatives.
  • Writing and study tools with a chat box built in.

The assistants that also take actions on your behalf are covered in the guide to the AI assistant, which explains how "assistant" differs from "chatbot." That difference is also what people mean when they talk about AI agents: bots that carry out multi-step tasks instead of only replying.

How to try an AI chatbot safely

You do not need to pay or install anything: many services have a free tier, listed on our page for the free AI chatbot options, and some work without an account. Start with a harmless question you already know the answer to and see how it does. Then try a real task. Keep personal and work-confidential details out of it, since services may store chats.

If you would rather speak than type, read how to talk to AI. For a view across all the major options, see the ChatGPT alternatives roundup. Or return to the main guide to AI chatbots.

Chatbots are also sold to companies for customer service, with very different costs and risks, which we cover in AI chatbot for business. The newer kind is explained in generative AI assistant, and a hands-on start is in AI chat.

Questions about chatbots

Can you give me some examples of chatbots?

ChatGPT, Claude, Gemini and Microsoft Copilot are general AI chatbots, as are customer service bots and voice assistants like Siri and Alexa. ELIZA, from 1966, is an early scripted example.

Is Alexa a chatbot?

Alexa is a voice assistant, which is a chatbot you speak to, with extras such as smart-home control and timers. Chatbot is the broader word for software that holds a conversation.

Why would someone use a chatbot?

People use chatbots for fast answers, support at any hour, drafting, learning and language practice. The value is speed on routine tasks, not judgment on complex ones.

What should you avoid discussing with a chatbot?

Avoid discussing passwords, bank details, ID numbers, private medical records and confidential work files with a chatbot. Many services store conversations and may use them to improve their systems.

Do chatbots understand what I say?

Chatbots process what you say well enough to reply usefully, but whether that is understanding is debated. A language model predicts likely text and has no experiences or awareness.

Why do chatbots make things up?

Chatbots make things up because a language model fills gaps with likely-sounding text instead of looking up facts. Researchers call these false but fluent answers hallucinations.

What is the difference between a rule-based chatbot and an AI chatbot?

A rule-based chatbot follows a decision tree and fails outside its script, while an AI chatbot built on a large language model generates each reply word by word.

Does a chatbot remember what I said earlier?

A chatbot remembers only what fits in its context window within one conversation, such as 32,000 tokens on free Gemini. Some services add a memory feature you can turn off.