Skip to main content

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

Workflow preview

Workflow preview
100%
Auto-generate social posts from GitHub README/CHANGELOG updates with GPT-4o and OAuth preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 g...

Best for

  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.merge, n8n-nodes-base.github, n8n-nodes-base.if, n8n-nodes-base.noop, n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jorge Martínez.

Original n8n.io source

1.1 Workflow description

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

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: w_member_social, 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 3 - Get README

Type / Role
n8n-nodes-base.github - github
Config choices
Version 1.1

Block 4 - Get CHANGELOG

Type / Role
n8n-nodes-base.github - github
Config choices
Version 1.1

Block 5 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 7 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 8 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 9 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 11 - Post tweet

Type / Role
n8n-nodes-base.twitter - twitter
Config choices
Version 2

Block 12 - LinkedIn

Type / Role
n8n-nodes-base.linkedIn - linkedIn
Config choices
Version 1

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Extract from File README

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 18 - Extract from File CHANGELOG

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

3. Summary Table

Workflow Auto-generate social posts from GitHub README/CHANGELOG updates with GPT-4o and OAuth
Complexity advanced
Nodes 18
Categories Multimodal AI
Author Jorge Martínez
Published 19 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7562/7562.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Auto-generate social posts from GitHub README/CHANGELOG updates with GPT-4o and OAuth do?

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 g...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Multimodal AI use case.