Auto-generate social posts from GitHub README/CHANGELOG updates with GPT-4o and OAuth
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects GitHub, OpenAI Chat Model, X (Formerly Twitter) and LinkedIn.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- If: checks a condition and branches into true / false
- Get CHANGELOG (GitHub): get (file)
- Get README (GitHub): get (file)
- Extract from File: extracts data from a file (text)
- Extract from File: extracts data from a file (text)
- Merge: merges the data from its input branches
- Aggregate: combines items into one
- Basic LLM Chain: sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Post tweet (X (Formerly Twitter)): uses X (Formerly Twitter)
- LinkedIn: uses LinkedIn
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
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
From the author
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…