Skip to content

Chatbot

Also called: chatbots

Published:

How does a chatbot work?

AWS sorts chatbots into three groups [1]. Rule-based bots follow predefined rules. Users usually pick from buttons or menus, and the same question always gets the same answer. Keyword-based bots spot words in a message and match them to prewritten replies, so they only cope with topics their developers anticipated [1].

Modern chatbots use natural language processing to understand the user and generate a reply rather than pull a fixed script. Bots built on a large language model can handle complex questions and keep up when the conversation changes topic [1].

Where are chatbots used?

Call centres are the familiar case. A customer can reset a password, check a balance or book an appointment with a bot, and the bot keeps track of the conversation so human agents carry less of the load [1]. Inside a company, a bot connected to sales, inventory or HR systems can pull reports or help new staff find their way [1].

The best-known general-purpose chatbot is ChatGPT. When OpenAI introduced it in 2022, it said the dialogue format let the model answer follow-up questions, admit mistakes and challenge incorrect premises [2]. The model was trained with reinforcement learning from human feedback (RLHF) [2].

What are the limits of chatbots?

In the same announcement OpenAI noted that the model could give plausible-sounding but incorrect or nonsensical answers, was sensitive to how a question was phrased, and tended to guess at an ambiguous request instead of asking for clarification [2]. Answers from a chatbot on health, legal or financial questions are worth checking against a primary source.

Frequently asked questions

Does every chatbot use AI?

No. Rule-based and keyword-based bots only return replies their developers wrote in advance.

Can a chatbot be wrong?

Yes. Language-model chatbots can produce fluent answers that are factually incorrect.

Sources

  1. What is a Chatbot? — AWS
  2. Introducing ChatGPT — OpenAI