Bug Triage Slack Bot

Bug Triage Slack Bot

Built a Slack bot that automatically triages bug reports, enriches them with context from logs and code, and routes them to the right team.

Technologies Used

TypeScript Slack API Claude API PostgreSQL Docker

Key Features

Automatic bug classification
Log and code context enrichment
Smart team routing
Duplicate detection
Priority scoring

Project Overview

Built a Slack bot that transforms unstructured bug reports into triaged, enriched tickets with relevant context from logs and codebase—then routes them to the right team.

The Challenge

Bug reports arrived in a shared Slack channel as free-text messages. Engineers spent significant time triaging: reading vague descriptions, hunting through logs, identifying the responsible team, and checking for duplicates. High-priority bugs got lost in the noise.

What I Did

Built an intelligent triage pipeline integrated with Slack:

  • Natural Language Triage: The bot parses bug reports in natural language, extracting affected features, severity indicators, and reproduction steps
  • Context Enrichment: Automatically pulls relevant error logs, recent deployments, and related code changes to attach to each report
  • Duplicate Detection: Compares new reports against recent bugs using semantic similarity, flagging likely duplicates before they create redundant work
  • Smart Routing: Routes enriched tickets to the appropriate team based on affected components, with escalation paths for critical issues

Outcome

Triage time dropped significantly. Engineers receive pre-enriched bug reports with relevant context already attached, allowing them to start debugging immediately instead of investigating the report itself. High-priority bugs surface faster, and duplicate reports are caught before they consume engineering time.

Completed on: Mar 1, 2024