Auto-publish latest news on X with AI content generation using keywords and Bright Data
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs when someone submits an n8n form (“News Publisher”). Along the way it connects OpenAI Chat Model, X (Formerly Twitter), Google Sheets and Gmail. It also calls api.brightdata.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“News Publisher”).
- Fetch Latest News (HTTP Request): calls api.brightdata.com (POST)
- Check Snapshot ID Status (HTTP Request): calls an HTTP API
- Wait: waits 30 seconds
- Check Final Status (If): checks a condition and branches into true / false
- Get News URL from Google News (HTTP Request): calls an HTTP API
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- X (X (Formerly Twitter)): uses X (Formerly Twitter)
- tweet to URL (Code): runs custom JavaScript code
- Google Sheets: append
- Gmail: uses Gmail
Services it uses
HTTP calls to: api.brightdata.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 (10)
- If
n8n-nodes-base.if - n8n Form Trigger
n8n-nodes-base.formTrigger - Wait
n8n-nodes-base.wait - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - X (Formerly Twitter)
n8n-nodes-base.twitter - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
From the author
📰 Publish Latest News on X and Other Social Media Platforms Using Keyword A comprehensive n8n automation that fetches the latest news based on keywords, generates AI-powered social media content, and automatically publishes to X (Twitter) with complete…