Mumbai Blood Bank Locator Agent

Internet Bots are in fashion these days. They seem to be doing a lot of tasks these days and it seems almost human like in the kind of responses.

I thought of coupling together an Internet Bot along with Instant Messenger application that we use on a daily basis to provide useful information to you.

The result: Mumbai Blood Bank Locator Agent — A friend of yours that will give you details on Blood Banks in Mumbai.

Let us go through how you can add this useful bot as your friend and see it in action.

What does this Bot do?

The Mumbai Blood Bank Locator Agent is an automated agent that will respond to certain commands. It requires Google Talk and you need to add it as your friend. Once that is done, you can ask it for Blood Banks in particular areas of Mumbai and it will respond back with a list. For e.g. here is a screenshot of a conversation where I have asked it for Blood Banks in Ghatkopar and it has responded as shown below:

Mumbai Blood Bank Locator

Allright! Sounds interesting and useful — let us set it up.

How do I set it up?

Follow these easy steps:

  1. You need to have a Google Account (Gmail) and Google Talk set up on your computer.
  2. Add as a contact/friend/buddy in Google Talk. The agent will automatically add you as a friend and you should see the bloodbanklocator in your contact list in Google Talk.
  3. Start a Chat Window with bloodbanklocator and start conversing.

Wow! That was simple — but you ask if my bot can understand anything that you throw at him?

What commands does it understand?

Well – it turns out that this bot/agent is there to help you with locating Blood Banks in Mumbai and so its vocabulary is fairly restricted at this point to enable it to do what it is supposed to do.

Here is a list of commands that it understands:

1. You type arealist and it will respond back with a list of areas in Mumbai where blood banks are present.


2. You type the specific area i.e. Parel or Mahim and it will respond back with the list of Blood Banks in the area, as was shown in the previous paragraph. In case there are no blood banks, it will tell you that

In case you type something it does not understand or the area that you mention does not have any Blood Banks then it will let you know that too. An example is shown below:


3. Type help to get a list of commands that the Bot understands.

Support this

I am looking for interested individuals to please let me know if some data is currently wrong or if some Blood Bank is not mentioned. I would really appreciate if you come forward with that. Just write me an email.

Calling all interested people

Here is the first of my services that I will be releasing over the next few months. I have several services in mind that are both humanitarian in nature and also informational. Some of these services include:

  • Get list of Chemists in your area
  • Police Stations, Ward offiices, etc
  • Traffic Updates
  • Weather
  • Passport status updates
    and more…

If you are an interested developer or simply wish to volunteer in collecting/providing information and testing some stuff out along the way, please contact me. Just write me an email stating what you can do and I will respond to you. I would also like to hear your feedback on what you think of this.

Please share

If you like this bot — please share it with your friends.  Thanks for looking!

For Technical minded folks

For those interested in learning how this was built, an upcoming blog post will provide details on that. At this point it is sufficient to say that behind the scenes is the Google App Engine for Java along with the shiny new XMPP support.


13 thoughts on “Mumbai Blood Bank Locator Agent

  1. It is so cool.Waiting for your blog on how to make it!Would love to help you with the ones that are coming up,but I really fall short of time in an academic life.That’s such a genius.Would definitely help spread the word.Its a cool-bot.

  2. cool stuff Romin..well done! What I have observed is, we are expecting users to know the commands before hand. Is it possible to list out the commands on opening the chat window, rather then waiting for them to type something and validating their keywords

    1. Hi Nilesh,

      Thanks for your comments.

      Yes — you can get a list of commands by simply typing help in the Chat window. The Bot will reply back with the commands that it understands. I am assuming that help is atleast a somewhat standard thing that users might expect to type first. It is not a full proof thing but thats the best currently that this bot can do.


      1. Hi Nilesh,

        I have covered a detailed article on how to write a Chat Agent of your choice in my technical blog. You can find that article with step-by-step instructions over here:

        Since you wish to integrate the Weather Service — a good REST based API would be Yahoo Query Language :, which in addition to Weahter Service also exposes several other popular Web Services in a standard and developer friendly SQL-like manner.


  3. Hi Romin,

    I really love your articles. These are straight forward,
    & anyone can jump into developing high tech apps.

    Specially, your ebook effort is awesome and fascinating.

    I Thanks heartedly, for your so nice contribution.

  4. Hi Romin! Thanks a lot for writing this blog and sharing all these knowledge with all of us!
    I started reading your e-book and let me tell you, being a j2ee developer, I have never come across such a simple and effective technical guide before! It not only explains the basics and features provided in GAEJ but also inspires to build some really outstanding real-time applications… I can simply not stop thinking about the ideas which can be translated to real time apps, available and open for all of us!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s