Automatic workflow backups to GitLab with GPT-4.1 documentation generation
Ready for 3.0What 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).
- Fetch Updated Workflow (n8n): get
- Check GitLab Repository (GitLab): list (file)
- Analyze Repository State (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Update Existing Workflow (GitLab): edit (file)
- Create New Workflow File (GitLab): work with file
- Generate AI Documentation (OpenAI): uses OpenAI
- Save README to GitLab (GitLab): work with file
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 (7)
- If
n8n-nodes-base.if - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - n8n Trigger
n8n-nodes-base.n8nTrigger - n8n
n8n-nodes-base.n8n - GitLab
n8n-nodes-base.gitlab - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi
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…