DocsErrors and AI

AI triage

When a new error arrives, AI reads the stack trace and the code behind it, explains the root cause, and assigns the issue to whoever last changed the failing line. It's the first half hour of every investigation, done before you open the issue.

4 min readTeamGitHub recommended
TeamAI triage is on the Team plan, with 500 runs a month. Each analysis counts as one run.

1Connect GitHub

Triage works from the stack trace alone, but it's far better with your code. Open Integrations › GitHub, connect the app, and link each project to its repo. Then match teammates to their GitHub logins under People, so blame finds the right person.

Watchdock only reads the repos you choose when installing the GitHub app, through read-only access to their contents.

2Turn triage on

Triage is off until you turn it on for the workspace. Once it's on, it runs by itself on:

  • New issues: the first time an error is seen.
  • Spikes: an issue that occurs 50 times within 60 minutes, by default. Spikes are checked every 5 minutes.

You can also run it on any issue yourself: open the issue and press Analyze issue on the AI triage card.

3Read the analysis

Each run adds an analysis to the issue:

  • Root cause: what went wrong and why, in plain language, not a restatement of the exception.
  • Severity: critical, high, medium or low.
  • Suggested fixes: what to change, which you can turn into a fix proposal.
  • Suspect commit: the commit and author behind the failing line, from git blame.

Who gets assigned

Triage picks an owner in this order:

  1. Already assigned? It leaves the assignee alone.
  2. Git blame on the failing line. Whoever last committed to it is assigned, with the evidence attached: the file, line, commit message and SHA.
  3. No repo or no match? The workspace owner.

The assignee gets an email with the analysis. If you've set a Slack webhook for triage, it posts there too.

Settings

SettingDefaultWhat it does
EnabledOffNothing runs until it's on
New issuesOnTriage the first occurrence of every issue
SpikesOnTriage issues that suddenly occur far more often
Spike threshold50Occurrences that count as a spike
Spike window60 minutesThe window the threshold is measured over
Minimum severityLowSkip issues below this severity
EmailOnEmail the assignee the analysis
SlackOffPost each analysis to a Slack channel

Troubleshooting

Nothing gets triaged

Check that triage is turned on for the workspace and that you haven't used this month's 500 runs.

The assignee is always the workspace owner

Blame isn't finding a match. Check the project is linked to the right repo in Integrations › GitHub, that the failing frame is in your code and not a dependency, and that teammates are matched under People.

Too many issues are being triaged

Raise the minimum severity, or turn off spikes, rather than turning triage off entirely.

A spike didn't trigger triage

The threshold is absolute. 50 occurrences in 60 minutes won't fire for an error that's unusual for your app but only happens a few times a day. Lower the threshold for low-traffic projects.