AutomationMart
Home/Browse/Auto-publish latest news on X with AI content generation using keywords and Bright Data
n8n

Auto-publish latest news on X with AI content generation using keywords and Bright Data

n8nn8n12 modulesv1.0
GmailGoogle SheetsOpenAILinkedInFacebook

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 tracking and notification systems. πŸ“‹ Overview This workflow provides a professional news publishing solution that automatically discovers breaking news, creates engaging social media content using AI, and publishes to X (Twitter) with comprehensive

At a glance

Auto-publish latest news on X with AI content generation using keywords and Bright Data is a ready-made n8n workflow you import as a workflow JSON file β€” no build required. It connects Gmail, Google Sheets, OpenAI, LinkedIn. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Google Sheets, OpenAI, LinkedIn, Facebook
Modules
12
Price
Free
Version
v1.0
Auto-publish latest news on X with AI content generation using keywords and Bright Data workflow diagram

About this workflow

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 tracking and notification systems. πŸ“‹ Overview This workflow provides a professional news publishing solution that automatically discovers breaking news, creates engaging social media content using AI, and publishes to X (Twitter) with comprehensive tracking. Perfect for news organizations, content creators, social media managers, and businesses wanting to stay current with automated news sharing. The system uses BrightData's Google News dataset, OpenAI's GPT-4o for content generation, and multi-platform integration for complete automation. ⭐ Key Features - πŸ“ Form-Based Input: Clean web form for keyword and country submission - πŸ“° Real-Time News Fetching: BrightData Google News integration for latest articles - πŸ€– AI Content Generation: GPT-4o powered tweet creation with hashtags - πŸ“± Auto X Publishing: Direct posting to X (Twitter) with URL tracking - πŸ“Š Complete Tracking: Google Sheets logging of all published content - πŸ”” Email Notifications: Success alerts with tweet links - 🌍 Multi-Country Support: Localized news for US, India, UK, Australia - ⚑ Status Monitoring: Real-time progress tracking with retry logic - πŸ›‘ Error Handling: Robust error management and validation - πŸ”„ Loop Management: Intelligent waiting for news processing completion 🎯 What This Workflow Does Input: - News Name: Keyword or topic for news search (required) - Country: Target country for localized news (dropdown: US/IN/GB/AU) Processing: 1. Form Submission: Captures news keyword and target country 2. News Triggering: Initiates BrightData Google News scraping job 3. Status Monitoring: Checks scraping progress with intelligent retry loop 4. Data Retrieval: Fetches latest news articles when ready 5. AI Content Creation: Generates engaging tweet content using GPT-4o 6. Social Publishing: Posts content to X (Twitter) automatically 7. URL Generation: Creates direct tweet links for tracking 8. Data Logging: Saves content and URLs to Google Sheets 9. Email Notification: Sends success confirmation with tweet link 10. Completion: Workflow ends with full audit trail πŸ“‹ Output Data Points | Field | Description | Example | | :------------ | :---------------------------------- | :----------------------------------------------------------------------------------------------------- | | TweetMessage | AI-generated social media content | "Breaking: AI revolution transforming healthcare with 40% efficiency gains. New study shows promising results in patient care automation. #AI #Healthcare #Innovation #TechNews #US" | | TweetURL | Direct link to published tweet | | πŸ› οΈ Setup Instructions Prerequisites: - n8n instance (self-hosted or cloud) - X (Twitter) account with API v2 access - OpenAI account with GPT-4o access - Gmail account for notifications - Google account with Sheets access - BrightData account with Google News dataset access - Basic understanding of social media automation Step 1: Import the Workflow 1. Copy the JSON workflow code from the provided file. 2. In n8n, click "+ Add workflow". 3. Select "Import from JSON". 4. Paste the workflow code and click "Import". 5. The workflow will appear with all nodes properly connected. Step 2: Configure API Credentials X (Twitter) API Setup: 1. Create X Developer Account at developer.twitter.com. 2. Create new app and generate API keys. 3. In n8n: Credentials β†’ + Add credential β†’ Twitter OAuth2 API. 4. Add your Twitter API credentials: - API Key - API Secret Key - Bearer Token - Access Token - Access Token Secret 5. Test the connection with a sample tweet. OpenAI API Configuration: 1. Get API key from platform.openai.com. 2. Ensure GPT-4o model access is available. 3. In n8n: Credentials β†’ + Add credential β†’ OpenAI API. 4. Add your OpenAI API key. 5. Verify model access in the "OpenAI Chat Model" node. Gmail Integration: 1. Create "Gmail OAuth2" credential. 2. Follow OAuth setup process. 3. Grant email sending permissions. 4. Test with sample email. BrightData News API: 1. The workflow uses pre-configured token: 5662edde-6735-4c5d-a6c6-693043a5a9a5. 2. Dataset ID: gdlnsxoxzi1omrwnka5r (Google News). 3. Verify access to Google News dataset. 4. Test API connection. Google Sheets Integration: 1. Create "Google Sheets OAuth2 API" credential. 2. Complete OAuth authentication. 3. Grant read/write permissions. 4. Test connection. Step 3: Configure Google Sheets Integration 1. Create Google Sheets Structure: - Sheet Name: "Publish Latest News on Social Media Platforms Using Keyword" - Tab: "Data" (default) - Columns: - Tweet Message: AI-generated content posted to X - Tweet URL: Direct link to published tweet 2. Sheet Configuration: - Create new Google Sheet or use existing one. - Add the required column headers. - Copy Sheet ID from URL: - Current configured Sheet ID: 1koxNrwdeuaSBdREuKc7JQh3d9blEk0sQDJ8VgVLjPOo. 3. Update Workflow Settings: - Open "Google Sheets" node. - Replace Document ID with your Sheet ID. - Select your Google Sheets credential. - Choose "Data" sheet/tab. - Verify column mapping is correct. Step 4: Configure Form Interface Form Settings: 1. Open "On form submission" node. 2. Form configuration: - Title: "News Publisher" - Description: "publish latest news to direct social media" - Fields: - News Name (text, required) - Country (dropdown: US, IN, GB, AU, required) - Webhook URL: Copy webhook URL from form trigger node. - Current webhook ID: 8d320705-688c-4150-a393-cf899d2bbb52. - Test form accessibility and submission. Step 5: Configure Email Notifications Gmail Setup: 1. Open "Gmail" node. 2. Update recipient email: raushan@iwantonlinemarketing.com. 3. Email template includes: - Success confirmation - Direct tweet link - Professional formatting 4. Test email delivery. Step 6: Test the Workflow Sample Test Data: Use these examples for testing: | News Name | Country | Expected Results | | :-------------------- | :------ | :------------------------------------------------- | | artificial intelligence | US | Latest AI news with US-specific hashtags | | cricket world cup | IN | Sports news with India-focused content | | brexit update | GB | UK political news with British hashtags | | bushfire news | AU | Australian environmental news | Testing Process: 1. Activate the workflow (toggle switch). 2. Navigate to the webhook form URL. 3. Submit test data. 4. Monitor execution progress: - News fetching (30-60 seconds) - AI content generation (10-15 seconds) - X publishing (5-10 seconds) - Sheet update and email (5 seconds) 5. Verify results in all platforms. πŸ“– Usage Guide Using the Form Interface 1. Navigate to the webhook URL provided by the form trigger. 2. Enter news keyword or topic (e.g., "climate change", "stock market", "technology"). 3. Select target country from dropdown. 4. Click submit and wait for processing. 5. Check email for success notification with tweet link. Example Inputs to Test | News Name | Country | Expected | | :-------------------------------- | :------ | :----------------------------------------------------- | | "artificial intelligence breakthrough" | "US" | Latest AI developments with tech hashtags | | "football premier league" | "GB" | UK football news with sports hashtags | | "stock market updates" | "IN" | Indian market news with finance hashtags | | "hollywood movies" | "AU" | Entertainment news with Australian perspective | Country-Specific Considerations - United States (US): - Focus on national news and global impact. - Hashtags: #USA, #American, #Breaking, #News. - Time zone considerations for optimal posting. - India (IN): - Emphasis on regional relevance. - Hashtags: #India, #Indian, #News, #Breaking. - Cultural context in content generation. - United Kingdom (GB): - British perspective and terminology. - Hashtags: #UK, #British, #News, #Breaking. - Focus on European context. - Australia (AU): - Australian angle and regional focus. - Hashtags: #Australia, #Australian, #News, #Breaking. - Pacific region context. πŸ“Š Reading the Results Google Sheets Data The output sheet contains: - Complete tweet content with hashtags and formatting. - Direct tweet URLs for easy access and sharing. - Chronological record of all published content. - Audit trail for content management. Email Notifications Success emails include: - Confirmation that content was published. - Direct link to view the tweet. - Professional formatting for easy reference. X (Twitter) Posts Published content features: - AI-optimized messaging within 260 character limit. - Relevant hashtags based on topic and country. - Engaging format designed for social media. - Professional tone suitable for news sharing. πŸ”§ Customization Options Expanding Social Media Platforms Add more platforms to the publishing workflow: `javascript // Add LinkedIn publishing { "node": "LinkedIn", "type": "n8n-nodes-base.linkedin", "parameters": { "text": "={{ $json.output }}", "additionalFields": {} } } // Add Facebook posting { "node": "Facebook", "type": "n8n-nodes-base.facebook", "parameters": { "pageId": "YOURPAGEID", "message": "={{ $json.output }}" } }

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Update Microsoft SQL Server database table rows from new Google Sheets rows

Use this template to automatically update a row in a Microsoft SQL Server database table when a new Google Sheets spreadsheet row is added.

Free

Capture new leads from Facebook Lead Ads and send data to your system

Capture new leads from Facebook Lead Ads and automatically send their data to your system using Make's integration with Facebook and HTTP modules.

Free

Handle WhatsApp sales queries with GPT-4, Supabase, and a product catalog

How it works An AI-powered sales agent on WhatsApp that handles product inquiries using your Supabase knowledge base and n8n catalog. Customers can send text, voice notes, or images to ask about products, pricing, and specs. The agent responds with detailed answers, product images, and FAQs, creating a complete self-service sales experience. (I primarily designed this for furniture business, consider tailoring it) Setup steps Connect Supabase credentials for your knowledge base and FAQs Configur

Free

Monitor Reddit comments and submit responses using ChatGPT

Automatically monitor Reddit comments in specific subreddits, generate responses using ChatGPT, and submit them back to Reddit, enhancing engagement.

Free

Send automated emails based on new rows in Google Sheets

Automatically send personalized emails when new rows are added in Google Sheets, then update the sheet with email status using Google Email and Sheets.

Free

Organize email attachments into Google Drive folders by company with Gmail & Sheets

Automated Email Attachment Organizer Automatically process labeled emails with attachments into organized Google Drive folders --- Who Is This For? - Teams or Individuals needing to: - Automatically sort invoices, receipts, and files. - Organize client documents by date. - Verify sender emails against a whitelist. - Timestamp files to avoid duplicate names. --- What Does This Workflow Solve? - πŸ•’ Manual Email Sorting: Saves time by automating the organization of email attachments. - πŸ“‚ Disorga

Free

Automate LinkedIn posts to email newsletter with Apify and GPT-4

Who's it for This workflow is ideal for content creators, marketers, and business professionals who want to automatically repurpose their LinkedIn content into email newsletters. If you're actively posting on LinkedIn and want to maximize your content's reach by delivering it directly to your email subscribers, this automation saves you hours of manual work each week. What it does This workflow automatically transforms your latest LinkedIn posts into professionally formatted email newsletters. I

Free

Rewrite web content with exact character counts using GPT-4.1 and Google Sheets

Description An AI-powered content rewriter that maintains exact character counts line-by-line while rewriting web pages for SEO. Fetches reference URL content, preserves layout-critical formatting, and logs detailed comparisons to Google Sheetsβ€”perfect for agencies rewriting competitor content while maintaining design consistency. --- What this workflow does This workflow solves a unique SEO challenge: rewriting web content while preserving exact character counts on every single line. When you n

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint β€” instant download
  • Setup guide PDF included
  • 5 downloads Β· valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free