📱 Automated breaking news headlines with LLaMA3, Google Search and X posting

4,335 views · 📱 Social Media & Email Marketing

💡 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

This n8n workflow automates the process of finding, summarizing, and posting breaking news headlines on X (formerly Twitter). It combines Google Custom Search for finding the latest news articles with Groq’s LLaMA 3 model to generate short, engaging headlines — complete with hashtags — and posts them on your X account.

🔧 Features

Custom topic support (e.g., “AI”, “health”, “technology”)

Automated scheduling every few hours

Google Custom Search to find the most recent news articles

Groq LLaMA3-based headline generation with hashtags

Auto-post to X (Twitter)

Built-in credential separation for API keys and access tokens

📦 Included Nodes

Schedule Trigger

Set (Set Topic, Google API Key, Custom Search CX, etc.)

HTTP Request (Google Search API)

Code Node (Format prompt and extract article data)

HTTP Request (Groq API for headline generation)

Twitter Node (Post to X)

⚙️ How It Works (Step-by-Step)

Trigger

Set Topic

Build Search Query

Google API Config

Search for News

Generate Prompt for AI

Groq AI Request

Post to Twitter (X)

Requirements

💡 Customization Tips

🔗 Nodes Used

HTTP Request, X (Formerly Twitter), Schedule Trigger

📥 Import

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

📖 Importing guide · 🔑 Credential setup