Templates / Automatic workflow backups to GitLab with GPT-4.1 documentation generation

Automatic workflow backups to GitLab with GPT-4.1 documentation generation

Ready for 3.0

by Shohani ✓ · 778 views · created 2025-07-31 · DevOps, AI Summarization

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 10 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects GitLab and OpenAI.

How it runs

Trigger: When another workflow calls it (plus 1 other trigger).

  1. Fetch Updated Workflow (n8n): get
  2. Check GitLab Repository (GitLab): list (file)
  3. Analyze Repository State (Code): runs custom JavaScript code
  4. If: checks a condition and branches into true / false
  5. Update Existing Workflow (GitLab): edit (file)
  6. Create New Workflow File (GitLab): work with file
  7. Generate AI Documentation (OpenAI): uses OpenAI
  8. Save README to GitLab (GitLab): work with file

Services it uses

GitLabOpenAI

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 (7)

From the author

Auto backup n8n workflows to GitLab with AI-generated documentation This n8n template automatically backs up your workflows to a GitLab repository whenever they're updated or activated, and generates README documentation using AI. This workflow can be aslo…

Excerpt from Shohani'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.