This is what passed for AI decades ago. A Markov-chain chatbot based on MegaHAL, a program from 1998. It is not what we call "AI" today. This all works in your browser and doesn't send anything you type to a server. It uses far less of your computing power than it took to draw this sentence on your screen.
The speech is powered by klattsch. Font: IBM VGA 8x16, int10h.org (CC BY-SA 4.0).