Making HipChat Even Hipp-ier: Automating Your Chats with ElectricFlow

whats-hipchat-campaignIf you’re like me – you love HipChat (and boy, do I LOVE their Office Space Ads!)

HipChat is my go to tool to talk and sync up with my team.

My colleague Nitin Parashar, who has to kick start daily scrums on Hipchat at 8am sharp, came up with this cool idea to get a time-based schedule in ElectricFlow to do it for him instead – since at Electric Cloud, we’re all about automation.

The way it works is an ElectricFlow schedule kicks off at 8am every weekday, which interacts with Hipchat’s REST API to post a message on Nitin’s behalf. Setting it up is a snap!

HipChat-logo

Integrating HipChat and ElectricFlow:

  1. To post data to Hipchat, you need an auth token, which can be easily generated. In this example, we’ve hard-coded the token, but you can use ElectricFlow Credentials to secure that information.
  2. Then, do a simple REST call to Hipchat’s API:
  3.  You can obtain the room ID by logging into the HipChat web app.
  4. The green color simply serves to differentiate the message from the rest:
    hip-chat message

 

Go ahead- give it a try!

This is undoubtedly a simple example, but you can easily build on that to include HipChat as part of your automation flow. We have customers who use HipChat as their terminal to view/report/alert on certain events in their process. For example: a failed build or automatic notification of machines being ready, etc.

Hope you like incorporating HipChat to your processes with ElectricFlow as much as we did. Got any questions? hit me up in the Comments.

And in conclusion, let me leave you with this important question to ponder on: how can we do better, as a team?

Siddhartha Gupta

Siddhartha Gupta

Siddhartha Gupta (Sid) is a backend software engineer working on ElectricFlow. He loves to play around with new technologies, and is always up for a Hackathon. He loves attending concerts, especially techno, and is an avid cricket fan.

You can find Sid on github:github.com/siddhartha90

Sid holds a bachelor's degree in computer engineering from the University of Illinois at Urbana-Champaign.
Siddhartha Gupta

Share this:

Leave a Reply

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

Subscribe

Subscribe via RSS
Click here to subscribe to the Electric Cloud Blog via RSS

Subscribe to Blog via Email
Enter your email address to subscribe to this blog and receive notifications of new posts by email.