GitLab merge request review & risk analysis with Claude/GPT AI
Needs changesWhat this workflow does
This AI workflow has 14 nodes and runs on GitLab events (merge requests) (plus 2 other triggers). Along the way it connects Anthropic Chat Model, GitLab and Gmail.
How it runs
Trigger: On GitLab events (merge requests) (plus 2 other triggers).
- Merge: merges the data from its input branches
- Extract Diff (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- AI Agent: runs an AI agent, with model: Anthropic Chat Model; output parser: Auto-fixing Output Parser
- Distribution List Generator (Code): runs custom JavaScript code
- Comment Back on MR (HTTP Request): calls an HTTP API (POST)
- Send to DL ( Email Notification) (Gmail): uses Gmail
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - GitLab Trigger
n8n-nodes-base.gitlabTrigger - Gmail
n8n-nodes-base.gmail
From the author
Trigger The workflow runs when a GitLab Merge Request (MR) is created or updated. Extract & Analyze It retrieves the code diff and sends it to Claude AI or GPT-4o for risk assessment and issue detection. Generate Report AI produces a structured summary with:…