This is an example of an AI Chat using prompt and answer lists. When the project starts, it asks you to give it a prompt, when you answer it tries to find that prompt in the list. If it finds it then it can give you the corresponding response. If it doesn't than it gives tells you to give it the response you want it to say and it adds that to the list. To train it ask it a whole bunch of questions and give it the correct answers. Then you will be able to give it prompts and it can answer! I have already given it a few prompts so experiment and have fun!
All by me