When you understand the basics of the ChatterBot library, you can build and train a self-learning chatbot with just a few lines of Python code. You'll get the basic chatbot up and running right away in step one, but the most interesting part is the learning phase, when you get to train your chatbot.