Post witty daily tweets with Groq, NewsAPI, Google Trends, and X
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (11)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest - XML
n8n-nodes-base.xml - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - X (Formerly Twitter)
n8n-nodes-base.twitter - No Operation, do nothing
n8n-nodes-base.noOp - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq
What it does
Quick overview This workflow runs daily on a schedule, pulls popular stories from NewsAPI and trending topics from Google Trends, uses Groq-hosted LLMs with short-term memory to pick the best overlapping topic, generates a sarcastic tweet, and posts it to X (Twitter). How it works 1. Runs every day at 11:00 using a scheduled trigger. 2. Fetches popular breaking/viral stories from NewsAPI and retrieves the Google Trends RSS feed for India. 3. Converts the RSS XML to JSON, normalizes both sources into a common list, and merges the items. 4. Trims the merged list to a capped set of short titles/descriptions to reduce token usage. 5. Uses Groq LLMs plus a small rolling memory to rank trends (favoring cross-source matches and recurring topics) and output a single chosen topic with context. 6. Uses Groq to turn the chosen topic into one short, funny, sarcastic tweet and posts it to X (Twitter). Setup 1. Add your Groq API credentials for the Groq LLM nodes. 2. Add your X (Twitter) OAuth2 credentials and select the target account in the tweet-posting step. 3. Get a NewsAPI key and replace YOURNEWSAPIKEY in the NewsAPI request URL. 4. Adjust the Google Trends RSS URL (for example, change the geo=IN parameter) and the scheduled run time if needed.