AI basics
What is an AI chatbot?
An AI chatbot is software you talk to in everyday language, powered by a language model. Learn how it works, how it differs from older bots, and its limits.
An AI chatbot is a program you converse with in everyday language, typically powered by a large language model. It reads your message, uses the recent conversation as context, and generates a reply that fits, rather than picking from a fixed list of canned answers.
You will find AI chatbots in customer support, search tools, apps, and community platforms such as Discord.
How does an AI chatbot work?
At a high level, each reply goes through these steps:
- You send a message.
- The app gathers the relevant text: your message, earlier messages in the conversation, and any instructions the developer set, such as tone or topics to avoid.
- That text is sent to a language model, which generates a reply one token at a time.
- The app shows you the reply, and the conversation continues.
The model itself does not remember past chats. The app creates the sense of continuity by re-supplying recent messages each time, within the model's context window, and sometimes by adding stored memory.
AI chatbot vs rule-based chatbot
| Rule-based chatbot | AI chatbot | |
|---|---|---|
| How it answers | Matches keywords to scripted replies | Generates replies from a language model |
| Flexibility | Breaks on unexpected wording | Handles varied phrasing |
| Predictability | Very predictable | Can vary between runs |
| Risk | Gets stuck or loops | Can state wrong things confidently |
Older bots with menus and scripted flows still have a place when answers must be exact. AI chatbots shine when questions are open-ended.
What can AI chatbots do?
- Answer questions and explain concepts.
- Summarize text or conversations.
- Help draft, rewrite, or translate writing.
- Brainstorm ideas.
- Walk through code or troubleshoot problems.
What are their limitations?
- Hallucinations. They may invent details. See what are AI hallucinations.
- Limited context. They can only consider so much text at once.
- No real-world awareness. Unless connected to other tools, they only know their training data and what you tell them.
- Wording sensitivity. Clear requests get better answers. See how to write good prompts.
Common mistakes people make
- Trusting a single answer on a medical, legal, or financial question without checking a reliable source.
- Sharing passwords or other sensitive personal information in a chat.
- Assuming the bot remembers a conversation it was never given.
For a general definition, see Wikipedia on chatbots.
Using an AI chatbot on Discord with Based
Based is an AI chatbot for Discord. In a server, you mention Based or reply to one of its messages to start a conversation, and DMs work too. There is no separate chat command. You can attach an image to a mention, reply, or DM to ask about it. Server staff can also optionally turn on automatic replies, which are off by default, using /autoreply. Every slash command also works with the "." prefix, such as .autoreply.
Based reads a bounded window of recent messages for context, by default 40 messages and 12,000 characters, and nothing is archived. See the AI chat docs, the AI chat feature page, or invite Based.
Frequently asked questions
What is an AI chatbot?
It is a program that holds a conversation in plain language by generating replies with a language model, instead of following a fixed script.
How is an AI chatbot different from a regular chatbot?
A regular chatbot matches keywords to prewritten answers. An AI chatbot generates its replies, so it copes with more varied questions but can also make mistakes.
Does an AI chatbot remember me?
Not by itself. The app re-sends recent messages for context, and some apps add optional stored memory on top.
Can an AI chatbot be wrong?
Yes. It can produce fluent but incorrect answers, so verify important information.
Keep learning
- AI basics
What is a large language model (LLM)?
A large language model is an AI trained on huge amounts of text to predict and generate language. Learn how LLMs work, what they do well and where they fail.
- AI basics
What is a context window in AI?
A context window is the maximum amount of text an AI model can consider at once. Learn what tokens are, what happens when it fills up, and how to work within it.
- AI basics
What is AI memory?
AI memory is how a chatbot keeps facts about you between conversations. Learn how it differs from a context window, how it works and the privacy trade-offs.
- AI basics
What are AI hallucinations?
AI hallucinations are confident but false or invented answers from a model. Learn why they happen, how to spot them, and how to reduce them.
- AI basics
How to write good AI prompts
A good AI prompt states the task, context, format and constraints clearly. Learn practical steps, examples and common mistakes to get better answers.
Try it in your server
Based is an AI Discord bot in 300+ servers. Every slash command also works with the "." prefix.