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 two service hook subscriptions — one for each event type below. This covers PR creation, new commits pushed, and reviewer assignment changes.

EventWhen it fires
Pull request createdA new pull request is opened
Pull request updatedNew commits pushed, or reviewer assignments changed

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. A pull request is created with the agent listed as a reviewer.
  2. New commits are pushed to a PR that already has the agent as a reviewer.
  3. The agent is added as a reviewer on an existing PR.

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 assign it to the agent’s user account (xianix-agent on Agentri). 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.