Google Talk BOT

In this article, I will explain how to setup a Google Talk BOT.

For more details, write to me at pari.gandhi@gmail.com

Screenshot:

Have a look at the screen shot below:

“Arun” is a human user whereas paari.gandhi(AT)gmail.com is a Google Talk BOT written by me.

Setup Instructions

Step 1: Register with Pandora Bot and create a new BOT.

Modify the default properties of the BOT.

Modify the custom HTML of the BOT as follows:

Publish your BOT and note down your BOT Id.

Step 2: Create a simple Java program that chats with the published Pandora BOT.

You need to have the following jar files in your class path:

  • commons-codec-1.3.jar
  • commons-httpclient-3.1-alpha1.jar
  • commons-logging-1.1.jar
  • commons-logging-adapters-1.1.jar
  • commons-logging-api-1.1.jar

Step 3: Download the latest Smack libraries.

Create a simple GoogleTalk client using the Smack API. The client will use the pandorabot to send messages.

You need to have the following jar files in your classpath

  • smack.jar
  • smackx.jar
  • smackx-debug.jar
  • smackx-jingle.jar

Step 4: Thats it. Run your BOT and have fun.