📊 Daily Competitor Tweet Summarizer with X API, GPT-5-Nano, and Gmail Delivery

⚡ 519 views · 📊 Market Research & Insights

💡 Pro Tip — Twitter’s API is paid now, which makes simple data pulls expensive. ScraperNode is a community node that scrapes Twitter profiles and posts without needing API access.

View All Scrapers

Description

Automated Daily Competitor Tweet Summarizer with X API, GPT-5-Nano, and Gmail

Stay on top of your competition with this powerful n8n workflow that automatically fetches and summarizes your competitors’ latest tweets every day. Using the official X (formerly Twitter) API and OpenAI’s GPT-5-Nano model, this template extracts insights from public tweets and sends concise summaries directly to your Gmail inbox.

Ideal for marketing teams, product managers, PR professionals, and competitive intelligence analysts, this solution turns noisy social feeds into clear, actionable summaries—automated and customized to your needs.


Features


Setup Instructions

  1. Get API Keys:

  2. Configure in n8n:

    • Import the workflow
    • Add credentials under the “Credentials” tab
    • Set target X usernames and schedule
  3. Customize Delivery (Optional):

    • Set email subject, recipients
    • Add additional integrations (e.g., Slack, Notion, Sheets)

How It Works

  1. Trigger: A daily cron node initiates the workflow.
  2. Fetch User ID: The workflow uses the X API to retrieve the user ID based on the provided username. This step is necessary because the tweet retrieval endpoint requires a user ID, not a username.
  3. Fetch Tweets: Using the extracted user ID, the workflow queries the X API for recent tweets from the selected account.
  4. Clean Data: Filters out replies, retweets, and any irrelevant content to ensure only meaningful tweets are summarized.
  5. Summarize: GPT-4 processes the cleaned tweet content and generates a concise, insightful summary.
  6. Send Email: The Gmail node sends the final summary to your inbox or chosen recipient.

Use Cases


Requirements


Delivery Options

While Gmail is the default, you can easily extend the workflow to integrate with:


Automate your competitive intelligence process and stay informed—without lifting a finger.

đź”— Nodes Used

HTTP Request, X (Formerly Twitter), Gmail, Schedule Trigger, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup