What is a chatbot? Definition, types and how it works

A chatbot is a computer program that holds a conversation with a person in natural language, through text or voice. The first one, ELIZA, was written by Joseph Weizenbaum at MIT in 1966. Today the category ranges from simple FAQ bots on shop websites to AI assistants such as ChatGPT, which Sam Altman said reached 800 million weekly active users in October 2025.

Updated: 17 October 20263 min read
Comparison of rule-based chatbots and generative AI chatbots
Source: MIT CSAIL; Gartner 2022

What is a chatbot?

A chatbot is an interface that replaces forms, menus or a human agent with a dialogue. The user types or says something, the bot interprets the message and replies, then waits for the next turn. Chatbots live on websites, in messaging apps such as Messenger and WhatsApp, in mobile apps, in voice assistants and inside search engines. Businesses use them for customer service, lead qualification, booking and product recommendations.

How does a chatbot work?

A chatbot works in a loop of input, understanding, response generation and output. What changes between bot types is the middle part:

  • Rule-based bots match keywords or button clicks to scripted answers.
  • NLP bots classify the user’s intent and extract entities such as dates or product names, then pick a prepared answer.
  • LLM bots generate a new answer word by word with a large language model, often grounded in company documents or live web results (retrieval-augmented generation).

ELIZA from 1966 used the first approach: according to MIT CSAIL, it relied on pattern matching and substitution to turn the user’s sentences into follow-up questions, imitating a Rogerian psychotherapist.

Types of chatbots

Chatbots fall into 3 main types, which differ in flexibility, cost and risk.

Rule-based chatbots

Rule-based chatbots follow a decision tree written by a person. They are cheap, predictable and good for order tracking or opening hours, but fail as soon as the user leaves the script.

AI chatbots with NLP

Intent-based AI chatbots understand varied phrasing but still answer from a fixed library. Many customer service platforms from the late 2010s work this way.

Generative AI chatbots

Generative chatbots such as ChatGPT, Google Gemini and Perplexity AI write original answers and handle open questions. They need guardrails, because a language model can produce confident but wrong statements.

Chatbot milestones

YearMilestone
1966ELIZA created by Joseph Weizenbaum at MIT
2016Facebook opens the Messenger bot platform to businesses
2022Gartner: 54% of surveyed organisations use some form of chatbot or conversational AI
2025ChatGPT reaches 800 million weekly active users (OpenAI DevDay, 6 October)

Chatbots in marketing, SEO and AI search

Chatbots matter to marketers in two ways: as a channel you run on your own site and as a channel where customers now research your brand. On your site, a bot answers pre-sales questions at night, qualifies a lead before a sales call and reduces support tickets. Gartner predicted in July 2022 that by 2027 roughly a quarter of organisations would use chatbots as their primary customer service channel.

The second role is bigger for SEO. Generative chatbots answer product questions directly and cite only a few sources, so your brand either appears in that answer or does not exist for that user. This is why I connect chatbot visibility with AI SEO (GEO) services and with entity SEO: the bot has to recognise your brand as an entity and find clear, quotable facts about it.

How to implement a chatbot on your website

Implementing a chatbot starts with a narrow job, not with picking software. These steps keep the project measurable:

  1. Choose one job, for example answering delivery questions or booking demos.
  2. Collect the most frequent questions from email, phone and live chat.
  3. Connect the bot to a single, up-to-date knowledge base or product feed.
  4. Define a handover to a human for complaints, refunds and sales-ready leads.
  5. Track resolution rate, handover rate and the conversion rate of chat users.

Rule-based vs generative chatbot

CriterionRule-basedGenerative AI
AnswersPre-writtenGenerated on the fly
SetupDecision treesPrompts, knowledge base, guardrails
RiskDead endsHallucinated facts
Best forOrder status, FAQsAdvice, research, complex questions
Pro tip: Export the questions people type into your website chatbot every month. They are real long-tail queries in your customers’ own words, and each recurring question deserves an answer section on the relevant page.

Frequently asked questions about Chatbot

What was the first chatbot?

The first chatbot was ELIZA, created by Joseph Weizenbaum at MIT in 1966. It used pattern matching to rephrase the user's statements as questions, imitating a psychotherapist.

What is the difference between a chatbot and ChatGPT?

ChatGPT is one example of a chatbot, specifically a generative AI chatbot built on OpenAI's large language models. Many other chatbots are rule-based and only answer from a fixed script.

Are chatbots good for SEO?

A website chatbot does not raise rankings directly, but its logs reveal real customer questions you can turn into content. Generative chatbots also act as a search channel, so being cited in their answers is now part of SEO.

Related terms

International SEO · AI SEO (GEO)

Grow in every market, and get cited by AI

Customers now ask chatbots like ChatGPT and Gemini which brand to choose, in their own language. If you sell internationally, I help make sure your brand is the one these assistants know and cite in every market.

I help SaaS and e-commerce brands win organic traffic across Europe and the US, and get their brand recommended in ChatGPT, Gemini, Perplexity and Google AI Overviews. Every project starts with a free audit of your site, your markets and your visibility in AI answers.

Write to Adrian

Have a question about this term or your SEO?

Send a short message about your website, the markets you sell in and what you want to achieve. You get a reply from me, not from a sales team.

  • Free preliminary SEO and AI visibility audit
  • Strategy for international and multilingual markets
  • Reply within one business day
Book a free call
Adrian Dąbrowiecki

Write to Adrian

Adrian Dąbrowiecki · Marketer Coffee

Tell me about your site and your goals. I usually reply within one business day.