Auto-post GitHub code summaries to LinkedIn using Gemini AI
Go to WorkflowDescription
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
A second AI Agent converts the article into a LinkedIn-ready post (max 2500 chars)
Automatically publishes the post to your LinkedIn profile
Set up steps
Connect your GitHub account and configure the Webhook in your repo's settings
Add your Google Gemini API key under credentials
Connect your LinkedIn OAuth2 account
Activate the workflow — posts will publish automatically on every push
Nodes Used (5)
AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
GitHub
n8n-nodes-base.github
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
LinkedIn
n8n-nodes-base.linkedIn