Automated breaking news headlines with LLaMA3, Google Search and X posting
Ready for 3.0What this workflow does
This workflow has 8 nodes and runs on a schedule (every 5 hours). Along the way it connects X (Formerly Twitter). It also calls api.groq.com over HTTP.
How it runs
Trigger: On a schedule (every 5 hours).
- Set Topic (Edit Fields (Set)): sets 1 field: topic
- Build Query (Edit Fields (Set)): sets 1 field: query
- Google Config (Edit Fields (Set)): sets 2 fields: google_api_key, google_cx
- HTTP Request: calls an HTTP API
- Function (Code): runs custom JavaScript code
- Groq AI (HTTP Request): calls api.groq.com (POST)
- Post to X (X (Formerly Twitter)): uses X (Formerly Twitter)
Services it uses
HTTP calls to: api.groq.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - X (Formerly Twitter)
n8n-nodes-base.twitter - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set
From the author
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…