✨ Auto-generate social posts from GitHub README/CHANGELOG updates with GPT-4o and OAuth

548 views · ✨ AI & LLMs

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Generate social posts from GitHub pushes to Twitter and LinkedIn

On each GitHub push, this workflow checks if the commit set includes README.md and CHANGELOG.md, fetches both files, lets an LLM generate a Twitter and LinkedIn post, then publishes to Twitter and LinkedIn (Person).

Apps & Nodes

Prerequisites

Setup

  1. GitHub Webhook: Repo → Settings → Webhooks

    • Payload URL: https://<your-n8n-domain>/webhook/github/push
    • Content type: application/json • Event: Push • Secret (optional) • Branches as needed.
  2. Credentials: Connect GitHub, OpenAI, Twitter, and LinkedIn (Person).

How it Works

  1. Webhook receives GitHub push payload.
  2. IF checks that README and CHANGELOG appear in added/modified.
  3. GitHub (Get Repository File) pulls README.md and CHANGELOG.md.
  4. Extract from File (text) converts both binaries to text.
  5. Merge & Aggregate combines into one item with both contents.
  6. LLM (OpenAI + Parser) returns a JSON with twitter and linkedin.
  7. Twitter posts the tweet.
  8. LinkedIn (Person) posts the LinkedIn text.

🔗 Nodes Used

GitHub, Webhook, X (Formerly Twitter), LinkedIn, Basic LLM Chain, OpenAI Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup