I want to build a program that can chat with human but I don't know any algorithms to create one. For example, if I say "hello! How are you", the AI chatter will answer: " Very well! You're so kind!". I have experience in java and C#.
So where can I find these algorithms?