Azure Serverless Computing Cookbook
上QQ阅读APP看书,第一时间看更新

Monitoring tweets using Logic Apps and notifying users when a popular user tweets

One of my colleagues, who works for a social grievance management project, is responsible for monitoring the problems that users post on social media platforms, such as Facebook, Twitter, and so on. Recently, he faced the problem of continuously monitoring the tweets that were posted on his customer's Twitter handle with specific hashtags. His main job was to respond quickly to the tweets by users with a huge follower count, say, users with more than 50,000 followers. So, he was looking for a solution that kept monitoring a particular hashtag and alerted him whenever a user with more than 50,000 followers tweeted so that he could quickly have his team respond to that user.

Note that for the sake of simplicity, we will have the condition check for 200 followers instead of 50,000 followers.

Before I knew about Azure Logic Apps, I thought it would take a few weeks to learn about, develop, test, and deploy such a solution. Obviously, it would take a good amount of time to learn, understand, and consume the Twitter (or any other social channel) API to get the required information and build an end-to-end solution that solves this problem.

Fortunately, after learning about Logic Apps and its out-of-the-box connectors, it hardly took 10 minutes to design a solution for the problem that my friend had.

In this recipe, you will learn how to design a Logic App that integrates with Twitter (for monitoring tweets) and Gmail (for sending emails).