Auto-post GitHub code summaries to LinkedIn using Gemini AI
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects GitHub, Google Gemini Chat Model and LinkedIn.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- List Repository Files (GitHub): list (file)
- Fetch File Content (GitHub): get (file)
- Decode Base64 Content (Code): runs custom JavaScript code
- Merge Code Snippets (Code): runs custom JavaScript code
- Analyze Code Context (AI Agent): runs an AI agent, with model: Gemini Analysis Model
- Draft LinkedIn Post (AI Agent): runs an AI agent, with model: Gemini Drafting Model
- Publish to LinkedIn (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 (6)
- Webhook
n8n-nodes-base.webhook - GitHub
n8n-nodes-base.github - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - LinkedIn
n8n-nodes-base.linkedIn
From the author
How it works - Listens for a GitHub push event via Webhook - Lists and fetches all files from the pushed repository - Decodes base64 file content and merges it into a single text block - AI Agent (Gemini 2.5 Flash) analyzes the code and generates a article -…