Chatbots are annoying. They are only useful for learning scripting and shouldn't be used after testing.There are tutorials. Use the search feature and search for "chatbot tutorial"
The first thing I scripted was a bot. Those files are good for learning.
Or make a bot that learns...