Now you can create cases via Twitter

By Joseph Jude on May 2, 2009
Posted Under: Programming
Print This Post Print This Post

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

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Bloglines
  • email
  • Facebook
  • LinkedIn
  • MySpace
  • Squidoo
  • Technorati
  • TwitThis
  • Google Bookmarks
Tags: ,

Reader Comments

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.

#1 
Written By sudarshan on May 30th, 2009 @ 11:52 am

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

Thanks in advance!

#2 
Written By Zie on October 19th, 2009 @ 5:45 am

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

#3 
Written By id804097 on October 19th, 2009 @ 11:34 am

Add a Comment

required, use real name
required, will not be published
optional, your blog address