Templates / Convert GitHub code commits to LinkedIn posts with Gemini AI and code image generation

Convert GitHub code commits to LinkedIn posts with Gemini AI and code image generation

Ready for 3.0

by Marco Florez · 278 views · created 2025-12-25 · Social Media, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Extract Modified Files (Code): runs custom JavaScript code
  2. GitHub: get (file)
  3. Extract from File: extracts data from a file (text)
  4. Extract from File: extracts data from a file (binary to propery)
  5. LinkedIn Content Creator (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Structured Output Parser
  6. Upload to Image Repo (GitHub): work with file
  7. Edit Fields (Edit Fields (Set)): sets 6 fields: post_title, post_content, code_snippet…
  8. Merge: merges the data from its input branches
  9. Create Code HTML (Code): runs custom JavaScript code
  10. Post to LinkedIn (LinkedIn): uses LinkedIn

…plus 2 more steps. See the full node list below.

Services it uses

GitHubLinkedInOpenRouter Chat Model

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)

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…

Excerpt from Marco Florez's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.