Xcom (Twitter) Keyword Monitoring and Engagement Queue

Automatically monitor keywords on X.com (formerly Twitter), analyze matching posts for sentiment, generate on-brand replies, and collect everything in a Google Sheet to create a prioritized engagement queue.
This automation acts as your social listening assistant for X.com. Here's how it works:
  1. Reads Keywords: It starts by reading a list of keywords you want to track from a keywords_tracking sheet in your specified Google Sheet.
  2. Searches X.com: For each keyword, it logs into X.com, performs a search, and navigates to the "Latest" tab to find the most recent posts.
  3. Collects & Filters: It extracts key details from each post—like content, author, and engagement metrics—and filters out any posts that don't meet a minimum view count you set.
  4. Analyzes with AI: Using AI, it performs sentiment analysis on each post, categorizing it as Positive, Negative, Neutral, or a Question.
  5. Generates Replies: If you choose, it can automatically generate a draft reply for each post. It uses your brand guidelines from a specified Google Doc to ensure the response is helpful, context-aware, and on-brand.
  6. Saves to a Queue: All the collected data, including the sentiment and suggested reply, is neatly organized and appended to a mentions_queue sheet in your Google Sheet. This creates a ready-made list for your social media team to review and engage with.
  7. Notifies You: Finally, it sends a summary of its findings—including total posts found and a sentiment breakdown—to a Slack channel of your choice, so you're always in the loop.
Usage Ideas
  • Brand Reputation Management: Track mentions of your brand name and key products to quickly address feedback and manage your online image.
  • Competitor Monitoring: Keep an eye on what people are saying about your competitors to identify their strengths, weaknesses, and customer pain points.
  • Lead Generation: Find potential customers by searching for posts where users are asking for recommendations or expressing needs your product can solve.
  • Content & Topic Ideation: Discover trending topics and common questions in your industry to inform your content marketing strategy.
  • Proactive Customer Support: Identify and respond to customers who are having issues but haven't contacted your official support channels.
Customization Ideas
This template is a powerful starting point for your social media strategy. You can work with the Agent Builder Assistant to customize it in many ways:
  • Change the Source: Monitor different social media platforms, forums, or news sites instead of X.com.
  • Customize Your Filters: Adjust the criteria for what makes a post important. For example, you can filter by follower count, likes, or other metrics, not just views.
  • Define Your Data: Decide exactly what information to collect from each post. You can add fields like the author's bio, follower count, or location.
  • Tailor the AI: Refine the AI's understanding by changing the prompts. You can create custom sentiment categories (like "Purchase Intent" or "Customer Complaint") or change the tone and style of the auto-generated replies.
  • Integrate Your Tools: Instead of Google Sheets and Slack, you can have the automation save results to your CRM, a database, or a project management tool, and send notifications via email.
  • Modify Your Inputs: Read keywords from a different source, like an Airtable base or a simple text file.
Agent Inputs
Required Parameters
Name
Type
Default
googleSheetUrl
string
None
URL to the Google Sheet containing keywords_tracking sheet (source) and mentions_queue sheet (destination)
slackChannel
string
None
Slack channel name for summary notifications (with or without # prefix)
Optional Parameters
Name
Type
Default
generateProposedResponse
boolean
true
Whether to generate AI-powered proposed responses for each post
googleDocUrl
string
URL to Google Doc containing brand guidelines for response generation. If not provided, responses will be generated without brand guidelines.
maxTweetsPerKeyword
number
10
Maximum number of posts to retrieve per keyword. Use -1 for unlimited.
minViewsFilter
number
10000
Minimum view count filter. Posts with fewer views will be skipped. Use 0 to include all posts.
HIPAA
SOC-2 TYPE 2
Airtop empowers anyone to turn ideas into powerful automations, by simply describing what they want to happen.
© 2025 Airtop