Skip to content

An automated n8n workflow that gathers sports news from websites and RSS feeds, uses AI to rewrite headlines with humor and sarcasm, and posts the most engaging content to X (Twitter).

Notifications You must be signed in to change notification settings

josepino/sports-news-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⚽ Automated Sports News Reporter for X (Twitter)

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.


📌 How It Works

The workflow operates in a few key steps to deliver high-quality, witty, and timely content:

  1. 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.
  2. 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.
  3. Content Refinement

    • Both agents are constrained by a filter node to ensure generated tweets are under 250 characters, preventing posting errors.
  4. Final Decision

    • An AI agent named Decisor acts as a social media strategist, selecting the most engaging post (likely to get likes, replies, shares).
  5. Publishing

    • The winning post is automatically published to X (Twitter) via the X node.

📷 Workflow Screenshot

Workflow Screenshot


✨ Key Features

  • 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).

🛠 Setup Instructions

  1. Download the Workflow

    • Get the sports-news-workflow.json file from this repository.
  2. Import into n8n

    • Upload the workflow into your n8n instance.
  3. Update Credentials

    • Connect your Google Gemini (PaLM) and X (Twitter) accounts in n8n.
  4. Customize Sources

    • In the HTTP Request node, replace:
      https://www.YOURWEB
      
      with the site you want to scrape.
    • In the RSS node, replace:
      https://www.YOUR-RSS-FEED
      
      with your preferred feed URL.
  5. Activate the Workflow

    • Run it manually or schedule it to run daily.

Demo

Sports News Bot Demo


💡 Benefits

  • 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.

🏟 Example Use Cases

  • Daily football (soccer) news bot.
  • Automated tech headlines on X.
  • Stock market summaries for finance Twitter.
  • Entertainment gossip accounts.

⚠️ Security Notes

  • Do NOT commit your real credentials to GitHub.
  • In the workflow JSON, placeholders are used:
    • xxxx-credential-id for credentials
    • xxxx-tag-id for tags
  • Store API keys securely in your n8n environment.

About

An automated n8n workflow that gathers sports news from websites and RSS feeds, uses AI to rewrite headlines with humor and sarcasm, and posts the most engaging content to X (Twitter).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published