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

Go to Workflow
2 views
Built by ScoutNow ScoutNow
Created on June 05, 2026

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

Daily automation: Fetches competitor tweets every 24 hours using X API
AI summarization: Uses GPT-5-Nano to highlight key insights and themes
Smart filtering: Cleans and filters tweets for relevance before summarizing
Email delivery: Sends summaries to Gmail (or your team’s inbox)
Fully customizable: Modify schedules, accounts, and integrations as needed

Setup Instructions

Get API Keys:
X API (Bearer Token) – from developer.x.com
OpenAI API Key – from platform.openai.com
Gmail OAuth2 credentials (via Google Cloud Console)

Configure in n8n:
Import the workflow
Add credentials under the "Credentials" tab
Set target X usernames and schedule

Customize Delivery (Optional):
Set email subject, recipients
Add additional integrations (e.g., Slack, Notion, Sheets)

How It Works

Trigger: A daily cron node initiates the workflow.
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.
Fetch Tweets: Using the extracted user ID, the workflow queries the X API for recent tweets from the selected account.
Clean Data: Filters out replies, retweets, and any irrelevant content to ensure only meaningful tweets are summarized.
Summarize: GPT-4 processes the cleaned tweet content and generates a concise, insightful summary.
Send Email: The Gmail node sends the final summary to your inbox or chosen recipient.

Use Cases

Track competitor announcements and marketing messages
Automate daily social media briefs for leadership
Monitor trends in your industry effortlessly
Keep your team aligned with market developments

Requirements

Valid X API credentials (Bearer token)
OpenAI API key
Gmail OAuth2 credentials
Access to n8n (cloud or self-hosted)

Delivery Options

While Gmail is the default, you can easily extend the workflow to integrate with:
Slack
Notion
Google Sheets
Webhooks
Any supported n8n integration

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

Nodes Used (4)

Gmail
n8n-nodes-base.gmail
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
X (Formerly Twitter)
n8n-nodes-base.twitter