Auto-generate social posts from GitHub README/CHANGELOG updates with GPT-4o and OAuth
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 (12)
- Webhook
n8n-nodes-base.webhook - Merge
n8n-nodes-base.merge - GitHub
n8n-nodes-base.github - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Aggregate
n8n-nodes-base.aggregate - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - X (Formerly Twitter)
n8n-nodes-base.twitter - LinkedIn
n8n-nodes-base.linkedIn - Extract from File
n8n-nodes-base.extractFromFile
What it does
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 Trigger: Webhook Logic: IF, Merge, Aggregate GitHub: Get Repository File (×2) Files: Extract from File (text) (×2) AI: OpenAI Chat Model → LLM Chain (+ Structured Output Parser) Publish: Twitter, LinkedIn (Person) Prerequisites GitHub: OAuth2 or PAT with repo read. OpenAI: API key. Twitter: OAuth2 app with Read and Write; scopes tweet.read tweet.write users.read offline.access. LinkedIn (Person): OAuth2 credentials; required scope: wmembersocial, openid. 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.