Skip to content

Azure DevOps Webhook Setup

This guide walks you through connecting your Azure DevOps project to the Xianix Agent — from inviting the agent as a team member to wiring up the Xians webhook URL so it starts receiving events automatically.

The agent needs to be a member of your project team so it can be assigned to pull requests.

In your Azure DevOps project, go to Project Settings → Teams, select your team, and click Add to invite the agent’s user account. If you’re using Agentri hosted services, the account to add is xianix-agent@99x.io.

In your Azure DevOps project, navigate to Project Settings → Service hooks.

Click + Create subscription and choose Web Hooks as the service.

The default rules listen for pull request activity, so create three service hook subscriptions — one for each event type below.

EventWhen it firesWhat it enables
Pull request updatedNew commits pushed, reviewer assignments changed, or other PR updatesInitial review (agent added as reviewer) and focused push-update reviews
Pull request comment addedA new comment is posted on a pull requestComment-based triggering — post ai-dlc/pr/pr-review in a PR comment to start a review

You can optionally add a target branch filter to limit events to specific branches, but make sure Change is left as [Any] — the agent’s rules engine handles finer-grained filtering itself.

On the Action page, paste your Xians webhook URL into the URL field. Leave all other settings at their defaults.

Click Test to verify connectivity — a 200 OK response confirms the agent is reachable — then click Finish to save the subscription.

The default rules trigger the agent in three situations:

  1. The agent is added as a reviewer on a pull request — triggers the initial comprehensive review.
  2. A new top-level PR comment containing the text ai-dlc/pr/pr-review is posted — triggers a comprehensive review.
  3. New commits are pushed to a PR that already has the agent as a reviewer — triggers a focused incremental review (--push-update mode) of only the new commits.

See the PR Reviewer — Azure DevOps rule example for the exact match-any filters and input mappings behind these triggers.

To run your first end-to-end test, open a pull request and add the agent’s user account (xianix-agent on Agentri) as a reviewer. Then open the Activity Logs in the Agent Studio — you should see incoming task logs appear within 60 seconds. Within around 5 minutes, the agent will post a review comment directly on the PR.