Social Media Listening for X and Instagram

Monitors X (formerly Twitter) and Instagram for recent posts about a specific topic, brand, or person, and consolidates the findings into a single, structured JSON report.
This automation acts as a "Social Listening" agent, helping you keep a pulse on public conversations across two major social media platforms. Here's how it works:
  1. X (Twitter) Monitoring: The agent starts by navigating to X.com. It requires you to be logged in to your account. It then performs a search for your specified keyword, filtering for posts made within the last 30 days. The agent automatically scrolls down the "Latest" posts tab, collecting post content, author details, and engagement metrics (likes, comments, reposts, views) until it has gathered the desired number of posts or no new posts are found.
  2. Instagram Monitoring: Next, the agent moves to Instagram, where it also requires you to be logged in. It converts your keyword into a hashtag and searches for it. It then systematically opens each post in the results, extracting the caption, author, and engagement numbers. It navigates from one post to the next until it has collected enough data.
  3. Consolidated Report: Finally, the agent compiles all the information gathered from both X and Instagram into a single, clean JSON file, ready for you to download and analyze. The report is neatly organized by platform.
Usage Ideas
  • Monitor brand mentions to track customer sentiment and identify support issues.
  • Analyze a competitor's social media strategy and customer engagement.
  • Track the performance and public reception of a marketing campaign by monitoring its hashtag.
  • Research public opinion and talking points related to a political figure or event.
  • Discover user-generated content (UGC) related to your products or services.
  • Gather feedback and feature ideas by listening to what users are saying about your product or industry.
Customization Ideas
This template provides a strong foundation for social media monitoring that you can easily tailor to your specific needs. You can work with an assistant to:
  • Monitor Any Topic: Change the search query to track your brand, a competitor, a product, a marketing campaign, or any topic of interest.
  • Control Data Volume: Specify the exact number of posts you want to collect from each platform.
  • Adjust the Time Frame: Instead of the default 30 days, you can set the search to cover the last week, 24 hours, or any other period.
  • Change Search Strategy: You can modify the agent to search for "Top" posts on X instead of the "Latest". On Instagram, you can adapt it to monitor a specific user's profile instead of a hashtag.
  • Customize Your Report: Change what data is collected from each post or where the final report is sent. For example, you could have the results automatically added to a Google Sheet or sent as a summary to a Slack channel.
Agent Inputs
Optional Parameters
Name
Type
Default
maxPostsPerPlatform
number
25
Maximum number of posts to extract per platform. Use -1 to extract all available posts.
searchQuery
string
YOUR_SEARCH_QUERY
The search term to look for on X (Twitter) and Instagram