GitLab merge request review & risk analysis with Claude/GPT AI
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| 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
What it does
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: - Risk levels - Identified issues - Recommendations - Test cases Notify Developers The report is: - Emailed to developers and QA teams - Posted as a comment on the GitLab MR Setup Guide Connect GitLab - Add GitLab API credentials - Select repositories to track Configure AI Analysis - Enter Anthropic (Claude) or OpenAI (GPT-4o) API key Set Up Notifications - Add Gmail credentials - Update the email distribution list Test & Automate - Create a test MR to verify analysis and email delivery Key Benefits - Automated Code Review – AI-driven risk assessment and recommendations - Security & Compliance – Identifies vulnerabilities before code is merged - Integration with GitLab CI/CD – Works within existing DevOps workflows - Improved Collaboration – Keeps developers and QA teams informed --- Developed by Quantana, an AI-powered automation and software development company.