Convert GitHub Code Commits to LinkedIn Posts with Gemini AI and Code Image Generation
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 LinkedIn.
How it works GitHub Trigger: Watches for new push events in your selected repository. AI Analysis: Passes the code changes to an LLM (via LangChain) to write a professional LinkedIn post and select the best code snippet. Image Generation: Creates a custom HTML view of your code (with syntax highlighting and window controls) and converts it to an image using the HCTI API. Hosting & Posting: Uploads the generated image back to GitHub for hosting, then combines the text and image to publish a live post on LinkedIn.
Set up steps Configure Credentials: You will need credentials for: GitHub (OAuth2 or Access Token) LinkedIn (OAuth2) OpenRouter (or swap the model node for OpenAI/Anthropic) HCTI.io (for the HTML-to-Image conversion) Update GitHub Nodes: In the Trigger node: Set your Owner and Repository. In the File Download node: Set the same Owner and Repository. In the Upload Image node: Set the target repo where you want images stored. Update LinkedIn Node: Add your LinkedIn Person URN in the Person field.
Related Templates
Track Demo Bookings with Google Calendar to Meta Conversions API Integration
Who is this workflow for? If you're using Meta Ads to generate new leads to your sales pipeline, this workflow is for yo...
Transcribe & Summarize Audio with Whisper and GPT, from Google Drive to Notion
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Overview This work...
Reusable and Independently Testable Sub-workflow
Reusable and Independently Testable Sub-workflow This n8n workflow provides a standardized structure for building and te...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments