Talking to my computer through Serial

You can read the characters in with Serial.read and store it in either a String or array[], and use either IF statements or case statements to trigger a response.

Now depending on the number of responses you want it to have, will determine how long your code will be.

You might also be able to use the index function, to search for prelisted words.