Skip to main content

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

Workflow preview

Analyze GitLab CI job failures with GPT-5.3 and send reports to Slack preview
Open on n8n.io

Overview

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

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

How to use

  1. Generate webhook credentials and use it in Gitlab
  2. Add your own Rules and recommendations to system prompt
  3. Run MCP servers
  4. Choose Slack channel