Uhh...
Try to make an AI of sorts...think about doing things like using indexOf rather than using just exact string evaluation (as in, it HAS TO BE THIS, and you always get THIS responce [which is what you have -- if input is exactly this, this is result]). It's an okay attempt to make a bot -- but not something flash portal worthy.
Like I said, look up "indexOf", and you may have better luck at making an interactive bot. Also, look up "soundex" for ideas on an advanced bot.