Convert GitHub code commits to LinkedIn posts with Gemini AI and code image generation
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs on Github events (push). Along the way it connects GitHub, LinkedIn and OpenRouter Chat Model. It also calls hcti.io over HTTP.
How it runs
Trigger: On Github events (push).
- Extract Modified Files (Code): runs custom JavaScript code
- GitHub: get (file)
- Extract from File: extracts data from a file (text)
- Extract from File: extracts data from a file (binary to propery)
- LinkedIn Content Creator (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Structured Output Parser
- Upload to Image Repo (GitHub): work with file
- Edit Fields (Edit Fields (Set)): sets 6 fields: post_title, post_content, code_snippet…
- Merge: merges the data from its input branches
- Create Code HTML (Code): runs custom JavaScript code
- Post to LinkedIn (LinkedIn): uses LinkedIn
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: hcti.io
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 (11)
- Github Trigger
n8n-nodes-base.githubTrigger - GitHub
n8n-nodes-base.github - LinkedIn
n8n-nodes-base.linkedIn - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Merge
n8n-nodes-base.merge - Extract from File
n8n-nodes-base.extractFromFile - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
From the author
Turn your code commits into engaging social media content automatically. This workflow monitors a GitHub repository, uses AI to write a LinkedIn post about your changes, generates a beautiful "Mac-window" style image of your code, and publishes it all to…