Originally published on CodingCush .
It is 11 at night. You message a small tea shop to ask the price of a cup of chai, and a reply pops up in two seconds. No one is awake at the shop. The reply came from a chatbot. A chatbot is a computer program that talks with people through messages. It reads what you type, picks the best reply it knows, and sends it back, day or night. In this guide, we will build a tiny one together, a little tea stall bot in Python, and you will see exactly how it understands you.
Our Running Project: A Tea Stall Bot That Never Sleeps
Our bot works for a made up shop, Kiran's Tea Stall. It is fictional, invented for this guide, but the code is real and you can run it yourself. The bot will start with one trick, saying hello, and then grow. First it answers questions about price and timings, then it keeps chatting until you say bye. Every step adds one feature to the same small program, so you can watch a chatbot grow from a single reply into a real conversation.…