Implementation of ELIZA one of the first ChatBots created (1964).
PythonMIT
ELIZA implementation
Primarily created to explore communication between humans and machines. Was created using pattern matching and substitution method.
These methods can give the illusion of understanding. But it don't have it.