Automate Trending GitHub Content Sharing with n8n & AI

This n8n workflow automatically curates trending GitHub discussions from Hacker News, enriches them with AI-generated social media posts, and publishes to Twitter and LinkedIn. Save hours on content creation while ensuring fresh, engaging tech content on your feeds.
httpRequest
airtable
code
+9
Workflow Identifier: 1667
NODES in Use: httpRequest, code, airtable, markdown, twitter, linkedIn, telegram, wait, scheduleTrigger, noOp, merge, openAi

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow automatically finds trending GitHub projects linked on Hacker News every 6 hours.
It checks for new posts, writes social media content for Twitter and LinkedIn, and shares posts after a review.
This saves time from manually searching and posting, avoiding duplicate sharing.
Users get fresh, well-written posts ready for social media.

The process includes crawling Hacker News homepage, extracting GitHub links and data, checking duplicates in Airtable, fetching project details from GitHub, creating posts with OpenAI, and posting with confirmation and notifications.
It helps social media managers focus on strategy, not manual tasks.


Who Should Use This Workflow

This workflow suits social media managers, content curators, and tech teams who share open source projects.
It’s good for people who want to save hours weekly and avoid mistake-prone manual curation.

Anyone needing regular updates about trending GitHub repositories on Hacker News can use it.
It works well for teams using Twitter (X), LinkedIn, Telegram, and Airtable for content tracking.


Tools and Services Used

  • Hacker News Homepage: Source of tech discussions and GitHub project links.
  • BeautifulSoup (Python): Parses HTML to extract GitHub URLs and metadata.
  • Airtable: Stores posted items and prevents duplicates.
  • GitHub Repository Pages: Source for detailed project information.
  • OpenAI GPT-4o-mini: Generates social media posts for Twitter and LinkedIn.
  • Telegram Bot API: Sends notifications to content owner for approvals.
  • Twitter (X) API: Posts finalized Twitter content.
  • LinkedIn API: Publishes LinkedIn posts.
  • n8n: Automates entire workflow and connects all parts.

Beginner Step-by-Step: How To Use This Workflow in n8n Production

Importing and Setup

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor and use “Import from File” to add the workflow.
  3. After import, open the workflow and add all required credentials (API Keys) in the HTTP Request, OpenAI, Twitter (X), LinkedIn, Airtable, and Telegram nodes.
  4. Update IDs, emails, channel IDs, Airtable base and table names if needed.
  5. If there is any Python code or prompt text, you can copy-paste it directly from the nodes (for example, the Extract Meta Python code snippet and the AI prompt in the Generate Content node).

Testing and Activation

  1. Run the whole workflow manually once by triggering the Schedule Trigger node.
  2. Watch outputs and logs at each stage to make sure GitHub posts are found, AI content is generated, and entries update in Airtable.
  3. Fix any errors by checking API keys, URLs, and field mappings.
  4. When tests succeed, turn the workflow ON to enable scheduled runs.
  5. If self-hosting n8n, learn more about reliable self-host n8n options for production use.

Workflow Inputs, Processing Steps, and Outputs

Inputs

  • Hacker News homepage HTML every 6 hours from the Schedule Trigger and HTTP Request node.
  • Stored records in Airtable as a reference for filtering repeated posts.

Processing Steps

  1. The Extract Meta Python node scrapes Hacker News HTML, pulling GitHub URLs and relevant metadata.
  2. Airtable Search Item node checks if the post ID already exists to avoid reposting.
  3. JavaScript Filter Unposted Items node filters out duplicates before continuing.
  4. For new posts, an HTTP Request fetches the GitHub repository page HTML.
  5. A Markdown conversion node transforms GitHub HTML into simpler Markdown text.
  6. Generate Content node uses OpenAI GPT-4o-mini to write styled social media posts for Twitter and LinkedIn based on Markdown and metadata.
  7. JavaScript and Filter nodes check AI output correctness and exclude errors.
  8. New posts save to Airtable via a Create Item node.
  9. A Telegram node sends notifications to owners with post previews.
  10. A Wait node pauses 5 minutes for manual review.
  11. Posts get published to Twitter (X) and LinkedIn using their respective nodes.
  12. Two Airtable update nodes mark posts as completed on those platforms.

Outputs

  • Fresh Twitter and LinkedIn posts about trending GitHub projects, delivered on schedule.
  • Logs and records in Airtable tracking posting status.
  • Telegram messages alerting content owners for reviews.

Customization Ideas

  • Change how often the workflow runs by adjusting the Schedule Trigger interval to suit your content needs.
  • Modify the Extract Meta Python code to search GitHub links by specific topics or authors.
  • Edit the AI prompt in the Generate Content node for a different writing tone, like more casual or more technical.
  • Add other social platforms by adding corresponding nodes and adjusting post content.
  • Switch notification channels to Slack or email by replacing the Telegram node.

Common Problems and How to Fix Them

  • No GitHub posts found: Hacker News HTML changed or no new relevant posts.
    Check if the Extract Meta Python node’s HTML selectors need updating.
  • Missing AI outputs for Twitter or LinkedIn: OpenAI may have rate limits or prompt formatting issues.
    Verify API usage and correct prompt syntax in the Generate Content node.
  • Duplicate posts in Airtable: Incorrect filtering setup or Airtable search formula may cause this.
    Review Search Item and Filter Unposted Items nodes.

Pre-Deployment Checklist

  • Ensure all API Keys and OAuth2 credentials for Airtable, OpenAI, Twitter (X), LinkedIn, and Telegram are correctly set.
  • Run the Crawl HN Home node manually to verify GitHub posts are found.
  • Test the AI generation with sample Markdown input.
  • Complete a full run to check posts creation, notifications, and publishing.
  • Backup Airtable base to protect existing data before live use.

Deployment Guide

Turn the workflow ON in n8n to start scheduled runs every 6 hours.
Monitor workflow runs and error logs via the n8n interface.
Telegram notifications keep you updated with content previews before posting.
Scale by adjusting schedule or upgrading OpenAI API plans.
For stable running, consider self-host n8n for better control over environment and credentials.


Summary of Benefits and Results

✓ Saves several hours of manual searching weekly.
✓ Ensures no duplicate or missed social media posts.
✓ Provides clear, consistent, well-styled Twitter and LinkedIn content.
✓ Alerts content owners for review and approval.
✓ Automates entire tech news curation and posting work.
→ Frees social media teams to focus on strategy, not busywork.
→ Delivers timely updates on trending open source projects.


Frequently Asked Questions

Yes, by updating the Python code in the Extract Meta node to detect GitLab or Bitbucket URLs, the workflow can support those platforms.
Usage is moderate since the workflow processes posts every 6 hours. Token use can be reduced by lowering the schedule frequency.
Duplicates are prevented by searching Airtable for existing post IDs before posting new content.
Add API Keys and OAuth2 credentials in the respective nodes for Airtable, OpenAI, Twitter, LinkedIn, and Telegram within the n8n editor.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free