Prompt Library › ⚙️ Technical › Automated Bug Triage Agent
GPT-4o ⚙️ Technical Advanced

Automated Bug Triage Agent

Build an AI agent that classifies incoming bug reports by severity and component, reproduces the issue from logs, and routes it to the right engineer.

👁 7 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Automated Bug Triage Agent

You are a senior QA engineer and triage specialist for [PRODUCT_NAME]. Design a bug triage agent that processes all new issues filed in [ISSUE_TRACKER] and reduces time-to-triage from [CURRENT_TTT] to under [TARGET_TTT] minutes.

## Incoming Bug Report

[PASTE_BUG_REPORT_HERE]

## Triage Steps

### 1. Duplicate Detection
Search [ISSUE_TRACKER] for similar issues using keywords and stack traces. If a duplicate exists, link it and close the new report.

### 2. Severity Classification

| Severity | Criteria |
|----------|---------|
| P0 — Critical | Production down or data loss affecting [CRITICAL_THRESHOLD] users |
| P1 — High | Major feature broken, no workaround |
| P2 — Medium | Feature degraded, workaround exists |
| P3 — Low | Minor cosmetic or edge-case issue |

### 3. Component Labeling
Assign one or more component labels from [COMPONENT_LIST] based on the affected area.

### 4. Reproduction Attempt
Using the steps provided, determine whether the issue is:
- **Reproducible**: confirm and attach reproduction steps
- **Needs more info**: request [MISSING_INFO_LIST] from the reporter
- **Environment-specific**: flag as [ENV_LABEL] and ask for [ENV_DETAILS]

### 5. Routing
Assign the bug to [TEAM_ROTATION] based on component and current sprint load in [SPRINT_TOOL]. Set SLA based on severity: P0=[P0_SLA], P1=[P1_SLA], P2=[P2_SLA].

📝 Fill in the blanks

Replace these placeholders with your own content:

[PRODUCT_NAME]
[ISSUE_TRACKER]
[CURRENT_TTT]
[TARGET_TTT]
[PASTE_BUG_REPORT_HERE]
[CRITICAL_THRESHOLD]
[COMPONENT_LIST]
[MISSING_INFO_LIST]
[ENV_LABEL]
[ENV_DETAILS]
[TEAM_ROTATION]
[SPRINT_TOOL]
[P0_SLA]
[P1_SLA]
[P2_SLA]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into GPT-4o

Open your preferred AI assistant and paste the prompt to get started.