Definition
When you message a bank at midnight and get an instant reply, who is typing?
A chatbot is a computer program that holds a conversation with a person through text or voice. It may follow a script written in advance, or use a language model to understand messages and write replies.
In simple words
A chatbot is like the enquiry counter at a railway station, except that it is open all night, never gets tired of the same question, and can talk to thousands of people at the same moment. Like any counter, it handles common questions well and unusual ones badly.
Why it matters
Chatbots are now the first point of contact for banks, shops, travel, government schemes and study help. You will get better results, and avoid mistakes, if you know what a chatbot is, what it is good at and when to ask for a person.
Key terms
- Chatbot
- A program that converses with people in text or speech.
- Conversational AI
- The technologies that let machines hold a dialogue: speech, language understanding and reply generation.
- Turn
- One message from one side of a conversation.
- Handoff
- Passing a conversation from the chatbot to a human agent.
- Virtual assistant
- A chatbot or voice assistant that helps with tasks on a person's behalf.
- Phishing
- Tricking people into giving up passwords or money by pretending to be a trusted service.
Explained in detail
A short history of talking programs
| Year | Milestone |
|---|---|
| 1966 | ELIZA imitates a counsellor by turning the user's sentences into questions |
| 1990s and 2000s | Telephone menus and simple website helpers answer fixed questions |
| 2011 | Voice assistants arrive on phones |
| 2016 | Messaging apps open to chatbots; banks, airlines and shops launch them |
| 2022 | Chatbots built on large language models can discuss almost any subject |
Two purposes
It helps to separate chatbots by what they are for. A task chatbot exists to get one kind of job done: track an order, book a ticket, block a card, check the status of an application. Success means finishing the task in as few messages as possible. An open-ended chatbot is meant for general questions, explanations, writing and conversation. It has no single task, so it is judged by how helpful and accurate its answers are. The two need different designs. Using an open-ended chatbot to block your bank card would be risky, and using a task bot to explain photosynthesis would be useless.
Chatbots in Indian public life
India has taken to chatbots on messaging apps, because almost everyone with a smartphone already uses one. During the pandemic in 2020 the government ran a helpdesk on a messaging app that answered questions about the virus and later delivered vaccination certificates to millions of people. The railways run an assistant that answers questions about bookings and train status in English and Hindi. Banks, electricity boards and gas agencies offer chatbots for balances, bills and bookings. For many people, typing a message is far easier than navigating a website.
Why organisations use them
The reasons are practical. A chatbot answers at midnight and on holidays. It can serve a hundred thousand people at the same moment, so nobody waits in a queue. Each answer costs very little. It gives the same information to everyone. For the user, this means instant answers to simple questions. The cost to the user appears when the question is not simple: a chatbot that cannot understand, will not hand over to a person, and keeps repeating the same menu can be worse than no service at all.
What makes a chatbot good
- It says at the start that it is automated and what it can help with.
- It solves the common problems in a few messages.
- It admits when it does not know, instead of guessing.
- It offers a human agent when the matter is urgent, unusual or sensitive.
- It works in the user's language.
- It asks only for the information it needs.
How it works
| Where | What the chatbot does |
|---|---|
| Banks | Tells your balance, blocks a lost card, explains charges |
| Shopping | Tracks orders, starts returns, answers product questions |
| Travel | Checks train status, books tickets, sends updates |
| Public services | Explains schemes and application status in local languages |
| Learning | Explains a topic, sets practice questions, gives feedback |
| Health information | Gives general information and books appointments |
The basic loop of every chatbot
- Receive the user's message.
- Work out what the user wants.
- Find or write a reply.
- Send the reply and wait for the next message.
| Strength | Limit |
|---|---|
| Available all day and all night | Cannot handle situations outside what it was built or trained for |
| Answers thousands of people at once | May misunderstand unusual wording |
| Patient with repeated questions | Has no real understanding of your situation |
| Consistent answers | AI chatbots can state wrong facts confidently |
Try it yourself
A chatbot answers, then steps aside
A customer messages an online shop at 11 p.m.
Chatbot or human?
Who should handle each request first?
Money has left my account and I did not send it
How do I reset my password?
My father has died; how do I close his account?
What time does the branch close?
What is the status of my train?
Common mistakes
- Thinking every chatbot uses advanced AI. Many follow a simple script.
- Thinking a chatbot's answer is official and always correct.
- Sharing OTPs or passwords in a chat window.
Check yourself
Summary
- A chatbot is a program that converses by text or voice.
- It handles common questions at any hour and for many people at once.
- For urgent, unusual or sensitive matters, ask for a person, and never share secrets in chat.
Finished reading?
Sources: Elements of AI (University of Helsinki) · AI4K12: Five Big Ideas in AI