Analyze GitLab CI job failures with GPT-5.3 and send reports to Slack

Go to Workflow
18 views
Built by Sergei Byvshev Sergei Byvshev
Created on June 07, 2026

Description

Overview
This workflow helps automatically analyze the causes of build failures in Gitlab CI and propose solutions without involving DevOps engineers.
See detailed setup guide

How it work
Checks whether a job crashed.
Gets logs of the crashed job and a description of the pipeline.
The agent analyzes this data according to its system prompt.
During the process, the agent can retrieve additional data from Gitlab and check the availability of endpoints.
A report on the causes and solutions is sent to the selected Slack channel
Works good with Openai, Anthropic, Google last models

How to use
Generate webhook credentials and use it in Gitlab
Add your own Rules and recommendations to system prompt
Run MCP servers
Choose Slack channel

Nodes Used (6)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
MCP Client Tool
@n8n/n8n-nodes-langchain.mcpClientTool
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Slack
n8n-nodes-base.slack