Now you can create cases via Twitter

Traditionally, customer service was provided via phone, email or web. In the age of Twitters and Facebooks, those options seems so old age practice. Since youngsters spend so much time on the ubiquitous Twitter, they would eventually bring customer service to Twitter and other social media.

Here is how YATSY (a simple case management system for Google App Engine) is integrated with Twitter.

twitter

Isn’t that simple? Follow @yatsy; once yatsy follows back, send a direct message to yatsy to create a case. YATSY system will read this DM and create a case & will respond back.

Having Twitter Integration is a double edge sword. If you provide a fantastic customer service it will be known in the social media. On the other hand, if you do a lousy job, it will spread like a wild fire. Yet, if you monitor Twitter Streams, you’ll be able to improve your products and customer service too.

Now for the techies. How did I implement Twitter Integration? YATSY itself is written using web2py, a web-framework in Python. Twitter streams are parsed using python-twitter, a simple & efficient Python wrapper for Twitter API.

Steps Forward

  • Use Google App Engine Cron to initiate twitter parsing & case creation (now one need to explicitly execute the function)
  • Using the same Cron facility for auto-follow
  • Use a message queue for IN/OUT messages (if you know a good message queue implementation in Python, please leave a comment)
  • Integrate (case) notes with Twitter

If your hands are itching to test this, go ahead and follow yatsy & once yatsy follow you back, DM your case text.

If you are interested in checking out the code or want to do a code review, head to Google Code page

This entry was posted in Programming and tagged , . Bookmark the permalink.

3 Responses to Now you can create cases via Twitter

  1. sudarshan says:

    I chanced upon your blog and found it very informative. The event blogs are striking enough to have a feel of the event, so, I would like to have a little chit-chat on your blogging interests. And even we are coming up with an event on startups on June 6th in Bangalore. So, can I have your contact details? Looking forward to hear from you.

  2. Zie says:

    What’s wrong here?
    http://pastebin.ca/1628314

    Thanks in advance!

    • id804097 says:

      Can you please replace
      import applications.init.modules.apihelper as api

      in both controllers into the below and try?

      exec(“import applications.%s.modules.apihelper as api” % request.application)

      I will try and patch the code

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>