I made a very simple corpus-driven chatbot that replies to you with the line of text from the corpus that comes after/is in response to the line of text most similar to what you just typed. here's a sample interaction where the database is built from the Cornell Movie Dialogs corpus... (my typing in green, bot response in blue; I typed the first turn and it alternates after that)