ELIZA was a computer program written by MIT professor of psychologist Joseph Weizenbaum in 1966. It emulates a conversation between a patient and psychotherapist. The conversations are suprisingly human-like despite the program not understanding a word you are saying.
You can read more about Eliza here.
This implementation of Eliza is thanks to Norbert Landsteiner, 2005.