Episode 2 : GAEJ + XMPP and rolling your own Agent
December 2017: Google Talk is no longer available. I suggest that you do not go through this blog post, which is definitely obsolete now. If you are looking at building conversational agents, look at https://www.dialogflow.com