ChatGPT Automatic Code Review in Gitlab MR

Go to Workflow
28,555 views
Built by assert assert
Created on June 10, 2026

Description

Who this template is for
This template is for every engineer who wants to automate their code reviews or just get a 2nd opinion on their PR.

How it works
This workflow will automatically review your changes in a Gitlab PR using the power of AI. It will trigger whenever you comment with +0 to a Gitlab PR, get the code changes, analyze them with GPT, and reply to the PR discussion.

Set up Steps
Set up webhook of note_events in Gitlab repository (see here on how to do it)
Configure ChatGPT credentials
Note "+0" in MergeRequest to trigger automatic review by ChatGPT

Nodes Used (4)

Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi