This project is an n8n workflow that uses the power of AI to automatically find, analyze, and post the most engaging sports news to your X (Twitter) account.
It combines data from a website (web scraping) and an RSS feed, processes it with Google Gemini AI agents, and automatically posts the most viral-worthy headline to X.
The workflow operates in a few key steps to deliver high-quality, witty, and timely content:
-
News Gathering
- Web Scraper → An HTTP Request node scrapes football news from a website.
- RSS Feed → An RSS node pulls headlines from a designated feed.
-
AI-Powered Analysis
- Web News Agent → Reviews scraped content and rewrites it in a sarcastic, humorous, or "spicy" tone.
- RSS News Agent → Processes RSS content, rewriting it with a witty, fun, and positive voice.
-
Content Refinement
- Both agents are constrained by a filter node to ensure generated tweets are under 250 characters, preventing posting errors.
-
Final Decision
- An AI agent named Decisor acts as a social media strategist, selecting the most engaging post (likely to get likes, replies, shares).
-
Publishing
- The winning post is automatically published to X (Twitter) via the X node.
- Dual-Source Content → Gathers news from both web pages and RSS feeds.
- Intelligent AI Curation → Agents analyze, rewrite, and spice up headlines.
- Engagement-Focused Strategy → Final AI agent picks the most viral candidate.
- Fully Automated → Runs on its own once set up.
- Adaptable → Swap the input URLs and RSS feeds to cover other topics (tech, politics, entertainment).
-
Download the Workflow
- Get the
sports-news-workflow.jsonfile from this repository.
- Get the
-
Import into n8n
- Upload the workflow into your n8n instance.
-
Update Credentials
- Connect your Google Gemini (PaLM) and X (Twitter) accounts in n8n.
-
Customize Sources
- In the HTTP Request node, replace:
with the site you want to scrape.
https://www.YOURWEB - In the RSS node, replace:
with your preferred feed URL.
https://www.YOUR-RSS-FEED
- In the HTTP Request node, replace:
-
Activate the Workflow
- Run it manually or schedule it to run daily.
- Hands-free automation → No need to manually write or post.
- Consistent posting → Keeps your X account active.
- AI-enhanced content → Posts rewritten with humor and sarcasm.
- Scalable → Can easily adapt to any news domain.
- Daily football (soccer) news bot.
- Automated tech headlines on X.
- Stock market summaries for finance Twitter.
- Entertainment gossip accounts.
- Do NOT commit your real credentials to GitHub.
- In the workflow JSON, placeholders are used:
xxxx-credential-idfor credentialsxxxx-tag-idfor tags
- Store API keys securely in your n8n environment.

